Skip to content

Commit bb15c21

Browse files
Merge pull request #264 from catalystneuro/fix_dashboard
Update dashboard action
2 parents 138a8e3 + 120a5b5 commit bb15c21

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed
+8-24
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
1-
name: Add Issue or PR to Dashboard
1+
name: Add Issue or Pull Request to Dashboard
22

33
on:
44
issues:
5-
types: opened
6-
5+
types:
6+
- opened
77
pull_request:
88
types:
99
- opened
1010

1111
jobs:
12-
issue_opened:
13-
name: Add Issue to Dashboard
14-
runs-on: ubuntu-latest
15-
if: github.event_name == 'issues'
16-
steps:
17-
- name: Add Issue to Dashboard
18-
uses: leonsteinhaeuser/[email protected]
19-
with:
20-
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
21-
organization: catalystneuro
22-
project_id: 3
23-
resource_node_id: ${{ github.event.issue.node_id }}
24-
pr_opened:
25-
name: Add PR to Dashboard
12+
add-to-project:
13+
name: Add issue or pull request to project
2614
runs-on: ubuntu-latest
27-
if: github.event_name == 'pull_request' && github.event.action == 'opened'
2815
steps:
29-
- name: Add PR to Dashboard
30-
uses: leonsteinhaeuser/[email protected]
16+
- uses: actions/[email protected]
3117
with:
32-
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
33-
organization: catalystneuro
34-
project_id: 3
35-
resource_node_id: ${{ github.event.pull_request.node_id }}
18+
project-url: https://github.com/orgs/catalystneuro/projects/3
19+
github-token: ${{ secrets.PROJECT_TOKEN }}

0 commit comments

Comments
 (0)