-
-
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
fbdd794
commit 597a6ef
Showing
2 changed files
with
58 additions
and
28 deletions.
There are no files selected for viewing
File renamed without changes.
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,32 +1,62 @@ | ||
name: Add bugs to bugs project | ||
# name: Update Projects | ||
|
||
on: | ||
issues: | ||
types: [opened, labeled] | ||
pull_request: | ||
types: [opened, labeled] | ||
issue_comment: | ||
types: [created] | ||
env: | ||
MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# on: | ||
# issues: | ||
# types: | ||
# - labeled | ||
# - unlabeled | ||
|
||
jobs: | ||
# concurrency: | ||
# group: update-projects-${{ github.event_name }} | ||
# cancel-in-progress: true | ||
|
||
assign_one_project: | ||
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/users/m4dm4rtig4n/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/users/m4dm4rtig4n/projects/1' | ||
column_name: 'Labeled' | ||
# jobs: | ||
# issues: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# # 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/views/1 | ||
# column-field: Status | ||
# label-to-column-map: | | ||
# { | ||
# "bug": "BACKLOG", | ||
# "enhancement": "BACKLOG", | ||
# "wontfix": "BACKLOG", | ||
# "duplicate": "BACKLOG" | ||
# } | ||
|
||
#name: Auto Assign to Project(s) | ||
# | ||
#on: | ||
# issues: | ||
# types: [opened, labeled] | ||
# pull_request_target: | ||
# types: [opened, labeled] | ||
# issue_comment: | ||
# types: [created] | ||
#env: | ||
# MY_GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
# | ||
#jobs: | ||
# assign_one_project: | ||
# 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/views/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/views/1' | ||
# column_name: 'BACKLOG' |