From e18bbf9cd7a3f14016a5c48a64e7e4dd696a3241 Mon Sep 17 00:00:00 2001 From: Harshad Reddy Nalla Date: Thu, 5 Oct 2023 02:40:25 -0400 Subject: [PATCH] Auto Add Issues to Tracking boards Signed-off-by: Harshad Reddy Nalla --- .../workflows/auto-add-issue-to-project.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/auto-add-issue-to-project.yaml diff --git a/.github/workflows/auto-add-issue-to-project.yaml b/.github/workflows/auto-add-issue-to-project.yaml new file mode 100644 index 00000000000..3a956c1481c --- /dev/null +++ b/.github/workflows/auto-add-issue-to-project.yaml @@ -0,0 +1,28 @@ +name: Auto Add Issues to Tracking boards +on: + issues: + types: + - opened +jobs: + add-to-project: + name: Add issue to projects + runs-on: ubuntu-latest + steps: + - name: Generate github-app token + id: app-token + uses: getsentry/action-github-app-token@v2 + with: + app_id: ${{ secrets.DEVOPS_APP_ID }} + private_key: ${{ secrets.DEVOPS_APP_PRIVATE_KEY }} + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/opendatahub-io/projects/39 + github-token: ${{ steps.app-token.outputs.token }} + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/opendatahub-io/projects/40 + github-token: ${{ steps.app-token.outputs.token }} + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/opendatahub-io/projects/45 + github-token: ${{ steps.app-token.outputs.token }}