Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = io.github.cdancy
version = 3.1.2-CORTEX
version = 3.2.6-CORTEX

artifactoryURL = http://127.0.0.1:8080/artifactory
artifactoryUser = admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public abstract class PullRequest implements ErrorsHolder, LinksHolder {

public abstract boolean closed();

@Nullable
public abstract Long closedDate();

public abstract long createdDate();

public abstract long updatedDate();
Expand All @@ -75,47 +78,49 @@ public abstract class PullRequest implements ErrorsHolder, LinksHolder {
PullRequest() {
}

@SerializedNames({ "id", "version", "title", "description",
"state", "open", "closed", "createdDate",
"updatedDate", "fromRef", "toRef", "locked",
"author", "reviewers", "participants", "properties",
@SerializedNames({ "id", "version", "title", "description",
"state", "open", "closed", "closedDate", "createdDate",
"updatedDate", "fromRef", "toRef", "locked",
"author", "reviewers", "participants", "properties",
"links", "errors" })
public static PullRequest create(final int id,
final int version,
final String title,
final String description,
final String state,
public static PullRequest create(final int id,
final int version,
final String title,
final String description,
final String state,
final boolean open,
final boolean closed,
final long createdDate,
final long updatedDate,
final boolean closed,
final Long closedDate,
final long createdDate,
final long updatedDate,
final Reference fromRef,
final Reference toRef,
final boolean locked,
final Person author,
final Reference toRef,
final boolean locked,
final Person author,
final List<Person> reviewers,
final List<Person> participants,
final Properties properties,
final List<Person> participants,
final Properties properties,
final Links links,
final List<Error> errors) {

return new AutoValue_PullRequest(BitbucketUtils.nullToEmpty(errors),
links,
id,
version,
title,
description,
state,
open,
closed,

return new AutoValue_PullRequest(BitbucketUtils.nullToEmpty(errors),
links,
id,
version,
title,
description,
state,
open,
closed,
closedDate,
createdDate,
updatedDate,
fromRef,
toRef,
locked,
author,
BitbucketUtils.nullToEmpty(reviewers),
BitbucketUtils.nullToEmpty(participants),
updatedDate,
fromRef,
toRef,
locked,
author,
BitbucketUtils.nullToEmpty(reviewers),
BitbucketUtils.nullToEmpty(participants),
properties);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ public static ProjectPage createProjectPageFromErrors(final List<Error> errors)

public static PullRequest createPullRequestFromErrors(final List<Error> errors) {
return PullRequest.create(-1, -1, null, null, null,
false, false, 0, 0, null,
false, false, null, 0, 0, null,
null, false, null, null, null,
null, null, errors);
}
Expand Down
Loading