Skip to content

Lift every active tag ruleset during a tag reset - #99

Merged
imanimanyara merged 1 commit into
mainfrom
fix/reset-script-ruleset-names
Nov 11, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
fix/reset-script-ruleset-names

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

Summary

reset-release-tags.py used to disable only a tag ruleset named exactly "Protect release tags". Repositories set up earlier use other names (toolkit's is "release tags are final"), so a reset there would find nothing to lift and fail on the protected refs. The script now lifts every active tag ruleset, whatever its name, and restores each one in finally. Disabled tag rulesets and branch rulesets are left untouched.

Tests

A new case covers two differently named active tag rulesets, one disabled tag ruleset and one branch ruleset. It fails against the previous script and passes with the fix. Full suite: 1774 passed; Pint is clean.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 18:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@imanimanyara
imanimanyara merged commit 0866f82 into main Nov 11, 2026
9 checks passed
@imanimanyara
imanimanyara deleted the fix/reset-script-ruleset-names branch November 11, 2026 18:52
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.

2 participants