[WordPress Event] WordCamp Youth Hackathon - Skopje, North Macedonia #214
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
name: Issue labeler | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
contents: read | |
jobs: | |
label-component: | |
runs-on: ubuntu-latest | |
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 | |
- run: cat ${HOME}/issue-parser-result.json | |
- run: echo $EVENTTYPE $EVENTNAME | |
env: | |
EVENTTYPE: ${{ steps.issue-parser.outputs.issueparser_eventtype }} | |
EVENTNAME: ${{ steps.issue-parser.outputs.issueparser_eventname }} | |
- 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 | |
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." | |
}) |