Commit 58d80d7
authored
🩹 [Patch]: Correct how we get pull request info (#3)
This release updates the logic for processing GitHub event data in
`scripts/main.ps1`, making the workflow more robust and accurate when
handling pull request events. The main improvements focus on how event
data is retrieved and how pull request states are determined.
**Event Data Handling Improvements:**
* Added logic to retrieve and parse GitHub event data more reliably,
including a fallback to read and parse the event file if the primary
method fails.
* Introduced a dedicated logging group to output the full event data for
easier debugging.
**Pull Request State Calculation Enhancements:**
* Refactored how pull request action and merged status are determined,
using parsed event data instead of relying solely on environment
variables.
* Updated the conditions for identifying open/updated, abandoned, and
merged pull requests to use the improved event data logic, ensuring more
accurate state detection.1 parent 9c811d0 commit 58d80d7
1 file changed
+34
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
195 | 224 | | |
196 | 225 | | |
197 | 226 | | |
198 | | - | |
199 | | - | |
| 227 | + | |
| 228 | + | |
200 | 229 | | |
201 | 230 | | |
202 | 231 | | |
203 | | - | |
204 | | - | |
205 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
206 | 235 | | |
207 | 236 | | |
208 | 237 | | |
| |||
0 commit comments