Better Typing for Tool Execution Plumbing #5196
Workflow file for this run
This file contains 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: Labels Verifier | |
on: | |
pull_request_target: | |
types: [closed] | |
jobs: | |
onMerged: | |
name: "Check Labels on merge" | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Labels on merge | |
if: | | |
github.event.pull_request.merged == true && | |
! contains(join(github.event.pull_request.labels.*.name, ', '), 'kind/') && | |
! contains(github.event.pull_request.labels.*.name, 'merge') && | |
! contains(github.event.pull_request.labels.*.name, 'minor') | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
body: 'This PR was merged without a "kind/" label, please correct.', | |
}) |