Skip to content

Commit

Permalink
Create issue_labeler.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazcash authored Jan 20, 2024
1 parent 45160af commit b731ce1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/issue_labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# https://github.com/marketplace/actions/advanced-issue-labeler
# Currently only used for adding the 'Awaiting GDT Approval' label to gameplay feature requests

name: Issue labeler
on:
issues:
types: [ opened ]

permissions:
contents: read

jobs:
label-component:
runs-on: ubuntu-latest

permissions:
# required for all workflows
issues: write

# only required for workflows in private repositories
actions: read
contents: read

steps:
- uses: actions/checkout@v3

- name: Parse issue form
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/feature_request.yml

- name: Set labels based on gameplay checkbox
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
section: feature_type
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b731ce1

Please sign in to comment.