From 79d70be6fb00cfb2f48f2f794ec188f511d6f1fe Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Fri, 21 Oct 2022 16:22:26 -0500 Subject: [PATCH 1/3] Update action to add issues to new triage board --- .github/workflows/issue_opened.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/issue_opened.yml b/.github/workflows/issue_opened.yml index 3ccdd22a0d..3190f1d32d 100644 --- a/.github/workflows/issue_opened.yml +++ b/.github/workflows/issue_opened.yml @@ -10,20 +10,16 @@ jobs: runs-on: ubuntu-latest steps: # Add the new issue to a project board, if it needs triage - # See https://github.com/marketplace/actions/create-project-card-action - - name: Add issue to project board + # See https://github.com/actions/add-to-project + - name: Add issue to triage board # Only add to project board if issue is flagged as "needs triage" or has no labels # NOTE: By default we flag new issues as "needs triage" in our issue template if: (contains(github.event.issue.labels.*.name, 'needs triage') || join(github.event.issue.labels.*.name) == '') - uses: technote-space/create-project-card-action@v1 + uses: actions/add-to-project@v0.3.0 # Note, the authentication token below is an ORG level Secret. # It must be created/recreated manually via a personal access token with "public_repo" and "admin:org" permissions # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token # This is necessary because the "DSpace Backlog" project is an org level project (i.e. not repo specific) with: - GITHUB_TOKEN: ${{ secrets.ORG_PROJECT_TOKEN }} - PROJECT: DSpace Backlog - COLUMN: Triage - CHECK_ORG_PROJECT: true - # Ignore errors. - continue-on-error: true + github-token: ${{ secrets.ORG_PROJECT_TOKEN }} + project-url: https://github.com/orgs/DSpace/projects/24 From 21aebee31953b11cf7485c780d7535dd839f0b15 Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Fri, 21 Oct 2022 16:37:30 -0500 Subject: [PATCH 2/3] Update GitHub token for action --- .github/workflows/issue_opened.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue_opened.yml b/.github/workflows/issue_opened.yml index 3190f1d32d..c7b80513be 100644 --- a/.github/workflows/issue_opened.yml +++ b/.github/workflows/issue_opened.yml @@ -21,5 +21,5 @@ jobs: # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token # This is necessary because the "DSpace Backlog" project is an org level project (i.e. not repo specific) with: - github-token: ${{ secrets.ORG_PROJECT_TOKEN }} + github-token: ${{ secrets.TRIAGE_PROJECT_TOKEN }} project-url: https://github.com/orgs/DSpace/projects/24 From b3ad1d5606dc9c0b561777cedf83fa8d3947abf6 Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Fri, 21 Oct 2022 16:50:05 -0500 Subject: [PATCH 3/3] Fix comment --- .github/workflows/issue_opened.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue_opened.yml b/.github/workflows/issue_opened.yml index c7b80513be..631bb4836d 100644 --- a/.github/workflows/issue_opened.yml +++ b/.github/workflows/issue_opened.yml @@ -17,7 +17,7 @@ jobs: if: (contains(github.event.issue.labels.*.name, 'needs triage') || join(github.event.issue.labels.*.name) == '') uses: actions/add-to-project@v0.3.0 # Note, the authentication token below is an ORG level Secret. - # It must be created/recreated manually via a personal access token with "public_repo" and "admin:org" permissions + # It must be created/recreated manually via a personal access token with admin:org, project, public_repo permissions # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token # This is necessary because the "DSpace Backlog" project is an org level project (i.e. not repo specific) with: