Method: Github::Client::Issues::Comments#edit

Defined in:
lib/github_api/client/issues/comments.rb

#edit(*args) ⇒ Object

Edit a comment

Examples:

github = Github.new
github.issues.comments.edit 'owner-name', 'repo-name', 'id',
   body: 'a new comment'
github.issues.comments.edit
  user: 'owner-name',
  repo: 'repo-name',
  id: 'comment-id',
  body: 'a new comment body'

Parameters:



118
119
120
121
122
123
124
125
# File 'lib/github_api/client/issues/comments.rb', line 118

def edit(*args)
  arguments(args, required: [:user, :repo, :id]) do
    permit VALID_ISSUE_COMMENT_PARAM_NAME
    assert_required %w[ body ]
  end

  patch_request("/repos/#{arguments.user}/#{arguments.repo}/issues/comments/#{arguments.id}", arguments.params)
end