Skip to content

Commit

Permalink
Update assign-feedback-to-project.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitohm authored Nov 25, 2023
1 parent 43866d0 commit b540faa
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/assign-feedback-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,32 @@ jobs:
with:
script: console.log(context)
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.labels.*.name, '[Type] Bug') && contains(github.event.issue.body, '/content')
if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '/content')
with:
script: |
github.rest.issues.removeLabel({
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ["[Type] Bug"]
labels: ["Content Feedback"]
})
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '/dev')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["Content Feedback"]
labels: ["[Type] Bug"]
})
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '/handbook')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["[Admin] Handbook"]
})

0 comments on commit b540faa

Please sign in to comment.