Skip to content

Commit

Permalink
Merge 392a307 into b20104b
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvanb committed Dec 21, 2022
2 parents b20104b + 392a307 commit eaa73d4
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/main.yml
@@ -1,25 +1,11 @@
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
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/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
Expand All @@ -32,3 +18,18 @@ jobs:
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: bug
label-operator: OR

add-new-label:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["New"]
})

0 comments on commit eaa73d4

Please sign in to comment.