Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-41453] Pick up the scm-api 2.0.2-beta-2
- Also address code review comments
  • Loading branch information
stephenc committed Jan 25, 2017
1 parent 5f102ac commit 04636a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.0.2-beta-1</version>
<version>2.0.2-beta-2</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down
Expand Up @@ -49,6 +49,9 @@ public final class PullRequestSCMHead extends SCMHead implements ChangeRequestSC
private final String sourceOwner;
private final String sourceRepo;
private final String sourceBranch;
/**
* Only populated if de-serializing instances.
*/
private transient Metadata metadata;

PullRequestSCMHead(GHPullRequest pr, String name, boolean merge) {
Expand Down Expand Up @@ -148,8 +151,10 @@ public String getSourceRepo() {
return sourceRepo;
}

@Restricted(NoExternalUse.class)
public static class Metadata {
/**
* Holds legacy data so we can recover the details.
*/
private static class Metadata {
private final int number;
private final String url;
private final String userLogin;
Expand Down

0 comments on commit 04636a5

Please sign in to comment.