gl_new_issue | R Documentation |
Post a new issue or edit one
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, ...)
project |
project where the issue should be posted |
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 |
Tibble with the created or remaining issues and descriptive variables.
## 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 gl_delete_issue("<<your-project-id>>", new_issue_iid) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.