Skip to content

Add facilitator note #8329

Add facilitator note

Add facilitator note #8329

# BASED ON https://github.com/WordPress/Documentation-Issue-Tracker/blob/main/.github/workflows/actions-when-commented.yml
name: Label feedback based on command in comment
on:
issue_comment:
types: [created, edited]
jobs:
label_issues:
if: ${{ !github.event.issue.pull_request }}
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v7.0.1
with:
script: console.log(context)
- uses: actions/github-script@v7.0.1
if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.comment.body, '//content')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["[Content] Feedback"]
})
- uses: actions/github-script@v7.0.1
if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.comment.body, '//dev')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["[Type] Bug"]
})
- uses: actions/github-script@v7.0.1
if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.comment.body, '//handbook')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["[Admin] Handbook"]
})