Class PullRequestGroovyObject

  • All Implemented Interfaces:
    groovy.lang.GroovyObject, Serializable

    public class PullRequestGroovyObject
    extends groovy.lang.GroovyObjectSupport
    implements Serializable
    Groovy object that represents a GitHub PullRequest. TODO: better javadoc
    Author:
    Aaron Whiteside
    See Also:
    ExtendedPullRequest, Serialized Form
    • Method Detail

      • getId

        public long getId()
      • getNumber

        public int getNumber()
      • getDiffUrl

        public String getDiffUrl()
      • getUrl

        public String getUrl()
      • getPatchUrl

        public String getPatchUrl()
      • getState

        public String getState()
      • getIssueUrl

        public String getIssueUrl()
      • getTitle

        public String getTitle()
      • getBody

        public String getBody()
      • isLocked

        public boolean isLocked()
      • isDraft

        public boolean isDraft()
      • getHead

        public String getHead()
      • getHeadRef

        public String getHeadRef()
      • getBase

        public String getBase()
      • getUpdatedAt

        public Date getUpdatedAt()
      • getCreatedAt

        public Date getCreatedAt()
      • getCreatedBy

        public String getCreatedBy()
      • getClosedAt

        public Date getClosedAt()
      • getClosedBy

        public String getClosedBy()
      • getMergedAt

        public Date getMergedAt()
      • getMergedBy

        public String getMergedBy()
      • getCommitCount

        public int getCommitCount()
      • getCommentCount

        public int getCommentCount()
      • getDeletions

        public int getDeletions()
      • getMergeCommitSha

        public String getMergeCommitSha()
      • getMergeableState

        public String getMergeableState()
      • isMaintainerCanModify

        public boolean isMaintainerCanModify()
      • getAdditions

        public int getAdditions()
      • getChangedFiles

        public int getChangedFiles()
      • isMergeable

        public boolean isMergeable()
      • isMerged

        public boolean isMerged()
      • getRequestedReviewers

        public Iterable<String> getRequestedReviewers()
      • getRequestedTeamReviewers

        public Iterable<String> getRequestedTeamReviewers()
      • setMilestone

        public void setMilestone​(int milestoneNumber)
      • setLocked

        public void setLocked​(boolean locked)
      • setTitle

        public void setTitle​(String title)
      • setBody

        public void setBody​(String body)
      • setState

        public void setState​(String state)
      • setBase

        public void setBase​(String newBase)
      • setMaintainerCanModify

        public void setMaintainerCanModify​(boolean value)
      • setLabels

        public void setLabels​(List<String> labels)
      • createReviewRequest

        public void createReviewRequest​(String reviewer)
      • createReviewRequests

        public void createReviewRequests​(List<String> reviewers)
      • deleteReviewRequest

        public void deleteReviewRequest​(String reviewer)
      • deleteReviewRequests

        public void deleteReviewRequests​(List<String> reviewers)
      • createTeamReviewRequest

        public void createTeamReviewRequest​(String team)
      • createTeamReviewRequests

        public void createTeamReviewRequests​(List<String> teams)
      • deleteTeamReviewRequest

        public void deleteTeamReviewRequest​(String team)
      • deleteTeamReviewRequests

        public void deleteTeamReviewRequests​(List<String> teams)
      • addLabel

        public void addLabel​(String label)
      • addLabels

        public void addLabels​(List<String> labels)
      • removeLabel

        public void removeLabel​(String label)
      • addAssignees

        public void addAssignees​(List<String> assignees)
      • setAssignees

        public void setAssignees​(List<String> assignees)
      • removeAssignees

        public void removeAssignees​(List<String> assignees)
      • review

        public void review​(String event)
      • review

        public void review​(String event,
                           String body)
      • deleteReviewComment

        public void deleteReviewComment​(long commentId)
      • deleteComment

        public void deleteComment​(long commentId)
      • refresh

        public void refresh()
      • setCredentials

        public void setCredentials​(String userName,
                                   String password)
      • deleteBranch

        public void deleteBranch()