From 9a847f09eb4b969c2c2a60a626e8e6c427c66085 Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:34:17 +0100 Subject: [PATCH] chore: add project board automations Closes #14 --- .../workflows/add-issue-to-project-board.yml | 18 ++++++++++++++++++ .github/workflows/add-pr-to-project-board.yml | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/add-issue-to-project-board.yml create mode 100644 .github/workflows/add-pr-to-project-board.yml diff --git a/.github/workflows/add-issue-to-project-board.yml b/.github/workflows/add-issue-to-project-board.yml new file mode 100644 index 0000000..896f2e7 --- /dev/null +++ b/.github/workflows/add-issue-to-project-board.yml @@ -0,0 +1,18 @@ +name: Add issue to task board + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add to task board + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.5.0 + with: + # You can target a project in a different organization + # to the issue + project-url: https://github.com/orgs/vacp2p/projects/10 + github-token: ${{ secrets.ADD_TO_VAC_BOARD_PAT }} diff --git a/.github/workflows/add-pr-to-project-board.yml b/.github/workflows/add-pr-to-project-board.yml new file mode 100644 index 0000000..cc8a699 --- /dev/null +++ b/.github/workflows/add-pr-to-project-board.yml @@ -0,0 +1,17 @@ +name: Add PR task board + +on: + pull_request: + +jobs: + add-to-project: + name: Add to task board + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.5.0 + with: + # You can target a project in a different organization + # to the issue + project-url: https://github.com/orgs/vacp2p/projects/10 + github-token: ${{ secrets.ADD_TO_VAC_BOARD_PAT }} +