8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddba752 commit 8a560c6Copy full SHA for 8a560c6
docs/gl_objects/branches.rst
@@ -41,3 +41,10 @@ Protect/unprotect a repository branch:
41
.. literalinclude:: branches.py
42
:start-after: # protect
43
:end-before: # end protect
44
+
45
+.. note::
46
47
+ By default, developers will not be able to push or merge into
48
+ protected branches. This can be changed by passing ``developers_can_push``
49
+ or ``developers_can_merge`` like so:
50
+ ``branch.protect(developers_can_push=False, developers_can_merge=True)``
0 commit comments