@@ -103,14 +103,29 @@ jobs:
103
103
gh project item-edit --id "$PROJECT_ITEM_ID" --project-id ${{ env.PROJECT_ID }} --field-id ${{ env.STATUS_FIELD_ID }} --single-select-option-id ${{ vars.team_project_status_in_progress }}
104
104
gh project item-edit --id "$PROJECT_ITEM_ID" --project-id ${{ env.PROJECT_ID }} --field-id ${{ env.VIEW_FIELD_ID }} --single-select-option-id ${{ vars.team_project_view_working_board }}
105
105
106
- - name : ' Labeled Prioritized or Regression '
107
- if : contains(fromJSON('["prioritized", "regression"]'), github.event.label.name)
106
+ - name : ' Labeled Prioritized'
107
+ if : github.event.label.name == 'prioritized'
108
108
env :
109
109
GH_TOKEN : ${{ steps.token.outputs.token }}
110
110
run : |
111
111
PROJECT_ITEM_ID=$(gh project item-add ${{ env.PROJECT_NUMBER }} --owner "hashicorp" --url ${{ env.ITEM_URL }} --format json | jq '.id')
112
112
gh project item-edit --id "$PROJECT_ITEM_ID" --project-id ${{ env.PROJECT_ID }} --field-id ${{ env.VIEW_FIELD_ID }} --single-select-option-id ${{ vars.team_project_view_working_board }}
113
113
114
+ - name : ' Labeled Regression'
115
+ if : github.event.label.name == 'regression'
116
+ env :
117
+ GH_TOKEN : ${{ steps.token.outputs.token }}
118
+ run : |
119
+ PROJECT_ITEM_ID=$(gh project item-add ${{ env.PROJECT_NUMBER }} --owner "hashicorp" --url ${{ env.ITEM_URL }} --format json | jq '.id')
120
+ gh project item-edit --id "$PROJECT_ITEM_ID" --project-id ${{ env.PROJECT_ID }} --field-id ${{ env.VIEW_FIELD_ID }} --single-select-option-id ${{ vars.team_project_view_working_board }}
121
+
122
+ gh api graphql -F itemId="$PROJECT_ITEM_ID" -F projectId=${{ env.PROJECT_ID }} -f query='
123
+ mutation($itemId:ID!, $projectId:ID!) {
124
+ updateProjectV2ItemPosition(input:{itemId:$itemId, projectId:$projectId}) {
125
+ clientMutationId
126
+ }
127
+ }'
128
+
114
129
- name : ' Labeled Engineering Initiative'
115
130
if : github.event.label.name == 'engineering-initiative'
116
131
env :
0 commit comments