Skip to content

Declare hive-managed and whose-turn labels in settings.yml - #447

Merged
nate-double-u merged 1 commit into
mainfrom
copilot/fix-label-sync-issue
Nov 24, 2026
Merged

nate-double-u merged 1 commit into
mainfrom
copilot/fix-label-sync-issue

Conversation

@nate-double-u

@nate-double-u nate-double-u commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The Settings app deletes any live label that .github/settings.yml does not declare. The hive has created 40 labels since the last sync, so the next edit to the file would delete them, along with the stage, role and author markers on open assessment items. Hive confirmed in hivecommons/hive#19612 that it does not re-create a label deleted while it runs, and asked that this file declare every label it uses.

This PR mirrors the 39 labels the hive has already created here and pre-declares the 7 new ones from workflow model cncf-techdocs-assessment 2026.11.3 and 2026.11.4 (four model-owned stage slugs, three whose-turn labels), so the sync and the rebind cannot race.

Changes

One file, .github/settings.yml, 46 labels added (36 declared before, 82 after):

  • Whose-turn status labels (3), from cncf-techdocs-assessment@curated-2026.11.4 (✨ feature: whose-turn labels for the cncf/techdocs assessment model hivecommons/hive#19613): ready-for-techdocs-review, ready-for-stakeholder-review, ready-for-approver. Colors and descriptions copied from the model.
  • Hive-managed labels (43), under a comment marking the hive as source of truth:
  • Left out: hive-pause/hosted-available-lke648397-260827-boq9. Per-environment; the first sync deletes it once and the hive recreates it on pause.

What the first sync will do

Create the 7 new labels, delete the hive-pause/* label, touch nothing else.

Live-equals-file check

File parsed with js-yaml against gh label list -R cncf/techdocs --limit 200 on 2026-11-24: 82 in file, 76 live; file-only = the 7 new labels; live-only = hive-pause/*; zero color or description drift on the 75 shared entries; all colors quoted 6-digit hex; no duplicate names. Prettier folds long descriptions onto continuation lines; the folded file parses to identical values.

Review notes

  • no-dco keeps its live em-dash and backticks; editing the text would make the sync rewrite the hive's label.
  • hold, quality and hive/verified-open have no live description, so the key is omitted (as for p0-critical).
  • Follow-up after merge: rebind the hive to model 2026.11.4 so the new labels start being applied.

Fixes #446


PR copy written with assistance from GitHub Copilot CLI (Claude Fable 5.1).

@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cncf-techdocs ready!

Name Link
🔨 Latest commit 98f4808
🔍 Latest deploy log https://app.netlify.com/projects/cncf-techdocs/deploys/6b05ced7852592b33994a5b1
😎 Deploy Preview https://deploy-preview-447--cncf-techdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI linked an issue Nov 24, 2026 that may be closed by this pull request
@nate-double-u nate-double-u changed the title [WIP] Fix label sync issue to prevent label deletion Declare hive-managed labels in settings.yml Nov 24, 2026
@nate-double-u
nate-double-u requested a balanced review from Copilot November 24, 2026 04:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@nate-double-u
nate-double-u requested a balanced review from Copilot November 24, 2026 04:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@nate-double-u
nate-double-u marked this pull request as ready for review November 24, 2026 17:41
@nate-double-u nate-double-u changed the title Declare hive-managed labels in settings.yml Declare hive-managed and whose-turn labels in settings.yml Nov 24, 2026
@nate-double-u
nate-double-u requested a balanced review from Copilot November 24, 2026 17:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The Hive label configuration change has no active review issues blocking approval.

No open issues 🎉

Review effort: Balanced

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independently verified the live-equals-file claim rather than taking it on trust. Parsed .github/settings.yml at head 813c6a6 and diffed it against gh label list -R cncf/techdocs --limit 200 (2026-11-24):

  • 82 labels in file, no duplicate names, all colors valid hex; YAML parses cleanly.
  • File-only = exactly the 7 pre-declared labels (3 whose-turn + 4 model-owned stage slugs), as stated.
  • Live-only = hive-pause/hosted-available-lke648397-260827-boq9, whose one-time deletion the body already accounts for.
  • Zero color or description drift on the 75 shared entries (compared after unfolding Prettier's continuation lines).

The diff is additions-only within the labels: section; no repo settings, branch protection, or permissions keys are touched. Matches the stated intent of #446. Looks correct to me.

One housekeeping note: the DCO check is red, so a git rebase --signoff is needed before merge. Given the busy marker on this head I am not pushing anything.

-- hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

Assisted-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Nate W <natew@cncf.io>
@nate-double-u
nate-double-u force-pushed the copilot/fix-label-sync-issue branch from 813c6a6 to 98f4808 Compare November 24, 2026 17:52
@nate-double-u
nate-double-u merged commit 61dc999 into main Nov 24, 2026
9 checks passed
@nate-double-u
nate-double-u deleted the copilot/fix-label-sync-issue branch November 24, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Label sync will delete the hive's labels on the next settings.yml change

3 participants