From c92f7b01502ff1b0c1e0e15f025d97c7b51b714e Mon Sep 17 00:00:00 2001 From: Pili Guerra Date: Tue, 24 Jan 2023 02:05:21 +0100 Subject: [PATCH] feat(actions): add a workflow to automatically add new Zebra issues to projects (#6008) * Add job to automatically add new Zebra issues to projects * Apply suggestions from code review Co-authored-by: Arya * fix(actions): move to the workflows folder and add TODO * chore: lint Co-authored-by: Gustavo Valverde Co-authored-by: Arya Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- .github/workflows/project-management.yml | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/project-management.yml diff --git a/.github/workflows/project-management.yml b/.github/workflows/project-management.yml new file mode 100644 index 00000000..a1c7efee --- /dev/null +++ b/.github/workflows/project-management.yml @@ -0,0 +1,28 @@ +# Configuration for automatically adding issues to various Github projects for Project Management purposes +on: + issues: + types: + - opened + +jobs: + # Automatically add issues and PRs to the "Zebra Backlog" Github project. + add-issue-to-zebra-backlog-project: + name: Adds all new issues to the "Zebra Backlog" Github project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.4.0 + with: + project-url: https://github.com/orgs/ZcashFoundation/projects/9 + # TODO: use a PAT from a `bot` account we create for the organization + github-token: ${{ secrets.ACTIONS_PM_GITHUB_PROJECTS }} + + # Automatically add issues and PRs to the "Engineering Backlog" Github project. + add-issue-to-zf-backlog-project: + name: Adds all new issues to the "ZF Engineering Backlog" Github project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.4.0 + with: + project-url: https://github.com/orgs/ZcashFoundation/projects/13 + # TODO: use a PAT from a `bot` account we create for the organization + github-token: ${{ secrets.ACTIONS_PM_GITHUB_PROJECTS }}