Remove sync labels workflow as the bot is now doing this (#43178)

Signed-off-by: stianst <stianst@gmail.com>
This commit is contained in:
Stian Thorgersen
2025-10-03 07:34:03 +02:00
committed by GitHub
parent 5cb0562fd2
commit 3de1613251

View File

@@ -1,41 +0,0 @@
name: Sync issue types with labels
on:
issues:
types: [typed,untyped]
permissions:
issues: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update kind labels
env:
GH_TOKEN: ${{ github.token }}
run: |
REPO="${{ github.repository }}"
ACTION="${{ github.event.action }}"
ISSUE="${{ github.event.issue.number }}"
if [ "$ACTION" == "typed" ]; then
TYPE="${{ github.event.type.name }}"
ARGS="--add-label kind/$TYPE"
else
TYPE=""
ARGS=""
fi
for l in $(gh issue view -R $REPO $ISSUE --json labels -q '.labels[].name' | grep '^kind/'); do
if [ "$l" != "kind/$TYPE" ]; then
ARGS="$ARGS --remove-label \"$l\""
fi
done
gh issue edit -R $REPO $ISSUE $ARGS