diff options
author | Robert Jeppesen <robert.jeppesen@durius.se> | 2014-05-14 19:11:37 +0200 |
---|---|---|
committer | Robert Jeppesen <robert.jeppesen@durius.se> | 2014-05-14 19:11:37 +0200 |
commit | 0466f63f48d708bf39a7f22dcbe6e6881b99e62d (patch) | |
tree | b1cba853f96f5df77146e92c7e239231e9ca5a91 /src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java | |
parent | 539028bbbfeca8195880cb44990b98dda6d39914 (diff) | |
download | bbprb-0466f63f48d708bf39a7f22dcbe6e6881b99e62d.tar.gz |
Delete the first comment when build is finished for a cleaner appearance.
Implements #8
Diffstat (limited to 'src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java')
-rw-r--r-- | src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java index 66a0ad8..2bdc558 100644 --- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java +++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketCause.java @@ -15,6 +15,7 @@ public class BitbucketCause extends Cause { private final String destinationRepositoryName; private final String pullRequestTitle; private final String commitHash; + private final String buildStartCommentId; public static final String BITBUCKET_URL = "https://bitbucket.org/"; public BitbucketCause(String sourceBranch, @@ -25,7 +26,8 @@ public class BitbucketCause extends Cause { String destinationRepositoryOwner, String destinationRepositoryName, String pullRequestTitle, - String commitHash) { + String commitHash, + String buildStartCommentId) { this.sourceBranch = sourceBranch; this.targetBranch = targetBranch; this.repositoryOwner = repositoryOwner; @@ -35,6 +37,7 @@ public class BitbucketCause extends Cause { this.destinationRepositoryName = destinationRepositoryName; this.pullRequestTitle = pullRequestTitle; this.commitHash = commitHash; + this.buildStartCommentId = buildStartCommentId; } public String getSourceBranch() { @@ -71,6 +74,8 @@ public class BitbucketCause extends Cause { public String getCommitHash() { return commitHash; } + public String getBuildStartCommentId() { return buildStartCommentId; } + @Override public String getShortDescription() { String description = "<a href=" + BITBUCKET_URL + this.getDestinationRepositoryOwner() + "/"; |