-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13bae41
commit 3fa569a
Showing
1 changed file
with
8 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,19 @@ | ||
name: Add Issue or PR to Dashboard | ||
name: Add Issue or Pull Request to Dashboard | ||
|
||
on: | ||
issues: | ||
types: opened | ||
|
||
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 | ||
add-to-project: | ||
name: Add issue or pull request to project | ||
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 | ||
- uses: actions/add-to-project@v0.5.0 | ||
with: | ||
gh_token: ${{ secrets.MY_GITHUB_TOKEN }} | ||
organization: catalystneuro | ||
project_id: 3 | ||
resource_node_id: ${{ github.event.pull_request.node_id }} | ||
project-url: https://github.com/orgs/catalystneuro/projects/3 | ||
github-token: ${{ secrets.PROJECT_TOKEN }} |