Skip to content

Commit 6de2bf3

Browse files
authored
Add How We Work boards automation (#18298)
Co-authored-by: chiedo <chiedo@users.noreply.github.com>
1 parent fa42d8d commit 6de2bf3

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Send Issue to How We Work Boards
2+
3+
on:
4+
issues:
5+
types:
6+
- labeled
7+
- reopened
8+
9+
jobs:
10+
triage:
11+
runs-on: ubuntu-latest
12+
continue-on-error: true
13+
steps:
14+
- if: contains(github.event.issue.labels.*.name, 'feature')
15+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
16+
with:
17+
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
18+
script: |
19+
var column_id = 13445681;
20+
try {
21+
github.projects.createCard({
22+
column_id: column_id,
23+
content_id: context.payload.issue.id,
24+
content_type: "Issue"
25+
});
26+
} catch (error) {
27+
console.log(error);
28+
}
29+
- if: contains(github.event.issue.labels.*.name, 'epic')
30+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
31+
with:
32+
github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }}
33+
script: |
34+
var column_id = 13445932;
35+
try {
36+
github.projects.createCard({
37+
column_id: column_id,
38+
content_id: context.payload.issue.id,
39+
content_type: "Issue"
40+
});
41+
} catch (error) {
42+
console.log(error);
43+
}

0 commit comments

Comments
 (0)