Skip to content

Adds workflow file to check for labels on PRs #1

Adds workflow file to check for labels on PRs

Adds workflow file to check for labels on PRs #1

Workflow file for this run

name:

Check failure on line 1 in .github/workflows/check-pr-label.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-pr-label.yml

Invalid workflow file

`pull-request` is not a valid event name
on: [pull-request]
jobs:
check-for-label:
runs-on: ubuntu-latest
steps:
- name: Labels not added
if: >
contains(github.event.pull_request.labels.*.name, 'Breaking-Changes') == false &&
contains(github.event.pull_request.labels.*.name, 'Bug-Fixes') == false &&
contains(github.event.pull_request.labels.*.name, 'Documentation') == false &&
contains(github.event.pull_request.labels.*.name, 'Feature') == false &&
contains(github.event.pull_request.labels.*.name, 'Chore') == false
run: |
echo "This PR can't be merged, because it does not have a release category label. See release_notes.md"
exit 1