From 582ca3908460ab44c51a050c1e8cb15f1a032b21 Mon Sep 17 00:00:00 2001 From: Shunsuke Hayashi Date: Sat, 22 Nov 2025 17:07:10 +0900 Subject: [PATCH] chore: Add workflow auto-add-to-project.yml --- .github/workflows/auto-add-to-project.yml | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/auto-add-to-project.yml diff --git a/.github/workflows/auto-add-to-project.yml b/.github/workflows/auto-add-to-project.yml new file mode 100644 index 0000000..fe8fbc3 --- /dev/null +++ b/.github/workflows/auto-add-to-project.yml @@ -0,0 +1,25 @@ +name: Auto Add Issues to Project + +# When new issues are created, automatically add them to the project board +on: + issues: + types: [opened] + +jobs: + add-to-project: + runs-on: ubuntu-latest + name: Add issue to project + steps: + - name: Add Issue to Project + uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/users/${{ github.repository_owner }}/projects/1 + github-token: ${{ secrets.GH_PROJECT_TOKEN }} + + - name: Set Initial Status + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GH_PROJECT_TOKEN }} + script: | + // This will be implemented when custom field automation is added + console.log('Issue #${{ github.event.issue.number }} added to project');