Chakra, Dodge, Focus retail functionality audit #4241
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: "pr_labels" | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- labeled | |
- unlabeled | |
- synchronize | |
- reopened | |
jobs: | |
Check_Blocking_Labels: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
const response = await github.rest.issues.listLabelsOnIssue({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
}); | |
for (const idx in response.data) | |
{ | |
const entry = response.data[idx]; | |
if (entry.name === "hold" || entry.name === "squash") | |
{ | |
console.log("Found PR-blocking label: " + entry.name) | |
core.setFailed("Found PR-blocking label: " + entry.name) | |
} | |
} |