Skip to content

MergeRequest: add draft flag #1229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@ public class MergeRequest implements Serializable {
private Boolean discussionLocked;
private Integer divergedCommitsCount;
private Integer downvotes;
private Boolean draft;
private Boolean forceRemoveSourceBranch;
private Boolean hasConflicts;
private Long id;
@@ -217,6 +218,14 @@ public void setDownvotes(Integer downvotes) {
this.downvotes = downvotes;
}

public Boolean getDraft() {
return draft;
}

public void setDraft(Boolean draft) {
this.draft = draft;
}

public Boolean getForceRemoveSourceBranch() {
return forceRemoveSourceBranch;
}
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@
"state":"active",
"created_at":"2012-04-29T08:46:00Z"
},
"draft": false,
"allow_collaboration": false,
"allow_maintainer_to_push": false,
"discussion_locked": false,