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
  • Loading branch information
lemeurherve authored and lemeurherveCB committed Feb 21, 2023
1 parent ab95cad commit 3662c5f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions workflows/autolabeler
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 3662c5f

Please sign in to comment.