Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 2 additions & 1 deletion src/main/java/org/gitlab/api/GitlabAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,8 @@ public GitlabProject createProject(GitlabProject project) throws IOException {
.appendIf("request_access_enabled", project.isRequestAccessEnabled())
.appendIf("repository_storage", project.getRepositoryStorage())
.appendIf("approvals_before_merge", project.getApprovalsBeforeMerge())
.appendIf("printing_merge_request_link_enabled", project.isPrintingMergeRequestLinkEnabled());
.appendIf("printing_merge_request_link_enabled", project.isPrintingMergeRequestLinkEnabled())
.appendIf("initialize_with_readme",project.isInitializeWithReadme());
Comment thread
mustafayildirim marked this conversation as resolved.
Outdated

GitlabNamespace namespace = project.getNamespace();
if (namespace != null) {
Expand Down
15 changes: 14 additions & 1 deletion src/main/java/org/gitlab/api/models/GitlabProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ public class GitlabProject {
@JsonProperty("import_status")
private String importStatus;

@JsonProperty("initialize_with_readme")
private Boolean initializeWithReadme;

public Integer getId() {
return id;
}
Expand Down Expand Up @@ -474,8 +477,16 @@ public Boolean isPrintingMergeRequestLinkEnabled() {
public void setPrintingMergeRequestLinkEnabled(Boolean printingMergeRequestLinkEnabled) {
this.printingMergeRequestLinkEnabled = printingMergeRequestLinkEnabled;
}

public Boolean isInitializeWithReadme() {
return initializeWithReadme;
Comment thread
mustafayildirim marked this conversation as resolved.
Outdated
}

@Override
public void setInitializeWithReadme(Boolean initializeWithReadme) {
this.initializeWithReadme = initializeWithReadme;
Comment thread
mustafayildirim marked this conversation as resolved.
Outdated
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Expand All @@ -497,4 +508,6 @@ public int hashCode() {
result = 31 * result + (namespace != null ? namespace.hashCode() : 0);
return result;
}


Comment thread
mustafayildirim marked this conversation as resolved.
Outdated
}