Skip to content

Commit

Permalink
ci: add job to check PR label requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
florianesser committed May 28, 2024
1 parent 693b8b8 commit dda8117
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check labels

on:
pull_request:
branches:
- '*' # Trigger on all branches for pull requests
types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
require-challenge:
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@5847eef68201219cf0a4643ea7be61e77837bbce # v5.4.1
with:
mode: exactly
count: 1
labels: "challenged"
add_comment: true
message: "This PR cannot be merged yet because a required label is missing: `{{ provided }}`. It needs to be added before this PR can be merged."

0 comments on commit dda8117

Please sign in to comment.