Skip to content

fix: port Unity's self-healing pattern to label-sync workflow#22

Merged
TMHSDigital merged 1 commit intomainfrom
fix/auto-label-self-healing-pattern
Apr 25, 2026
Merged

fix: port Unity's self-healing pattern to label-sync workflow#22
TMHSDigital merged 1 commit intomainfrom
fix/auto-label-self-healing-pattern

Conversation

@TMHSDigital
Copy link
Copy Markdown
Owner

Same fix as the tool-repo rollout in #4. The meta-repo's own label-sync.yml had the same fail-on-missing apply step. Latent bug: a PR touching the registry/ path would fail because the registry label does not exist.

Replaces the apply step with the self-healing pattern. Closes #4.

Same fix as the tool-repo rollout in #4.
The meta-repo's label-sync.yml had the same fail-on-missing apply step,
with `registry` as the latent missing label that would surface on
PRs touching the registry/ path.

Replaces the apply step with the per-label loop using
`gh label create --force` before `gh pr edit --add-label`. Makes
label creation idempotent.

Closes #4.

Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com
Made-with: Cursor
@github-actions github-actions Bot added the ci label Apr 25, 2026
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@TMHSDigital TMHSDigital merged commit d8bb575 into main Apr 25, 2026
13 checks passed
@TMHSDigital TMHSDigital deleted the fix/auto-label-self-healing-pattern branch April 25, 2026 17:27
TMHSDigital added a commit that referenced this pull request Apr 25, 2026
PR #22 (port Unity's self-healing pattern to label-sync workflow)
merged without a VERSION bump due to a gap in the
"feat/fix commits require VERSION bump" required check (see
follow-up issue #24). The fix is on main but no release was cut.

This commit bumps VERSION to 1.8.3 to trigger release.yml so the
label-sync fix can be released and tagged. Tracks the fix from #22.

Refs #4.

Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com
Made-with: Cursor

Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com
TMHSDigital added a commit that referenced this pull request Apr 25, 2026
The version-bump-check job in validate.yml uses
git log --pretty=format:'%H%x00%s%x00%b%x1e' to extract commits
and parse them. Bash command substitution silently strips \0
bytes (with a warning to stderr that nothing inspects), gluing
SHA+SUBJECT+BODY into one field. The regex that extracts
conventional-commit prefixes never matched, so the check has
been silently passing every PR since 2026-04-22 (commit f27e37f).

PR #22 (DTD#4 fix) was a fix:-prefixed PR that did not bump
VERSION. The check should have failed it but did not, allowing
the PR to merge and causing the next release to fail.

Replaces \x00 with \x1f (Unit Separator) which preserves through
bash command substitution. The record separator (\x1e Record
Separator) was already safe and is unchanged. The awk -F
arguments are updated to match.

Closes #24.

Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com
Made-with: Cursor

Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing auto-label dependencies across tool repos

1 participant