From 954df59063611e289599195916de988fea5502f9 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 10 Nov 2020 10:22:48 +0100 Subject: [PATCH 1/5] Move TechDocs project board: Fix workflow --- .github/workflows/techdocs-project-board.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/techdocs-project-board.yml b/.github/workflows/techdocs-project-board.yml index a0691f2a79..d1b6dc3fd5 100644 --- a/.github/workflows/techdocs-project-board.yml +++ b/.github/workflows/techdocs-project-board.yml @@ -1,6 +1,7 @@ name: Automatically add new TechDocs Issues and PRs to the GitHub project board -# Development of TechDocs in Backstage is managed by this Kanban board - https://github.com/backstage/backstage/projects/5 -# New issues with TechDocs in their title or docs-like-code label will be added to the board. +# Development of TechDocs in Backstage is managed by this Kanban board - https://github.com/orgs/backstage/projects/1 +# New issues and PRs with TechDocs in their title or docs-like-code label will be added to the board. +# Caveat: New PRs created from forks will not be added since GitHub actions don't share credentials with forks. on: issues: @@ -23,7 +24,7 @@ jobs: contains(github.event.issue.title, 'techdocs') || contains(github.event.issue.title, 'Techdocs') with: - project: 'https://github.com/backstage/backstage/projects/5' + project: 'https://github.com/orgs/backstage/projects/1' column_name: 'Incoming' - name: Assign new issue to Incoming based on its label. @@ -31,7 +32,7 @@ jobs: if: | contains(github.event.issue.labels.*.name, 'docs-like-code') with: - project: 'https://github.com/backstage/backstage/projects/5' + project: 'https://github.com/orgs/backstage/projects/1' column_name: 'Incoming' - name: Assign new PR to Incoming based on its title. @@ -41,7 +42,7 @@ jobs: contains(github.event.pull_request.title, 'techdocs') || contains(github.event.pull_request.title, 'Techdocs') with: - project: 'https://github.com/backstage/backstage/projects/5' + project: 'https://github.com/orgs/backstage/projects/1' column_name: 'Incoming' - name: Assign new PR to Incoming based on its label. @@ -49,5 +50,5 @@ jobs: if: | contains(github.event.pull_request.labels.*.name, 'docs-like-code') with: - project: 'https://github.com/backstage/backstage/projects/5' + project: 'https://github.com/orgs/backstage/projects/1' column_name: 'Incoming' From 8dd60357f128f5793a07a368ad706172ddfad26a Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 10 Nov 2020 15:20:20 +0100 Subject: [PATCH 2/5] Add MY_GITHUB_TOKEN for the project board automation workflow --- .github/workflows/techdocs-project-board.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/techdocs-project-board.yml b/.github/workflows/techdocs-project-board.yml index d1b6dc3fd5..b81be4d79c 100644 --- a/.github/workflows/techdocs-project-board.yml +++ b/.github/workflows/techdocs-project-board.yml @@ -11,6 +11,7 @@ on: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: assign_issue_or_pr_to_project: From 99c35b909a364cfd9afcbd7d4e878f643ff89bba Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 10 Nov 2020 15:29:28 +0100 Subject: [PATCH 3/5] =?UTF-8?q?Emojis=20are=20nice=20-=20Fix=20column=20na?= =?UTF-8?q?me=20Incoming=20=F0=9F=93=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/techdocs-project-board.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/techdocs-project-board.yml b/.github/workflows/techdocs-project-board.yml index b81be4d79c..c6beb9567c 100644 --- a/.github/workflows/techdocs-project-board.yml +++ b/.github/workflows/techdocs-project-board.yml @@ -10,7 +10,6 @@ on: types: [opened, reopened, labeled, edited] env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: @@ -26,7 +25,7 @@ jobs: contains(github.event.issue.title, 'Techdocs') with: project: 'https://github.com/orgs/backstage/projects/1' - column_name: 'Incoming' + column_name: 'Incoming 📨' - name: Assign new issue to Incoming based on its label. uses: srggrs/assign-one-project-github-action@1.2.0 @@ -34,7 +33,7 @@ jobs: contains(github.event.issue.labels.*.name, 'docs-like-code') with: project: 'https://github.com/orgs/backstage/projects/1' - column_name: 'Incoming' + column_name: 'Incoming 📨' - name: Assign new PR to Incoming based on its title. uses: srggrs/assign-one-project-github-action@1.2.0 @@ -44,7 +43,7 @@ jobs: contains(github.event.pull_request.title, 'Techdocs') with: project: 'https://github.com/orgs/backstage/projects/1' - column_name: 'Incoming' + column_name: 'Incoming 📨' - name: Assign new PR to Incoming based on its label. uses: srggrs/assign-one-project-github-action@1.2.0 @@ -52,4 +51,4 @@ jobs: contains(github.event.pull_request.labels.*.name, 'docs-like-code') with: project: 'https://github.com/orgs/backstage/projects/1' - column_name: 'Incoming' + column_name: 'Incoming 📨' From 9badb8f73731521bb0b1e9eeec43516d6abd1973 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Wed, 11 Nov 2020 09:53:26 +0100 Subject: [PATCH 4/5] TechDocs project: try without having an emoji in the name --- .github/workflows/techdocs-project-board.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/techdocs-project-board.yml b/.github/workflows/techdocs-project-board.yml index c6beb9567c..a2fb980259 100644 --- a/.github/workflows/techdocs-project-board.yml +++ b/.github/workflows/techdocs-project-board.yml @@ -25,7 +25,7 @@ jobs: contains(github.event.issue.title, 'Techdocs') with: project: 'https://github.com/orgs/backstage/projects/1' - column_name: 'Incoming 📨' + column_name: 'Incoming' - name: Assign new issue to Incoming based on its label. uses: srggrs/assign-one-project-github-action@1.2.0 @@ -33,7 +33,7 @@ jobs: contains(github.event.issue.labels.*.name, 'docs-like-code') with: project: 'https://github.com/orgs/backstage/projects/1' - column_name: 'Incoming 📨' + column_name: 'Incoming' - name: Assign new PR to Incoming based on its title. uses: srggrs/assign-one-project-github-action@1.2.0 @@ -43,7 +43,7 @@ jobs: contains(github.event.pull_request.title, 'Techdocs') with: project: 'https://github.com/orgs/backstage/projects/1' - column_name: 'Incoming 📨' + column_name: 'Incoming' - name: Assign new PR to Incoming based on its label. uses: srggrs/assign-one-project-github-action@1.2.0 @@ -51,4 +51,4 @@ jobs: contains(github.event.pull_request.labels.*.name, 'docs-like-code') with: project: 'https://github.com/orgs/backstage/projects/1' - column_name: 'Incoming 📨' + column_name: 'Incoming' From 7a46fa07d14decc197cca72806f68ea3571b43b6 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Fri, 13 Nov 2020 15:22:24 +0100 Subject: [PATCH 5/5] TechDocs project: Use org token GH_SERVICE_ACCOUNT_TOKEN --- .github/workflows/techdocs-project-board.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/techdocs-project-board.yml b/.github/workflows/techdocs-project-board.yml index a2fb980259..a8d476f713 100644 --- a/.github/workflows/techdocs-project-board.yml +++ b/.github/workflows/techdocs-project-board.yml @@ -10,7 +10,7 @@ on: types: [opened, reopened, labeled, edited] env: - MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MY_GITHUB_TOKEN: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }} jobs: assign_issue_or_pr_to_project: