From 007125d70be79dece03638cadee8b1e9268713f5 Mon Sep 17 00:00:00 2001 From: Pili Guerra Date: Fri, 20 Jan 2023 10:55:52 +0100 Subject: [PATCH 1/4] Add job to automatically add new Zebra issues to projects --- .github/project-management.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/project-management.yml diff --git a/.github/project-management.yml b/.github/project-management.yml new file mode 100644 index 00000000000..6f2192145d0 --- /dev/null +++ b/.github/project-management.yml @@ -0,0 +1,33 @@ +# Configuration for automatically adding issues to various Github projects for Project Management purposes +# +# Automatically add issues and PRs to the "Zebra Backlog" Github project. +on: + issues: + types: + - opened + +jobs: + add-to-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 + github-token: ${{ secrets.ACTIONS_PM_GITHUB_PROJECTS }} + +# Automatically add issues and PRs to the "Engineering Backlog" Github project. +on: + issues: + types: + - opened + +jobs: + add-to-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 + github-token: ${{ secrets.ACTIONS_PM_GITHUB_PROJECTS }} \ No newline at end of file From af8c0523d748fbd8efdf289afce74c750ffc5123 Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Sun, 22 Jan 2023 21:19:34 -0400 Subject: [PATCH 2/4] Apply suggestions from code review Co-authored-by: Arya --- .github/project-management.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/project-management.yml b/.github/project-management.yml index 6f2192145d0..ed4b5379c30 100644 --- a/.github/project-management.yml +++ b/.github/project-management.yml @@ -1,13 +1,12 @@ # Configuration for automatically adding issues to various Github projects for Project Management purposes -# -# Automatically add issues and PRs to the "Zebra Backlog" Github project. on: issues: types: - opened jobs: - add-to-project: + # 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: @@ -16,14 +15,8 @@ jobs: project-url: https://github.com/orgs/ZcashFoundation/projects/9 github-token: ${{ secrets.ACTIONS_PM_GITHUB_PROJECTS }} -# Automatically add issues and PRs to the "Engineering Backlog" Github project. -on: - issues: - types: - - opened - -jobs: - add-to-project: + # 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: From 3a9b58a3657b3e9f500e6d48677010df57a8f3e3 Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Sun, 22 Jan 2023 21:24:46 -0400 Subject: [PATCH 3/4] fix(actions): move to the workflows folder and add TODO --- .github/{ => workflows}/project-management.yml | 2 ++ 1 file changed, 2 insertions(+) rename .github/{ => workflows}/project-management.yml (86%) diff --git a/.github/project-management.yml b/.github/workflows/project-management.yml similarity index 86% rename from .github/project-management.yml rename to .github/workflows/project-management.yml index ed4b5379c30..b0e897529a8 100644 --- a/.github/project-management.yml +++ b/.github/workflows/project-management.yml @@ -13,6 +13,7 @@ jobs: - 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. @@ -23,4 +24,5 @@ jobs: - 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 }} \ No newline at end of file From e2da703bc77bf884648fdd3b17b31042b467b0b1 Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Sun, 22 Jan 2023 21:50:05 -0400 Subject: [PATCH 4/4] chore: lint --- .github/workflows/project-management.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/project-management.yml b/.github/workflows/project-management.yml index b0e897529a8..a1c7efee053 100644 --- a/.github/workflows/project-management.yml +++ b/.github/workflows/project-management.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/add-to-project@v0.4.0 - with: + 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 }} @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/add-to-project@v0.4.0 - with: + 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 }} \ No newline at end of file + github-token: ${{ secrets.ACTIONS_PM_GITHUB_PROJECTS }}