-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
1 changed file
with
12 additions
and
24 deletions.
There are no files selected for viewing
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,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"] | ||
}) |