Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check-label workflow #490

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ updates:
directory: /
schedule:
interval: monthly
labels:
- type:github_actions

# Javascript
- package-ecosystem: npm
Expand All @@ -14,4 +16,4 @@ updates:
interval: monthly
open-pull-requests-limit: 15
labels:
- dependencies
- type:dependencies
39 changes: 39 additions & 0 deletions .github/workflows/check-label.yml
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/verify-pr-label-action@v1.4.0
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
Loading