-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.1 KB
/
issues-labels.yml
File metadata and controls
40 lines (33 loc) · 1.1 KB
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
34
35
36
37
38
39
40
# Verifies if the current issue has at least one `[scope]` label and one
# `[priority]` label. If either is missing, the workflow adds a reminder label.
name: Issue labels check
on:
issues:
types: [opened, labeled, unlabeled]
permissions:
issues: write
jobs:
check-labels:
runs-on: ubuntu-latest
concurrency:
group: issue-labels-${{ github.event.issue.number }}
cancel-in-progress: true
steps:
- name: Ensure [scope] label
uses: Rindrics/expect-label-prefix@v1.2.1
with:
repository_full_name: ${{ github.repository }}
token: ${{ github.token }}
label_prefix: '[scope]'
label_separator: ' '
add_label: 'true'
default_label: '[scope] ⚠️ label needed'
- name: Ensure [priority] label
uses: Rindrics/expect-label-prefix@v1.2.1
with:
repository_full_name: ${{ github.repository }}
token: ${{ github.token }}
label_prefix: '[priority]'
label_separator: ' '
add_label: 'true'
default_label: '[priority] ⚠️ label needed'