-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repo Information Module #1
Comments
I'd like this to be filterable by some of these attributes, for example, name, is_template, archived, owner, and private as well. Additionally, the structure of the output should match, as much as is reasonable, the output from the API itself so it's easier to understand from reading docs. I think a few other fields may be immediately useful, for example:
I mean, should we just return the entire JSON dict we get from |
There is a lot more in the JSON than we will want or need, and I didn't want the payload getting too large. We are expecting several hundred repositories and the primary intent for this module is to fetch a list of repositories for loops, but a few key data points seem obviously useful. Adding more later should not be terribly difficult. |
The URLs it gives you, for example, are also useful for things like subsequent calls. For example, get a list of your repos, iterate over each and use the Also, is it better to use https://pygithub.readthedocs.io/en/latest/introduction.html rather than querying the API directly? |
We will probably end up using PyGithub for all of these modules. I am simply providing the GitHub API docs for reference. |
As an Ansible user I want to fetch information about repositories I have access to for use in loops. Scope should be limited to an org. Should return a list of dicts containing information about each repository such as name, owner, description, private, is_template, archived, language, visibility, and url.
Reference:
https://docs.github.com/en/rest/reference/repos#list-organization-repositories
The text was updated successfully, but these errors were encountered: