Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JENKINS-38987 Follow-up] Provide implementations of getPronoun() for…
… the SCMHead/Source/Navigator
- Loading branch information
Showing
with
59 additions
and 6 deletions.
- +2 −2 pom.xml
- +25 −0 src/main/java/org/jenkinsci/plugins/github_branch_source/BranchSCMHead.java
- +9 −2 src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java
- +8 −2 src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
- +8 −0 src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMHead.java
- +7 −0 src/main/resources/org/jenkinsci/plugins/github_branch_source/Messages.properties
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,25 @@ | ||
package org.jenkinsci.plugins.github_branch_source; | ||
|
||
import edu.umd.cs.findbugs.annotations.NonNull; | ||
import jenkins.scm.api.SCMHead; | ||
|
||
/** | ||
* Head corresponding to a branch. | ||
* @since FIXME | ||
*/ | ||
public class BranchSCMHead extends SCMHead { | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public BranchSCMHead(@NonNull String name) { | ||
super(name); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
public String getPronoun() { | ||
return Messages.BranchSCMHead_Pronoun(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters