From 1a47a2612f50887610b860debf729bcc067a4901 Mon Sep 17 00:00:00 2001 From: Nicolas Kosinski Date: Sun, 25 Apr 2021 07:00:01 +0200 Subject: [PATCH] protector: add page (#5820) --- pages/common/protector.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/protector.md diff --git a/pages/common/protector.md b/pages/common/protector.md new file mode 100644 index 0000000000..f5ecfddaf4 --- /dev/null +++ b/pages/common/protector.md @@ -0,0 +1,16 @@ +# protector + +> Protect or unprotect branches on GitHub repositories. +> More information: . + +- Protect branches of a GitHub repository (create branch protection rules): + +`protector {{branches_regex}} -repos {{organization/repository}}` + +- Use the dry run to see what would be protected (can also be used for freeing): + +`protector -dry-run {{branches_regex}} -repos {{organization/repository}}` + +- Free branches of a GitHub repository (delete branch protection rules): + +`protector -free {{branches_regex}} -repos {{organization/repository}}`