Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
aac8235d
Commit
aac8235d
authored
May 17, 2024
by
Jeremie Bresson
Browse files
Merge remote-tracking branch 'origin/main' into 6.x
parents
0a1a3cf5
bc350802
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/ProtectedBranchesApi.java
View file @
aac8235d
...
...
@@ -190,7 +190,7 @@ public class ProtectedBranchesApi extends AbstractApi {
return
(
response
.
readEntity
(
ProtectedBranch
.
class
));
}
/**
/**
* Protects a single repository branch or several project repository branches using a wildcard protected branch.
*
* <p>NOTE: This method is only available to GitLab Starter, Bronze, or higher.</p>
...
...
@@ -205,9 +205,9 @@ public class ProtectedBranchesApi extends AbstractApi {
* @param codeOwnerApprovalRequired prevent pushes to this branch if it matches an item in the CODEOWNERS file. (defaults: false)
* @return the branch info for the protected branch
* @throws GitLabApiException if any exception occurs
*/
*/
public
ProtectedBranch
protectBranch
(
Object
projectIdOrPath
,
String
branchName
,
Integer
allowedToPushUserId
,
Integer
allowedToMergeUserId
,
Integer
allowedToUnprotectUserId
,
Long
allowedToPushUserId
,
Long
allowedToMergeUserId
,
Long
allowedToUnprotectUserId
,
Boolean
codeOwnerApprovalRequired
)
throws
GitLabApiException
{
return
protectBranch
(
projectIdOrPath
,
branchName
,
allowedToPushUserId
,
allowedToMergeUserId
,
allowedToUnprotectUserId
,
codeOwnerApprovalRequired
,
null
);
}
...
...
@@ -230,7 +230,7 @@ public class ProtectedBranchesApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs
*/
public
ProtectedBranch
protectBranch
(
Object
projectIdOrPath
,
String
branchName
,
Integer
allowedToPushUserId
,
Integer
allowedToMergeUserId
,
Integer
allowedToUnprotectUserId
,
Long
allowedToPushUserId
,
Long
allowedToMergeUserId
,
Long
allowedToUnprotectUserId
,
Boolean
codeOwnerApprovalRequired
,
Boolean
allowForcedPush
)
throws
GitLabApiException
{
Form
formData
=
new
GitLabApiForm
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment