-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
01c13c8
commit 2b8a2a1
Showing
1 changed file
with
23 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,31 +1,30 @@ | ||
name: Auto Assign to Project(s) | ||
name: Update Projects | ||
|
||
on: | ||
issues: | ||
types: [opened, labeled] | ||
pull_request_target: | ||
types: [opened, labeled] | ||
issue_comment: | ||
types: [created] | ||
env: | ||
MY_GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
types: | ||
- labeled | ||
- unlabeled | ||
|
||
concurrency: | ||
group: update-projects-${{ github.event_name }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
assign_one_project: | ||
issues: | ||
runs-on: ubuntu-latest | ||
name: Assign to One Project | ||
steps: | ||
- name: Assign NEW issues and NEW pull requests to project 2 | ||
uses: srggrs/assign-one-project-github-action@1.2.1 | ||
if: github.event.action == 'opened' | ||
with: | ||
project: 'https://github.com/orgs/MyElectricalData/projects/1' | ||
|
||
- name: Assign issues and pull requests with `bug` label to project 3 | ||
uses: srggrs/assign-one-project-github-action@1.2.1 | ||
if: | | ||
contains(github.event.issue.labels.*.name, 'bug') || | ||
contains(github.event.pull_request.labels.*.name, 'bug') | ||
with: | ||
project: 'https://github.com/orgs/MyElectricalData/projects/1' | ||
column_name: 'BACKLOG' | ||
# substitute RELEASE_VERSION for the latest version available in releases | ||
- uses: Machine-Maker/add-to-project-action@v0.2.0 | ||
with: | ||
github-token: ${{ secrets.GH_PAT }} | ||
project-url: https://github.com/orgs/MyElectricalData/projects/1 | ||
column-field: Status | ||
label-to-column-map: | | ||
{ | ||
"bug": "BACKLOG", | ||
"enhancement": "BACKLOG", | ||
"wontfix": "BACKLOG", | ||
"duplicate": "BACKLOG" | ||
} |