-
Notifications
You must be signed in to change notification settings - Fork 23
56 lines (49 loc) · 1.72 KB
/
reconcile_gh_issue.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Reconcile GitHub Issue
on:
issues:
types:
- opened
- edited
- closed
- reopened
- labeled
- unlabeled
# This prevents potential race conditions by only allowing this action to handle
# one update at a time for a given issue.
concurrency:
group: reconcile-issue-${{ github.event.issue.number }}
cancel-in-progress: true
jobs:
reconcile-issue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: needs-triage
uses: konveyor/github-actions/require-matching-label@main
with:
missingComment: |
This issue is currently awaiting triage.
If contributors determine this is a relevant issue, they will accept it by applying the `triage/accepted` label and provide further guidance.
The `triage/accepted` label can be added by org members by writing `/triage accepted` in a comment.
missingLabel: "needs-triage"
regexp: "^triage/accepted$"
- name: needs-kind
uses: konveyor/github-actions/require-matching-label@main
with:
missingLabel: "needs-kind"
regexp: "^kind/"
- name: needs-priority
uses: konveyor/github-actions/require-matching-label@main
with:
missingLabel: "needs-priority"
regexp: "^priority/"
- name: Reconcile Issue
id: create
uses: konveyor/github-actions/reconcile-issue@main
with:
jiraBaseUrl: https://issues.redhat.com
jiraToken: ${{ secrets.JIRA_API_TOKEN }}
jiraProject: MTRHO
requireMissingLabels: needs-triage, needs-kind, needs-priority
additionalLabels: community
addWatchers: [email protected]