repo
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.
The number of the pull request to update.
The title of the pull request.
The body of the pull request.
Whether the maintainer can modify the pull request.
The state of the pull request.
The target branch of the pull request.
The owner of the repository.
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.
The number of the issue to update.
The title of the issue.
The body of the issue.
The state of the issue.
The reason the issue is in the state it is in.
The number of the milestone to assign to the issue.
The target branch of the issue.
The owner of the repository.
The name of the repository.
create_issue
Creates an issue.
The title of the issue.
The body of the issue.
A list of assignees to assign to the issue. Corresponds to arrays of user.login
.
A list of labels to add to the issue.
The number of the milestone to assign to the issue.
The owner of the repository.
The name of the repository.
create_pull_request
Creates a pull request.
The source branch to create the pull request from.
The target branch to create the pull request to.
The title of the pull request.
The body of the pull request.
Whether the pull request is a draft.
The number of the issue to create the pull request from.
The owner of the repository.
The name of the repository.
comment_on_pull_request
Comments on a pull request.
The number of the pull request to comment on.
The body of the comment.
The owner of the repository.
The name of the repository.
delete_pull_request_comment
Deletes a pull request comment.
The ID of the comment to delete.
The owner of the repository.
The name of the repository.
update_pull_request_comment
Updates a pull request comment.
The ID of the comment to update.
The body of the comment.
The owner of the repository.
The name of the repository.
comment_on_pull_request_file
Comments on a file in a pull request.
The SHA of the commit to comment on.
The path of the file to comment on.
The position of the comment in the file.
The number of the pull request to comment on.
The body of the comment.
The line number to comment on.
The ID of the comment to reply to.
The side of the comment in the file.
The start line of the comment in the file.
The side of the comment in the file.
The type of the subject.
The owner of the repository.
The name of the repository.
update_issue_comment
Updates an issue comment.
The ID of the comment to update.
The body of the comment.
The owner of the repository.
The name of the repository.
delete_issue_comment
Deletes an issue comment.
The ID of the comment to delete.
The owner of the repository.
The name of the repository.
comment_on_issue
Comments on an issue.
The number of the issue to comment on.
The body of the comment.
The owner of the repository.
The name of the repository.
reply_to_pull_request_comment
Replies to a pull request comment.
The ID of the comment to reply to.
The number of the pull request to reply to.
The body of the reply.
The owner of the repository.
The name of the repository.
review_pull_request
Reviews a pull request.
The number of the pull request to review.
The body of the review.
The SHA of the commit to review.
A list of comments to add to the review.
The event to trigger on the review.
The owner of the repository.
The name of the repository.