Description Usage Arguments Details Value Examples
view_issues()
summarises issues in a table with the properties as columns
and a row for each issue in the repository or organization. view_issue()
returns a list of all properties for a single issue. browse_issue()
opens
the web page for the issue in the default browser.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | view_issues(
repo,
org,
labels,
milestone,
since,
state = "open",
sort = "created",
direction = "desc",
n_max = 1000,
...
)
view_issue(issue, repo, ...)
browse_issue(issue, repo, ...)
|
repo |
(string, optional) The repository specified in the format:
|
org |
(string, optional) The name of the organization. |
labels |
(character, optional) Label names to filter by. |
milestone |
(string or integer) Milestone number or title to filter by. |
since |
(string, optional) A date & time to filter by. Must be in the
format: |
state |
(string, optional) The state of the issues to return. Can be
either |
sort |
(string, optional) The property to order the returned issues by.
Can be either |
direction |
(string, optional) The direction of the sort. Can be either
|
n_max |
(integer, optional) Maximum number to return. Default: |
... |
Parameters passed to |
issue |
(string or character) The number or title of the issue. |
You can summarise all the issues in a repository or organization by
specifying the arguments. If neither are specified then all the issues
assigned to the authenticated user are returned. You can filter the issues
based on the labels, milestone, whether they have been updated since a
specified date or whether they are "open"
or "closed"
. Finally, the order
the results are returned can be controlled with sort
and direction
.
For more details see the GitHub API documentation:
https://docs.github.com/en/rest/reference/issues#list-issues-assigned-to-the-authenticated-user
https://docs.github.com/en/rest/reference/issues#list-repository-issues
https://docs.github.com/en/rest/reference/issues#get-an-issue
view_issues()
returns a tibble of issue properties. view_issue()
returns a list of properties for a single issue. browse_issue()
opens the
default browser on the issue's page and returns the URL.
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 | ## Not run:
# View open issues in a repository
view_issues("ChadGoymer/githapi")
# View closed issues in a repository
view_issues("ChadGoymer/githapi", state = "closed")
# View a single issue
view_issue("test issue", "ChadGoymer/githapi")
# Open a issue's page in a browser
browse_issue("test issue", "ChadGoymer/githapi")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.