Skip to content

Commit aac8235

Browse files
committed
Merge remote-tracking branch 'origin/main' into 6.x
2 parents 0a1a3cf + bc35080 commit aac8235

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/main/java/org/gitlab4j/api/ProtectedBranchesApi.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public ProtectedBranch protectBranch(Object projectIdOrPath, String branchName,
190190
return (response.readEntity(ProtectedBranch.class));
191191
}
192192

193-
/**
193+
/**
194194
* Protects a single repository branch or several project repository branches using a wildcard protected branch.
195195
*
196196
* <p>NOTE: This method is only available to GitLab Starter, Bronze, or higher.</p>
@@ -205,9 +205,9 @@ public ProtectedBranch protectBranch(Object projectIdOrPath, String branchName,
205205
* @param codeOwnerApprovalRequired prevent pushes to this branch if it matches an item in the CODEOWNERS file. (defaults: false)
206206
* @return the branch info for the protected branch
207207
* @throws GitLabApiException if any exception occurs
208-
*/
208+
*/
209209
public ProtectedBranch protectBranch(Object projectIdOrPath, String branchName,
210-
Integer allowedToPushUserId, Integer allowedToMergeUserId, Integer allowedToUnprotectUserId,
210+
Long allowedToPushUserId, Long allowedToMergeUserId, Long allowedToUnprotectUserId,
211211
Boolean codeOwnerApprovalRequired) throws GitLabApiException {
212212
return protectBranch(projectIdOrPath, branchName, allowedToPushUserId, allowedToMergeUserId, allowedToUnprotectUserId, codeOwnerApprovalRequired, null);
213213
}
@@ -230,7 +230,7 @@ public ProtectedBranch protectBranch(Object projectIdOrPath, String branchName,
230230
* @throws GitLabApiException if any exception occurs
231231
*/
232232
public ProtectedBranch protectBranch(Object projectIdOrPath, String branchName,
233-
Integer allowedToPushUserId, Integer allowedToMergeUserId, Integer allowedToUnprotectUserId,
233+
Long allowedToPushUserId, Long allowedToMergeUserId, Long allowedToUnprotectUserId,
234234
Boolean codeOwnerApprovalRequired, Boolean allowForcedPush) throws GitLabApiException {
235235

236236
Form formData = new GitLabApiForm()

0 commit comments

Comments
 (0)