From dace315867c092c85ec141ce712f7d5cddc1d2d8 Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:49:55 +0100 Subject: [PATCH] chore: add project board automations --- .../workflows/add-issue-to-project-board.yml | 18 ++++++++++++++++++ .github/workflows/add-pr-to-project-board.yml | 16 ++++++++++++++++ 2 files changed, 34 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..05cba06 --- /dev/null +++ b/.github/workflows/add-pr-to-project-board.yml @@ -0,0 +1,16 @@ +name: Add PR to 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 }}