Repository navigation
Rulesets « propriétaire seul » pour les branches et les tags - #7
Merged
Merged
Conversation
Two importable GitHub rulesets that restrict creation, updates, deletion and force-pushes on every branch and tag to the Repository admin role (the owner on this personal repository), plus an import guide listing what else gets blocked and the settings rulesets cannot cover. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HpBMmLezKyK7FADYUBiPmx
Tromset
marked this pull request as ready for review
October 3, 2026 12:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
Cette PR ajoute deux rulesets GitHub à importer, ainsi qu'un guide (
.github/rulesets/README.md).owner-only-branches.json: sur toutes les branches, seul le rôle Repository admin (le propriétaire, sur un dépôt personnel) peut créer, pousser, fusionner, supprimer ou forcer un push.owner-only-tags.json: la même règle s'applique à tous les tags.Le guide couvre aussi :
Les fichiers JSON suivent le format de l'API REST des rulesets (
POST /repos/{owner}/{repo}/rulesets). Trois relectures indépendantes, fondées sur docs.github.com, n'y ont trouvé aucune erreur de schéma.Ces fichiers ne s'appliquent pas tout seuls : il faut les importer dans Settings > Rules > Rulesets.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HpBMmLezKyK7FADYUBiPmx
Generated by Claude Code