プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

add auto-move-to-in-progress-on-assign.yml workflow

Kohei Watanabe (Nov 7, 2024, 5:01 PM +0900) 7f458326 10d7e8f4

+20
+20
.github/workflows/auto-move-to-in-progress-on-assign.yml
··· 1 + name: Auto Move to In Progress on Assign 2 + on: 3 + issues: 4 + types: 5 + - assigned 6 + jobs: 7 + move-to-in-progress: 8 + runs-on: ubuntu-latest 9 + steps: 10 + - name: Move Issue to In Progress 11 + run: | 12 + PROJECT_NODE_ID=$(gh project view --owner "${{ github.repository_owner }}" "${PROJECT_ID}" --format json --jq .id) 13 + PROJECT_ITEM_ID=$(ISSUE_NUMBER="${{ github.event.issue.number }}" gh project item-list --owner "${{ github.repository_owner }}" "${PROJECT_ID}" --limit 100000 --format json --jq '.items[] | select(.content.repository == env.GITHUB_REPOSITORY and .content.number == (env.ISSUE_NUMBER | tonumber)) | .id') 14 + gh project item-edit --project-id "${PROJECT_NODE_ID}" --id "${PROJECT_ITEM_ID}" --field-id "${STATUS_FIELD_ID}" --single-select-option-id "${IN_PROGRESS_STATUS_ID}" 15 + env: 16 + # read:org project 17 + GITHUB_TOKEN: "${{ secrets.ADD_TO_PROJECT_PAT }}" 18 + PROJECT_ID: "2" 19 + STATUS_FIELD_ID: PVTSSF_lAHOABpmus0uuM4AAVPr 20 + IN_PROGRESS_STATUS_ID: "98236657"