mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-31 01:47:15 +03:00
f00fe51b9c
Since [0] got resolved ([1]) we can finally pin the action to a tagged release (v2.0.4 ATTOW) and let Dependabot to do its job by updating it to the latest tagged release when it becomes available. Replaces: #24886 [0] https://github.com/stefanbuck/github-issue-parser/issues/23 [1] https://github.com/stefanbuck/github-issue-parser/pull/39
37 lines
905 B
YAML
37 lines
905 B
YAML
---
|
|
|
|
name: Issue labeler
|
|
on:
|
|
issues:
|
|
types: [ opened ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
label-component:
|
|
runs-on: ubuntu-22.04
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
strategy:
|
|
matrix:
|
|
template: [ bug_report.yml, feature_request.yml ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Parse issue form
|
|
uses: stefanbuck/github-issue-parser@f80b14f78892a66d7a35bba44f0a7d63bee03602
|
|
id: issue-parser
|
|
with:
|
|
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}
|
|
|
|
- name: Set labels based on component field
|
|
uses: redhat-plumbers-in-action/advanced-issue-labeler@fe9c43b7d77bd8bd7fbe86c2c217e74ebeea71f2
|
|
with:
|
|
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
|
|
template: ${{ matrix.template }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|