Skip to content

Commit

Permalink
Update issue_project.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n authored Apr 14, 2023
1 parent 01c13c8 commit 2b8a2a1
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions .github/workflows/issue_project.yaml
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"
}

0 comments on commit 2b8a2a1

Please sign in to comment.