Skip to content

Kitchensink example 'flex json' #7

Kitchensink example 'flex json'

Kitchensink example 'flex json' #7

Workflow file for this run

name: Label issue
on:
issues:
types:
- opened
- reopened
- closed
jobs:
label-issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Add label on issue open
if: github.event.action == 'opened' || github.event.action == 'reopened'
run: |
gh issue edit ${{ github.event.issue.number }} \
--add-label "untriaged" \
env:
GH_TOKEN: ${{ github.token }}
- name: Remove label on issue close
if: github.event.action == 'closed'
run: |
gh issue edit ${{ github.event.issue.number }} \
--remove-label "untriaged"
env:
GH_TOKEN: ${{ github.token }}