Commit 9c811d0
authored
🩹[Patch]: Fix repo linting on merge to main (#2)
This release updates the logic for determining pull request states in
the `scripts/main.ps1` script, making the conditions for open, updated,
abandoned, and merged pull requests more precise and adding improved
logging for GitHub event inputs.
- Fixes PSModule/Process-PSModule#256
**Improvements to PR state detection:**
* Refined the `$isOpenOrUpdatedPR` condition to trigger only for
`'opened'`, `'reopened'`, or `'synchronize'` actions, making it more
accurate than the previous logic.
* Updated the `$isMergedPR` condition to require both the `'closed'`
action and that the PR is marked as merged, preventing false positives.
**Logging enhancements:**
* Added output of relevant GitHub event environment variables at the
start of the job run conditions calculation for easier debugging and
traceability.1 parent 77c3c59 commit 9c811d0
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
195 | 202 | | |
196 | | - | |
| 203 | + | |
197 | 204 | | |
198 | | - | |
| 205 | + | |
199 | 206 | | |
200 | 207 | | |
201 | 208 | | |
| |||
0 commit comments