chore: add org label sync workflow - #192
Conversation
Add a label policy, sync script, and manual workflow to standardize labels across complytime repositories while preserving repo-specific labels. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@beatrizmcouto , this implementation would fit better in In this case a script would not be necessary at all. For the renames we do it ad-hoc. WDYT? |
|
@marcusburghardt your suggestion of using the GitHub native solution for label management inside an Org sounds good. However, as we currently handle 3 orgs simultaneously (CT, UF, ASDLC), this approach wouldn't be enough to cover label mgmt across all of them, as it only allows labels to be synced inside the same org. |
Summary
labels-policy.jsonto define standard labels, rename-only migrations, local-only labels to preserve, and labels to deletescripts/sync_labels.pyto apply the policy repo by repoREADME.mdandMAINTAINING.mdBehavior
The workflow targets all complytime repositories except
complytime/complytimeandroadmap.It supports three behaviors at once:
60 days,clean up,docker,llm_assisted,question,to validate, andto validadeAssumptions
private-sprint-sub-issueis treated as preserve, not delete, because it appeared in the keep-list and the existing live label uses that casingdockeris renamed tocontainerquestion,to validate, andto validadeare consolidated intovalidateRelated Issues
N/A
Review Hints
labels-policy.jsonfirst; it is the source of truth for the requested label changesworkflow_dispatch) so it can be dry-run safely before any org-wide applyGenerated with Cursor assistance