forked from decidim/decidim
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.16 KB
/
lint_pr_labels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "[CI] Lint PR labels"
on:
# WARNING: we're using `pull_request_target` on this workflow.
# This is necessary so the `verify-pr-label-action` can work with forks,
# but it introduces a potential security risk, specially if we checkout
# code from the forks.
#
# DO NOT checkout code from forks never in this workflow1
#
# @see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
pull_request_target:
branches-ignore:
- "chore/l10n*"
types: [opened, edited, synchronize, reopened, labeled, unlabeled]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
check_label:
name: Check PR labels
runs-on: ubuntu-22.04
steps:
- uses: jesusvasquez333/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
valid-labels: "type: feature, type: change, type: fix, type: removal, target: developer-experience, type: internal"
invalid-labels: "type: bug"
pull-request-number: "${{ github.event.pull_request.number }}"