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.
2 parents ddba752 + 8a560c6 commit 1e1d467Copy full SHA for 1e1d467
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