Description Usage Arguments Details Value Examples
This function creates a new issue for the specified repository in GitHub. It can also be used to assign the issue to a user and add labels or a milestone.
1 | create_issue(title, repo, body, assignees, labels, milestone, ...)
|
title |
(string) The title of the issue. |
repo |
(string) The repository specified in the format: |
body |
(string, optional) The contents of the issue. |
assignees |
(character, optional) Logins for Users to assign to this issue. NOTE: Only users with push access can set assignees for new issues. |
labels |
(character, optional) Labels to associate with this issue. NOTE: Only users with push access can set labels for new issues. |
milestone |
(character or integer, optional) The title or number of the milestone to associate this issue with. NOTE: Only users with push access can set the milestone for new issues. |
... |
Parameters passed to |
For more details see the GitHub API documentation:
create_issue()
returns a list of the issue's properties.
Issue Properties:
number: The number assigned to the issue.
title: The title of the issue.
body: The body contents of the issue.
assignees: The users assigned to the issue.
labels: The labels attached to the issue.
milestone: The milestone assigned to the issue.
state: The state of the issue - either "open"
or "closed"
.
repository: The repository the issue is in.
pull_request: Whether the issue is a pull request.
html_url: The URL of the issue's web page in GitHub.
creator: The creator's login.
created_at: When the issue was created.
updated_at: When the issue was last updated.
closed_at: When the issue was closed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
create_issue(
title = "user issue",
repo = "ChadGoymer/test-issues",
body = "This is an issue to test create_issue()",
assignees = "ChadGoymer",
labels = "feature",
milestone = "release-1.0"
)
create_issue(
title = "organization issue",
repo = "HairyCoos/test-issues",
body = "This is an issue to test create_issue()",
assignees = "ChadGoymer"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.