module Github::Issues::Comments
def create_issue_comment(user_name, repo_name, issue_id, params={})
"body" => 'a new comment'
@github.issues.create_issue_comment 'user-name', 'repo-name', 'issue-id',
@github = Github.new
= Examples
:body Required string
= Inputs
Create a comment
def create_issue_comment(user_name, repo_name, issue_id, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _validate_presence_of issue_id _normalize_params_keys(params) _filter_params_keys(VALID_ISSUE_COMMENT_PARAM_NAME, params) post("/repos/#{user}/#{repo}/issues/#{issue_id}/comments") end
def delete_issue_comment(user_name, repo_name, comment_id, params={})
@github.issues.delete_issue_comment 'user-name', 'repo-name', 'comment-id'
@github = Github.new
= Examples
Delete a comment
def delete_issue_comment(user_name, repo_name, comment_id, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _validate_presence_of comment_id _normalize_params_keys(params) delete("/repos/#{user}/#{repo}/issues/comments/#{comment_id}") end
def edit_issue_comment(user_name, repo_name, comment_id, params={})
"body" => 'a new comment'
@github.issues.edit_issue_comment 'user-name', 'repo-name', 'comment-id',
@github = Github.new
= Examples
:body Required string
= Inputs
Edit a comment
def edit_issue_comment(user_name, repo_name, comment_id, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _validate_presence_of comment_id _normalize_params_keys(params) _filter_params_keys(VALID_ISSUE_COMMENT_PARAM_NAME, params) patch("/repos/#{user}/#{repo}/issues/comments/#{comment_id}") end
def issue_comment(user_name, repo_name, comment_id, params={})
@github.issues.issue_comment 'user-name', 'repo-name', 'comment-id'
@github = Github.new
= Examples
Get a single comment
def issue_comment(user_name, repo_name, comment_id, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _validate_presence_of comment_id _normalize_params_keys(params) get("/repos/#{user}/#{repo}/issues/comments/#{comment_id}") end
def issue_comments(user_name, repo_name, issue_id, params={})
@github.issues.issue_comments 'user-name', 'repo-name', 'issue-id'
@github = Github.new
= Examples
List comments on an issue
def issue_comments(user_name, repo_name, issue_id, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? _normalize_params_keys(params) get("/repos/#{user}/#{repo}/issues/#{issue_id}/comments", params) end