Skip to content

Require a v prefix on tags - #123

Merged
Ilyes512 merged 1 commit into
mainfrom
chore/tag-v-prefix-ruleset
Sep 22, 2026
Merged

Ilyes512 merged 1 commit into
mainfrom
chore/tag-v-prefix-ruleset

Conversation

@Ilyes512

Copy link
Copy Markdown
Member

Summary

  • Add .github/rulesets/Tags must have v-prefix.json, recording the tag ruleset now active on this repository.

Why

release.yml triggers on tags: ["v*"]. A tag pushed without the prefix does nothing — no release is built and nothing reports a problem, so the mistake is only noticed when the release fails to appear.

The ruleset blocks creating any tag outside refs/tags/v*, turning that into a push-time error. Every existing tag here already uses the prefix, so nothing in the current history conflicts.

Verified

Ruleset is active. Pushing a tag without the prefix is rejected:

remote: error: GH013: Repository rule violations found for refs/tags/ruleset-probe-no-v.
remote: - Cannot create ref due to creations being restricted.

@Ilyes512
Ilyes512 merged commit 8a2b1b9 into main Sep 22, 2026
10 checks passed
@Ilyes512
Ilyes512 deleted the chore/tag-v-prefix-ruleset branch September 22, 2026 20:53
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.

1 participant