From d506fc4ff80d2ce618f85bb8d2530f75f6bd5562 Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Fri, 29 Sep 2023 10:40:15 -0400 Subject: [PATCH] add dashboard action --- .github/workflows/add-to-dashboard.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/add-to-dashboard.yml diff --git a/.github/workflows/add-to-dashboard.yml b/.github/workflows/add-to-dashboard.yml new file mode 100644 index 0000000..0fc3d2a --- /dev/null +++ b/.github/workflows/add-to-dashboard.yml @@ -0,0 +1,35 @@ +name: Add Issue or PR to Dashboard + +on: + issues: + types: opened + + pull_request: + types: + - opened + +jobs: + issue_opened: + name: Add Issue to Dashboard + runs-on: ubuntu-latest + if: github.event_name == 'issues' + steps: + - name: Add Issue to Dashboard + uses: leonsteinhaeuser/project-beta-automations@v1.2.1 + with: + gh_token: ${{ secrets.MY_GITHUB_TOKEN }} + organization: catalystneuro + project_id: 3 + resource_node_id: ${{ github.event.issue.node_id }} + pr_opened: + name: Add PR to Dashboard + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' && github.event.action == 'opened' + steps: + - name: Add PR to Dashboard + uses: leonsteinhaeuser/project-beta-automations@v1.2.1 + with: + gh_token: ${{ secrets.MY_GITHUB_TOKEN }} + organization: catalystneuro + project_id: 3 + resource_node_id: ${{ github.event.pull_request.node_id }}