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 <aryasolhi@gmail.com>

* fix(actions): move to the workflows folder and add TODO

* chore: lint

Co-authored-by: Gustavo Valverde <gustavo@iterativo.do>
Co-authored-by: Arya <aryasolhi@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Pili Guerra 2023-01-24 02:05:21 +01:00 committed by GitHub
parent 69a64b6db6
commit c92f7b0150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -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 }}