| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,11 @@ Get a single protected branch:: | |||
| 29 | 29 | ||
| 30 | 30 | Create a protected branch:: | |
| 31 | 31 | ||
| 32 | - p_branch = project.protectedbranches.create({'name': '*-stable'}) | ||
| 32 | + p_branch = project.protectedbranches.create({ | ||
| 33 | + 'name': '*-stable', | ||
| 34 | + 'merge_access_level': gitlab.DEVELOPER_ACCESS, | ||
| 35 | + 'push_access_level': gitlab.MASTER_ACCESS | ||
| 36 | + }) | ||
| 33 | 37 | ||
| 34 | 38 | Delete a protected branch:: | |
| 35 | 39 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments