forked from opencast/opencast-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (20 loc) · 1 KB
/
check-label.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This workflow runs on any change made to a pull-request and aims to verify
# that the correct label is present.
name: Check proper lable usage
on:
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]
jobs:
labels:
runs-on: ubuntu-latest
steps:
# Ensure that one of the required labels is present and none of the undesired is absent
# See https://github.com/jesusvasquez333/verify-pr-label-action
- name: Verify PR label action
uses: jesusvasquez333/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
valid-labels: 'type:tests, type:infrastructure, type:enhancement, type:feature, type:dependencies, type:documentation, type:accessibility, type:security, type:bug, type:usability, type:visual-clarity, type:code-quality'
invalid-labels: 'status:duplicate, status:conflicts, status:wontfix'
pull-request-number: '${{ github.event.pull_request.number }}'
disable-reviews: true