forked from opencast/opencast-admin-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This workflow runs on any change made to a pull-request and aims to verify that the correct label is present. The correct label is required for release configuration in .github/release.yml. Helps with fixing opencast#473 Signed-off-by: Daniel Ziegenberg <[email protected]>
- Loading branch information
1 parent
ad384ff
commit 222f19e
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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:accessibility, | ||
type:bug, | ||
type:code-enhancement, | ||
type:dependencies, | ||
type:documentation, | ||
type:enhancement, | ||
type:github_actions, | ||
type:infrastructure, | ||
type:security, | ||
type:tests, | ||
type:typing, | ||
type:usability, | ||
type:visual-clarity | ||
invalid-labels: > | ||
status:duplicate, | ||
status:conflicts, | ||
status:wontfix | ||
pull-request-number: "${{ github.event.pull_request.number }}" | ||
disable-reviews: true |