-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.14 KB
/
issue-triage.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
34
35
36
37
38
39
40
41
42
43
name: Issue Triage
on:
issues:
types: [labeled]
jobs:
issue-creation:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
matrix:
os:
- ubuntu-20.04
tag-mappings: [{
bug: issue-transfer,
trill: tronic
}]
steps:
- uses: actions/checkout@v2
- name: Verify Tag
id: verify-tag
uses: actions/github-script@v5
with:
script: |
const label = context.payload.label.name;
const mappings = ${{ toJson(matrix.tag-mappings) }};
for (const [key, value] of Object.entries(mappings)) {
if (label == key) {
return value;
}
}
return '';
result-encoding: string
- name: Transfer Issue & Create Stub
id: transfer-issue
uses: lando/transfer-issue-action@1.1.0
if: steps.verify-tag.outputs.result != ''
with:
github_token: ${{ secrets.TRANSFER_ISSUE_TOKEN }}
destination_repo: ${{ steps.verify-tag.outputs.result }}
labels_file_path: '.github/transfer-issue-labels.yml'