Skip to content

Commit

Permalink
Merge 332b3b7 into b20104b
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvanb committed Dec 21, 2022
2 parents b20104b + 332b3b7 commit e545792
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,22 @@
name: Move to project
name: Handle newly opened issues

on:
issues:
types:
- opened
- labeled

jobs:
add-to-feature-board:
name: Add issue to feature request board
add-new-label:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/add-to-project@v0.3.0
- uses: actions/github-script@v6
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/vantage6/projects/3
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: feature-request
label-operator: OR

add-to-HOTFIX-board:
name: Add issue to HOTFIX request board
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.3.0
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/vantage6/projects/2
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: bug
label-operator: OR
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["New"]
})

0 comments on commit e545792

Please sign in to comment.