gl_comments: Get the comments/notes of a commit or issue

Description Usage Arguments Details Examples

View source: R/comments.R

Description

Get the comments/notes of a commit or issue

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

Arguments

object_type

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

id

id of object: sha for commits, not issues notes/comments: (project-wide) id for api version 4, (global) iid for api version 3

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 gl_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

Examples

1
2
3
4
5
6
7
## Not run: 
my_project <- gl_project_connection(project = "testor"...) ## fill in login parameters
my_project(gl_get_comments, "issue", 1)
my_project(gl_get_comments, "commit", "8ce5ef240123cd78c1537991e5de8d8323666b15")
my_project(gl_comment_issue, 1, text = "Almost done!")

## End(Not run)

statnmap/gitlab2r documentation built on Aug. 8, 2020, 12:07 a.m.