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
efbfce38
Unverified
Commit
efbfce38
authored
Feb 14, 2020
by
Brian Krische
Committed by
GitHub
Feb 14, 2020
Browse files
Add new merge request properties. (#509)
parent
69e819cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/MergeRequest.java
View file @
efbfce38
...
...
@@ -16,6 +16,7 @@ public class MergeRequest {
private
Assignee
assignee
;
private
List
<
Assignee
>
assignees
;
private
Author
author
;
private
Boolean
blockingDiscussionsResolved
;
private
List
<
Diff
>
changes
;
private
Date
closedAt
;
private
Participant
closedBy
;
...
...
@@ -24,6 +25,7 @@ public class MergeRequest {
private
Boolean
discussionLocked
;
private
Integer
downvotes
;
private
Boolean
forceRemoveSourceBranch
;
private
Boolean
hasConflicts
;
private
Integer
id
;
private
Integer
iid
;
private
List
<
String
>
labels
;
...
...
@@ -113,6 +115,14 @@ public class MergeRequest {
this
.
author
=
author
;
}
public
Boolean
getBlockingDiscussionsResolved
()
{
return
blockingDiscussionsResolved
;
}
public
void
setBlockingDiscussionsResolved
(
Boolean
blockingDiscussionsResolved
)
{
this
.
blockingDiscussionsResolved
=
blockingDiscussionsResolved
;
}
public
List
<
Diff
>
getChanges
()
{
return
changes
;
}
...
...
@@ -177,6 +187,14 @@ public class MergeRequest {
this
.
forceRemoveSourceBranch
=
forceRemoveSourceBranch
;
}
public
Boolean
getHasConflicts
()
{
return
hasConflicts
;
}
public
void
setHasConflicts
(
Boolean
hasConflicts
)
{
this
.
hasConflicts
=
hasConflicts
;
}
public
Integer
getId
()
{
return
id
;
}
...
...
src/test/resources/org/gitlab4j/api/merge-request.json
View file @
efbfce38
...
...
@@ -60,5 +60,7 @@
"base_sha"
:
"c380d3acebd181f13629a25d2e2acca46ffe1e00"
,
"head_sha"
:
"2be7ddb704c7b6b83732fdd5b9f09d5a397b5f8f"
,
"start_sha"
:
"c380d3acebd181f13629a25d2e2acca46ffe1e00"
}
},
"has_conflicts"
:
false
,
"blocking_discussions_resolved"
:
true
}
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