Client
class Client
Class GitHubClient.
Traits
Properties
| protected | $curl | from CICommon | |
| protected | $api_url | from CICommon | 
Methods
No description
Get a single pull request.
No description
No description
No description
List pull requests files.
Get if a pull request has been merged.
No description
List reviews on a pull request.
Get a single review.
Delete a pending review.
Get comments for a single review.
Create a pull request review.
Submit a pull request review.
Dismiss a pull request review.
List comments on a pull request.
List comments in a repository.
Get a single comment.
Create a comment.
Edit a comment.
Delete a comment.
List review requests.
Create a review request.
Delete a review request.
Details
        in CICommon at         line 18
                            
    __construct(Curl $curl, string $api_url)
        
    
    CICommon constructor.
        at         line 40
                            mixed
    list(string $username, string $repo_name, string $state = null, string $head = null, string $base = null, string $sort = null, string $direction = null)
        
    
    
        at         line 68
                            mixed
    get(string $username, string $repo_name, int $pr_num)
        
    
    Get a single pull request.
        at         line 82
                            mixed
    create(string $username, string $repo_name, int $from_issue, string $title, string $head, string $base, string $body = null, bool $maintainer_can_modify = true)
        
    
    
        at         line 120
                            mixed
    update(string $username, string $repo_name, int $from_issue, string $title, string $head, string $base, string $body = null, bool $maintainer_can_modify = true)
        
    
    
        at         line 141
                            mixed
    listCommits(string $username, string $repo_name, int $pr_num)
        
    
    
        at         line 155
                            mixed
    listFiles(string $username, string $repo_name, int $pr_num)
        
    
    List pull requests files.
        at         line 171
                            bool
    isMerged(string $username, string $repo_name, $pr_num)
        
    
    Get if a pull request has been merged.
        at         line 195
                            bool|mixed
    merge(string $username, string $repo_name, int $pr_num, string $commit_title, string|null $commit_message, string $sha, int $merge_method)
        
    
    
        at         line 253
                            mixed
    listReviews(string $repo_full_name, int $pull_number)
        
    
    List reviews on a pull request.
        at         line 265
                            mixed
    getReview(string $repo_full_name, int $pull_number, int $review_id)
        
    
    Get a single review.
        at         line 275
                            void
    deletePendingReview(string $repo_full_name, int $pull_number, int $review_id)
        
    
    Delete a pending review.
        at         line 287
                            mixed
    getCommentsForReview(string $repo_full_name, int $pull_number, int $review_id)
        
    
    Get comments for a single review.
        at         line 299
                            void
    createReview(string $repo_full_name, int $pull_number, string $commit_id, string $body, string $event, array $comments)
        
    
    Create a pull request review.
        at         line 316
                            void
    submitReview(string $repo_full_name, int $pull_number, int $review_id, string $body, string $event)
        
    
    Submit a pull request review.
        at         line 331
                            void
    dismissReview(string $repo_full_name, int $pull_number, int $review_id, string $message)
        
    
    Dismiss a pull request review.
        at         line 352
                            mixed
    listComments(string $repo_full_name, int $pull_number, string $sort, string|null $direction, string|null $since)
        
    
    List comments on a pull request.
        at         line 374
                            mixed
    ListCommentsInRepository(string $repo_full_name, string $sort, string $direction, string $since)
        
    
    List comments in a repository.
        at         line 392
                            mixed
    getComment(string $repo_full_name, int $comment_id)
        
    
    Get a single comment.
        at         line 402
                            void
    createComment(string $repo_full_name, int $pull_number, string $body, string $commit_id, string $path, string $position, int|null $in_reply_to)
        
    
    Create a comment.
        at         line 426
                            void
    editComment(string $repo_full_name, int $comment_id, string $body)
        
    
    Edit a comment.
        at         line 441
                            void
    deleteComment(string $repo_full_name, int $comment_id)
        
    
    Delete a comment.
204
        at         line 451
                            void
    listReviewRequests(string $repo_full_name, int $pull_number)
        
    
    List review requests.
        at         line 461
                            void
    createReviewRequest(string $repo_full_name, int $pull_number, array $reviewers, array $team_reviewers)
        
    
    Create a review request.
        at         line 476
                            void
    deleteReviewRequest(string $repo_full_name, int $pull_number, array $reviewers, array $team_reviewers)
        
    
    Delete a review request.