File tree Expand file tree Collapse file tree 1 file changed +33
-7
lines changed Expand file tree Collapse file tree 1 file changed +33
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Move new/reopened issues into Triage
1
+ name : Add to project
2
2
3
3
on :
4
4
issues :
5
- types : [opened,reopened]
5
+ types : [opened,transferred]
6
+
6
7
jobs :
7
- automate-project-columns :
8
+ add-to-project :
9
+ name : Add issue to project
8
10
runs-on : ubuntu-latest
9
11
steps :
10
- -
uses :
alex-page/[email protected]
12
+ - uses : actions/add-to-project@main
13
+ id : add_project
11
14
with :
12
- project : Products(Extended)
13
- column : Triage
14
- repo-token : ${{ secrets.BOT_TOKEN }}
15
+ project-url : ${{ secrets.PROJECT_PLANNING }}
16
+ github-token : ${{ secrets.BOT_TOKEN_PROJECT }}
17
+ - name : Set Team
18
+ env :
19
+ GITHUB_TOKEN : ${{ secrets.BOT_TOKEN_PROJECT }}
20
+ run : |
21
+ gh api graphql -f query='
22
+ mutation(
23
+ $project: ID!
24
+ $item: ID!
25
+ $status_field: ID!
26
+ $status_value: String!
27
+ ) {
28
+ updateProjectNextItemField(
29
+ input: {
30
+ projectId: $project
31
+ itemId: $item
32
+ fieldId: $status_field
33
+ value: $status_value
34
+ }
35
+ ) {
36
+ projectNextItem {
37
+ id
38
+ }
39
+ }
40
+ }' -f project=${{ secrets.PROJECT_PLANNING_ID }} -f item=${{ steps.add_project.outputs.itemId }} -f status_field=${{ secrets.PLANNING_TEAM_FIELD_ID }} -f status_value=ed46988b --silent
You can’t perform that action at this time.
0 commit comments