From 8315026919280d83831d56bc6715e0f9974e52e6 Mon Sep 17 00:00:00 2001 From: Pallav Dhobley <104137665+pallavx@users.noreply.github.com> Date: Wed, 18 Jan 2023 15:42:12 +0530 Subject: [PATCH 1/2] Add add-to-project step & rename workflow assign-issue workflow file We are updating the workflows to auto-add new issues & PR to actions/cache project board. --- .../{assign-issue.yml => issue-opened-workflow.yml} | 6 ++++++ 1 file changed, 6 insertions(+) rename .github/workflows/{assign-issue.yml => issue-opened-workflow.yml} (78%) diff --git a/.github/workflows/assign-issue.yml b/.github/workflows/issue-opened-workflow.yml similarity index 78% rename from .github/workflows/assign-issue.yml rename to .github/workflows/issue-opened-workflow.yml index 185eb1d..b127d98 100644 --- a/.github/workflows/assign-issue.yml +++ b/.github/workflows/issue-opened-workflow.yml @@ -14,3 +14,9 @@ jobs: - name: add_assignees run: | curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.issue.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}' + + - uses: actions/add-to-project@v0.4.0 + name: Add to Project Board + with: + project-url: https://github.com/orgs/actions/projects/12 + github-token: ${{ secrets.CACHE_BOARD_TOKEN }} From 3c08cab74fe64645cd02a69a0d4c14f1791c9051 Mon Sep 17 00:00:00 2001 From: Pallav Dhobley <104137665+pallavx@users.noreply.github.com> Date: Wed, 18 Jan 2023 10:20:43 +0000 Subject: [PATCH 2/2] Introduce add-to-project step & rename add-reviewer-pr workflow file --- .../{add-reviewer-pr.yml => pr-opened-workflow.yml} | 6 ++++++ 1 file changed, 6 insertions(+) rename .github/workflows/{add-reviewer-pr.yml => pr-opened-workflow.yml} (83%) diff --git a/.github/workflows/add-reviewer-pr.yml b/.github/workflows/pr-opened-workflow.yml similarity index 83% rename from .github/workflows/add-reviewer-pr.yml rename to .github/workflows/pr-opened-workflow.yml index 3346d9e..cdd375a 100644 --- a/.github/workflows/add-reviewer-pr.yml +++ b/.github/workflows/pr-opened-workflow.yml @@ -18,3 +18,9 @@ jobs: - name: Add Assignee run: | curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.pull_request.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}' + + - uses: actions/add-to-project@v0.4.0 + name: Add to Project Board + with: + project-url: https://github.com/orgs/actions/projects/12 + github-token: ${{ secrets.CACHE_BOARD_TOKEN }}