Skip to content

Commit

Permalink
Merge pull request #2 from catalystneuro/add_dashboard_action
Browse files Browse the repository at this point in the history
Add dashboard action
  • Loading branch information
alessandratrapani authored Nov 23, 2023
2 parents 9608576 + d506fc4 commit 13bae41
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/add-to-dashboard.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 13bae41

Please sign in to comment.