mirror of
https://github.com/kou029w/_.git
synced 2025-02-01 06:38:39 +00:00
Compare commits
3 commits
c2ea74cf70
...
7f458326eb
Author | SHA1 | Date | |
---|---|---|---|
7f458326eb | |||
10d7e8f4c7 | |||
485537101b |
3 changed files with 20 additions and 15 deletions
14
.github/workflows/add-project.yml
vendored
14
.github/workflows/add-project.yml
vendored
|
@ -1,14 +0,0 @@
|
|||
name: Add bugs to bugs project
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- opened
|
||||
jobs:
|
||||
add-to-project:
|
||||
name: Add issue to project
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/add-to-project@v0.5.0
|
||||
with:
|
||||
project-url: https://github.com/users/kou029w/projects/2
|
||||
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
20
.github/workflows/auto-move-to-in-progress-on-assign.yml
vendored
Normal file
20
.github/workflows/auto-move-to-in-progress-on-assign.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Auto Move to In Progress on Assign
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- assigned
|
||||
jobs:
|
||||
move-to-in-progress:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Move Issue to In Progress
|
||||
run: |
|
||||
PROJECT_NODE_ID=$(gh project view --owner "${{ github.repository_owner }}" "${PROJECT_ID}" --format json --jq .id)
|
||||
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')
|
||||
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}"
|
||||
env:
|
||||
# read:org project
|
||||
GITHUB_TOKEN: "${{ secrets.ADD_TO_PROJECT_PAT }}"
|
||||
PROJECT_ID: "2"
|
||||
STATUS_FIELD_ID: PVTSSF_lAHOABpmus0uuM4AAVPr
|
||||
IN_PROGRESS_STATUS_ID: "98236657"
|
1
radicle
1
radicle
|
@ -1 +0,0 @@
|
|||
Subproject commit de052ec6833940620c931715bbf4d1cd1a4867b9
|
Loading…
Add table
Reference in a new issue