Skip to main content
The repo module is an interface for performing actions onto git providers. Reply to a comment, create an issue, review a pull request, open a pull request, etc.

Example Usage

Methods

update_pull_request

Updates a pull request. Typically, you’d use this to update the title, body/description, or state of a pull request.
int
required
The number of the pull request to update.
string
The title of the pull request.
string
The body of the pull request.
bool
Whether the maintainer can modify the pull request.
string
The state of the pull request.
string
The target branch of the pull request.
string
The owner of the repository.
string
The name of the repository.

update_issue

Updates an issue. Typically, you’d use this to update the title, description, or state of an issue.
int
required
The number of the issue to update.
string
The title of the issue.
string
The body of the issue.
string
The state of the issue.
string
The reason the issue is in the state it is in.
int
The number of the milestone to assign to the issue.
string
The target branch of the issue.
string
The owner of the repository.
string
The name of the repository.

create_issue

Creates an issue.
string
required
The title of the issue.
string
The body of the issue.
string[]
A list of assignees to assign to the issue. Corresponds to arrays of user.login.
list
A list of labels to add to the issue.
int
The number of the milestone to assign to the issue.
string
The owner of the repository.
string
The name of the repository.

create_pull_request

Creates a pull request.
string
required
The source branch to create the pull request from.
string
required
The target branch to create the pull request to.
string
required
The title of the pull request.
string
The body of the pull request.
bool
Whether the pull request is a draft.
int
The number of the issue to create the pull request from.
string
The owner of the repository.
string
The name of the repository.

comment_on_pull_request

Comments on a pull request.
int
required
The number of the pull request to comment on.
string
required
The body of the comment.
string
The owner of the repository.
string
The name of the repository.

delete_pull_request_comment

Deletes a pull request comment.
int
required
The ID of the comment to delete.
string
The owner of the repository.
string
The name of the repository.

update_pull_request_comment

Updates a pull request comment.
int
required
The ID of the comment to update.
string
required
The body of the comment.
string
The owner of the repository.
string
The name of the repository.

comment_on_pull_request_file

Comments on a file in a pull request.
string
The SHA of the commit to comment on.
string
The path of the file to comment on.
int
The position of the comment in the file.
int
required
The number of the pull request to comment on.
string
The body of the comment.
int
The line number to comment on.
int
The ID of the comment to reply to.
string
The side of the comment in the file.
int
The start line of the comment in the file.
string
The side of the comment in the file.
string
The type of the subject.
string
The owner of the repository.
string
The name of the repository.

update_issue_comment

Updates an issue comment.
int
required
The ID of the comment to update.
string
required
The body of the comment.
string
The owner of the repository.
string
The name of the repository.

delete_issue_comment

Deletes an issue comment.
int
required
The ID of the comment to delete.
string
The owner of the repository.
string
The name of the repository.

comment_on_issue

Comments on an issue.
int
required
The number of the issue to comment on.
string
required
The body of the comment.
string
The owner of the repository.
string
The name of the repository.

reply_to_pull_request_comment

Replies to a pull request comment.
int
required
The ID of the comment to reply to.
int
required
The number of the pull request to reply to.
string
required
The body of the reply.
string
The owner of the repository.
string
The name of the repository.

review_pull_request

Reviews a pull request.
int
required
The number of the pull request to review.
string
required
The body of the review.
string
The SHA of the commit to review.
list
A list of comments to add to the review.
string
The event to trigger on the review.
string
The owner of the repository.
string
The name of the repository.