This module can be re-used This shell-scripting file can be used to other teams as well
- A script can be written to retrieve repos, active users, and issue information. The script can also be used as a module, allowing users to integrate it into their own applications. In a real-life scenario, the script was used to retrieve the list of repositories created by team X and the number of active users. This method allows for efficient and secure communication between developers and GitHub users.
- Uses Github API
./github-script-demo.sh $password /orgs/devops-by-examples/repos
-- Will get all the repos in the oranization
./github-script-demo.sh $password /user
-- This script will get all the info about user
GITHUB API docs for REST API,
GITHUB REST API DOC : https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api?apiVersion=2022-11-28
repo linke https://github.com/devops-by-examples/Shell/blob/main/github-api-integration-module.sh