gl_new_issue {gitlabr} | R Documentation |
Post a new issue or edit one
Description
Post a new issue or edit one
Usage
gl_new_issue(project, title, ...)
gl_create_issue(project, title, ...)
gl_edit_issue(project, issue_id, api_version = 4, ...)
gl_close_issue(project, issue_id, ...)
gl_reopen_issue(project, issue_id, ...)
gl_assign_issue(project, issue_id, assignee_id = NULL, ...)
gl_unassign_issue(project, issue_id, ...)
gl_delete_issue(project, issue_id, ...)
Arguments
project |
id (preferred way) or name of the project. Not repository name. |
title |
title of the issue |
... |
further parameters passed to the API call, may contain description, assignee_id, milestone_id, labels, state_event (for edit_issue). |
issue_id |
issue id (projectwide; for API v3 only you can use global iid when force_api_v3 is |
api_version |
a switch to force deprecated GitLab API v3 behavior that allows filtering by global iid. If |
assignee_id |
numeric id of users as returned in '/users/' API request |
Value
Tibble with the created or remaining issues and descriptive variables.
Examples
## Not run:
# create an issue
new_issue_infos <- gl_create_issue(project = "<<your-project-id>>", "A simple issue")
new_issue_iid <- new_issue_infos$iid[1]
## close issue
gl_close_issue("<<your-project-id>>", new_issue_iid)
## reopen issue
gl_reopen_issue("<<your-project-id>>", new_issue_iid)
## edit its description
gl_edit_issue("<<your-project-id>>", new_issue_iid, description = "This is a test")
## assign it
gl_assign_issue("<<your-project-id>>", new_issue_iid, assignee_id = "<<user-id>>")
## unassign it
gl_unassign_issue("<<your-project-id>>", new_issue_iid)
## Delete issue as if it never existed
## (please note that you must have "Owner" role on the GitLab project)
gl_delete_issue("<<your-project-id>>", new_issue_iid)
## End(Not run)
[Package gitlabr version 2.1.0 Index]