refactor(event-handler): simplify HTTP event parsing #13088
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR requirements | |
| # PROCESS | |
| # | |
| # 1. Verify whether 'do-not-merge' label is present | |
| # 2. Fail PR to prevent merging until resolved | |
| # 3. Pass PR if do-not-merge label is removed by a maintainer | |
| # USAGE | |
| # | |
| # Always triggered on PR labeling changes. | |
| # NOTES | |
| # | |
| # Organization-level checks evaluate PR requirements asynchronously; this workflow enforces | |
| # the resulting do-not-merge label synchronously due to limitations in the GitHub API. | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - labeled | |
| - unlabeled | |
| permissions: {} # no permission required | |
| jobs: | |
| check-requirements: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Block if it doesn't minimum requirements | |
| if: contains(github.event.pull_request.labels.*.name, 'do-not-merge') | |
| run: | | |
| echo "This PR does not meet minimum requirements (check PR comments)." | |
| exit 1 |