Skip to content

assign-from-label: 'bug' #93

assign-from-label: 'bug'

assign-from-label: 'bug' #93

name: assign-from-label
run-name: "assign-from-label: '${{ github.event.label.name }}'"
on:
issues:
types:
- labeled
pull_request:
types:
- labeled
env:
GH_TOKEN: ${{ github.token }}
jobs:
assign-from-label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pietrobolcato/[email protected]
id: metadata
with:
config: .github/assets/user-labels.yml
- name: assign
if: ${{ steps.metadata.outputs[github.event.label.name] != '' }}
run: |
gh issue edit ${{ github.event.issue.number }} --add-assignee ${{ steps.metadata.outputs[github.event.label.name] }}