Get the comments of a commit or issue

Share:

Description

Get the comments of a commit or issue

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
get_comments(object_type = "issue", id, note_id = c(), project, ...)

get_issue_comments(...)

get_commit_comments(...)

comment_commit(project, id, text, ...)

comment_issue(project, id, text, ...)

edit_comment(object_type, text, ...)

edit_issue_comment(...)

edit_commit_comment(...)

Arguments

object_type

one of "issue" or "commit". Snippets and merge_requests are not implemented yet.

id

id of object: (project-wide) issue_id or commit sha

note_id

id of note

project

project name or id

...

passed on to gitlab API call. See Details.

text

Text of comment/note to add or edit (translates to gitlab API note/body respectively)

Details

For comment_commit ... might also contain path, line and line_type (old or new) to attach the comment to a specific in a file. See http://doc.gitlab.com/ce/api/commits.html