Description Usage Arguments Details Value Examples
view_cards()
summarises cards in a table with the properties as columns and
a row for each card in a column of a project. view_card()
returns a list of
all properties for a single card.
1 2 3 | view_cards(column, project, repo, user, org, n_max = 1000, ...)
view_card(card, ...)
|
column |
(integer or string) Either the ID or name of the column. |
project |
(integer or string) Either the project number or name. |
repo |
(string, optional) The repository specified in the format:
|
user |
(string, optional) The login of the user. |
org |
(string, optional) The name of the organization. |
n_max |
(integer, optional) Maximum number to return. Default: |
... |
Parameters passed to |
card |
(integer) The ID of the card. |
You can summarise all the cards of a project associated with either a repository, user or organization, by supplying them as an input.
For more details see the GitHub API documentation:
https://docs.github.com/en/rest/reference/projects#list-project-cards
https://docs.github.com/en/rest/reference/projects#get-a-project-card
view_cards()
returns a tibble of card properties. view_card()
returns a list of properties for a single card.
Card Properties:
id: The ID of the card.
content_id: The ID of the issue or pull request.
note: The content of a note.
archived: Whether the card has been archived.
creator: The creator of the note.
created_at: When it was created.
updated_at: When it was last updated.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## Not run:
# View cards in a repository project
cards <- view_cards(
column = "Test cards",
project = "Test cards",
repo = "ChadGoymer/githapi"
)
# View cards in a user's project
cards <- view_cards(
column = "Test cards",
project = "Test cards",
user = "ChadGoymer"
)
# View cards in an organization's project
cards <- view_cards(
column = "Test cards",
project = "Test cards",
org = "HairyCoos"
)
# View a single card
view_card(card = 123456)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.