Skip to content

Commit

Permalink
feat: clean ci
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Apr 14, 2023
1 parent fbdd794 commit 597a6ef
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 28 deletions.
File renamed without changes.
86 changes: 58 additions & 28 deletions .github/workflows/issue_project.yaml
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'

0 comments on commit 597a6ef

Please sign in to comment.