actions/labeler@v5 writes the whole label set (setLabels PUT) even under sync-labels: false, so a label applied between its read and its write is silently removed — ceremony#128 lost `release` that way. v6/v7 write the same way. Replace the step with actions/labels-scope: same labeler.yml mapping (changed-files/any-glob-to-any-file subset, refused loudly otherwise), changed paths via the API, and an additive POST as the only write. Part of #130. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
8 lines
278 B
YAML
8 lines
278 B
YAML
name: Derive scope labels
|
|
description: Additively apply path-derived scope:* labels to a PR — the only write is POST (issue #130)
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: derive and add scope labels
|
|
shell: bash
|
|
run: bash "$GITHUB_ACTION_PATH/labels-scope.sh"
|