Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
421c7591
Commit
421c7591
authored
7 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Updated getBranches() to set per_page to DEFAULT_PER_PAGE.
parent
2450d70d
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/gitlab4j/api/RepositoryApi.java
+2
-1
src/main/java/org/gitlab4j/api/RepositoryApi.java
with
2 additions
and
1 deletion
+2
-1
src/main/java/org/gitlab4j/api/RepositoryApi.java
+
2
-
1
View file @
421c7591
...
@@ -36,7 +36,8 @@ public class RepositoryApi extends AbstractApi {
...
@@ -36,7 +36,8 @@ public class RepositoryApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
List
<
Branch
>
getBranches
(
Integer
projectId
)
throws
GitLabApiException
{
public
List
<
Branch
>
getBranches
(
Integer
projectId
)
throws
GitLabApiException
{
Response
response
=
get
(
Response
.
Status
.
OK
,
null
,
"projects"
,
projectId
,
"repository"
,
"branches"
);
Form
formData
=
new
GitLabApiForm
().
withParam
(
"per_page"
,
getDefaultPerPage
());
Response
response
=
get
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
projectId
,
"repository"
,
"branches"
);
return
(
response
.
readEntity
(
new
GenericType
<
List
<
Branch
>>()
{
return
(
response
.
readEntity
(
new
GenericType
<
List
<
Branch
>>()
{
}));
}));
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets