gruntwork-io / git-xargs

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
https://blog.gruntwork.io/introducing-git-xargs-an-open-source-tool-to-update-multiple-github-repos-753f9f3675ec
Apache License 2.0
933 stars 63 forks source link

Ability to read repository information per repository #81

Closed taras closed 2 years ago

taras commented 2 years ago

Describe the solution you'd like I would like to create a Backstage catalog-info.yaml file for each repository in an organization. This file needs to be unique for each repository. I would be helpful to be able to read name, description, owner.login, nameWithOwner for each repository while generating this file.

Describe alternatives you've considered I'm not really sure what information is available while executing the script.

Additional context Thank you

taras commented 2 years ago

I figured it out. The command is executed in a context of a git repository so I can use git-xargs --dry-run gh repo view --json=name,description,owner,nameWithOwner