Class GitHubPRPullRequest


  • public class GitHubPRPullRequest
    extends Object
    Maintains state about a Pull Request for a particular Jenkins job. This is what understands the current state of a PR for a particular job. Instances of this class are immutable. Used from GitHubPRRepository
    • Constructor Detail

      • GitHubPRPullRequest

        public GitHubPRPullRequest​(org.kohsuke.github.GHPullRequest pr)
        Save only what we need for next comparison
    • Method Detail

      • getNumber

        public int getNumber()
      • getHeadSha

        public String getHeadSha()
      • isMergeable

        public boolean isMergeable()
      • getBaseRef

        public String getBaseRef()
      • getHeadRef

        public String getHeadRef()
      • getUserEmail

        public String getUserEmail()
      • getTitle

        public String getTitle()
      • getBody

        public String getBody()
      • getLabels

        @NonNull
        public Set<String> getLabels()
      • getLastCommentCreatedAt

        @CheckForNull
        public Date getLastCommentCreatedAt()
      • getHtmlUrl

        public URL getHtmlUrl()
        URL to the Github Pull Request.
      • getPrUpdatedAt

        public Date getPrUpdatedAt()
      • getIssueUpdatedAt

        public Date getIssueUpdatedAt()
      • getUserLogin

        public String getUserLogin()
      • getSourceRepoOwner

        public String getSourceRepoOwner()
      • getState

        @CheckForNull
        public String getState()
        See Also:
        state
      • setLabels

        public void setLabels​(Set<String> labels)
        as is
      • isInBadState

        public boolean isInBadState()
        Indicates that remote PR wasn't fully saved locally during last check.
      • getIconFileName

        public static String getIconFileName()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object