Use 'instanceandevents' endpoint when updating process state, so that process and events are updated in a single transaction #455
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: "Label Check" | |
on: | |
pull_request: | |
types: [opened, edited, labeled, unlabeled, synchronize] | |
jobs: | |
check-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check labels | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const labels = context.payload.pull_request.labels; | |
const releaseLabels = ["ignore-for-release", "breaking-change", "feature", "bugfix", "dependency"]; | |
if(!releaseLabels.some(r=>labels.some(l=>l.name == r))){ | |
core.setFailed(`The PR must have at least one of these labels: ${releaseLabels}`) | |
} |