Skip to content

Commit 79163a1

Browse files
authored
Merge pull request #27706 from element-hq/langleyd/fix_triage_board_columns
Move needs info and flaky tests issues to the correct columns
2 parents 39bdcaf + 9d1c724 commit 79163a1

File tree

1 file changed

+40
-5
lines changed

1 file changed

+40
-5
lines changed

.github/workflows/triage-labelled.yml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,48 @@ jobs:
5656
move_needs_info_issues:
5757
name: X-Needs-Info issues to Need info column on triage board
5858
runs-on: ubuntu-latest
59+
if: >
60+
contains(github.event.issue.labels.*.name, 'X-Needs-Info')
5961
steps:
60-
- uses: konradpabjan/move-labeled-or-milestoned-issue@190352295fe309fcb113b49193bc81d9aaa9cb01
62+
- id: add_to_project
63+
uses: actions/[email protected]
64+
with:
65+
project-url: ${{ env.PROJECT_URL }}
66+
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
67+
68+
- id: set_fields
69+
uses: titoportas/update-project-fields@421a54430b3cdc9eefd8f14f9ce0142ab7678751 # v0.1.0
6170
with:
62-
action-token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
63-
project-url: "https://github.com/orgs/element-hq/projects/120"
64-
column-name: "Needs info"
65-
label-name: "X-Needs-Info"
71+
project-url: ${{ env.PROJECT_URL }}
72+
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
73+
item-id: ${{ steps.add_to_project.outputs.itemId }} # Use the item-id output of the previous step
74+
field-keys: Status
75+
field-values: "Needs info"
76+
env:
77+
PROJECT_URL: https://github.com/orgs/element-hq/projects/120
78+
79+
move_flakey_test_issues:
80+
name: Z-Flaky-Test issues to Sized for maintainer column on triage board
81+
runs-on: ubuntu-latest
82+
if: >
83+
contains(github.event.issue.labels.*.name, 'Z-Flaky-Test')
84+
steps:
85+
- id: add_to_project
86+
uses: actions/[email protected]
87+
with:
88+
project-url: ${{ env.PROJECT_URL }}
89+
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
90+
91+
- id: set_fields
92+
uses: titoportas/update-project-fields@421a54430b3cdc9eefd8f14f9ce0142ab7678751 # v0.1.0
93+
with:
94+
project-url: ${{ env.PROJECT_URL }}
95+
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
96+
item-id: ${{ steps.add_to_project.outputs.itemId }} # Use the item-id output of the previous step
97+
field-keys: Status
98+
field-values: "Sized for maintainer"
99+
env:
100+
PROJECT_URL: https://github.com/orgs/element-hq/projects/120
66101

67102
add_priority_design_issues_to_project:
68103
name: P1 X-Needs-Design to Design project board

0 commit comments

Comments
 (0)