Skip to content

[Meetup] Dindigul

[Meetup] Dindigul #252

name: Issue labeler
on:
issues:
types: [opened]
permissions:
contents: read
jobs:
label-component:
runs-on: ubuntu-latest
if: ${{ contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.labels.*.name, 'event')}}
permissions:
# required for all workflows
issues: write
steps:
- uses: actions/[email protected]
- name: Parse issue form
uses: stefanbuck/[email protected]
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/0-event-application-vetting.yml
- name: Set labels based on Event Type field
uses: redhat-plumbers-in-action/[email protected]
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
section: eventtype
config-path: .github/label-policy.yml
template: 0-event-application-vetting.yml
block-list: |
None
Other
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/[email protected]
if: ${{ contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.labels.*.name, 'event')}}
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "Heads up @WordPress/community-triage, we have a new issue openned by @${{ github.event.issue.user.login }}. Time to triage."
})