Skip to content

[feature:] Create get_topic() #7

@kellijohnson-NOAA

Description

@kellijohnson-NOAA

Describe the situation that led to the request and a solution

I would like to know all repositories assigned to a given topic and other metadata about that topic. The function get_topic() should reside in R/get_.R and should allow users to pass a single string with a given topic. An additional wrapper function could be created called get_topics() that uses purrr::map_df() to return a data frame with multiple topics. Regardless, a data frame (well tibble) should be returned. The url for querying the API about a given topic is https://api.github.com/search/repositories?q=topic: where should be replaced with the topic of interest. For example, https://api.github.com/search/repositories?q=topic:fisheries will return all the repositories with the topic of "fisheries".

Alternative solutions

Pull information from all relevant repositories and see the topics that are assigned to them. This won't search for repositories that you do not know about with the given topic.

Statistical validity

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    NSAP-code-cleanupTo be worked on by a member of the National Stock Assessment Program during code cleanup hours

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions