37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
# This workflow manages the automatic addition of new issues to specific GitHub projects.
|
|
#
|
|
# 1. Newly opened issues are added to the "Zebra Backlog" Github project.
|
|
# 2. They are also added to the "ZF Engineering Backlog" Github project.
|
|
#
|
|
# The action makes use of the `add-to-project` action and requires a Github token
|
|
# (currently sourced from secrets) to authenticate and perform the addition.
|
|
name: Add new issues to GitHub projects
|
|
|
|
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.5.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.5.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 }}
|