Skip to content

Commit

Permalink
feat: auto label issues based on service(s) selected
Browse files Browse the repository at this point in the history
Close #12
  • Loading branch information
lemeurherve authored and lemeurherveCB committed Mar 16, 2022
1 parent 158c659 commit a079df5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/autolabels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Autolabeler
on:
issues:
types: [opened, edited]
jobs:
autolabeler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: stefanbuck/github-issue-praser@v2
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/1-report-issue.yml
- run: echo "ISSUE_LABELS=$(echo '${{ steps.issue-parser.outputs.jsonString }}' | jq '.services' | tr '[:upper:]' '[:lower:]' | sed 's/"//g' | sed 's/ //g')" >> $GITHUB_ENV
- uses: andymckay/labeler@master
with:
add-labels: ${{ env.ISSUE_LABELS }}
remove-labels: "other"

0 comments on commit a079df5

Please sign in to comment.