From ed8841acc08a74e432eec4bec5ebb6ecde0fbe9e Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Sun, 22 Sep 2024 12:15:30 +0200 Subject: [PATCH] ci: :construction_worker: add workflow to auto-add PRs and Issues to board --- .github/workflows/add-to-project.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/add-to-project.yml diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml new file mode 100644 index 0000000..81bd5ed --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1,26 @@ +name: Add to project board + +on: + issues: + types: + - opened + - reopened + - transferred + pull_request: + types: + - reopened + - opened + +permissions: + pull-requests: write + +jobs: + add-to-project: + name: Add to project + runs-on: ubuntu-latest + steps: + - name: Add issue or PR to upcoming course board + uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/${{ github.repository_owner }}/projects/12 + github-token: ${{ secrets.ADD_TO_BOARD }}