From 4f4432185046639cf31da7a07b873393af85fd00 Mon Sep 17 00:00:00 2001 From: heyselbi Date: Wed, 4 Oct 2023 15:17:39 -0400 Subject: [PATCH] automating adding issues into overall odh boards Signed-off-by: heyselbi --- .../workflows/auto-add-issues-to-project.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/auto-add-issues-to-project.yaml diff --git a/.github/workflows/auto-add-issues-to-project.yaml b/.github/workflows/auto-add-issues-to-project.yaml new file mode 100644 index 000000000..e7dd1781f --- /dev/null +++ b/.github/workflows/auto-add-issues-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/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 }} + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/opendatahub-io/projects/42 + github-token: ${{ steps.app-token.outputs.token }} \ No newline at end of file