- `github_*.sh` - [GitHub](https://github.com/) API scripts:
- `github_api.sh` - queries the GitHub [API](https://docs.github.com/en/rest/reference). Can infer GitHub user, repo and authentication token from local checkout or environment (`$GITHUB_USER`, `$GITHUB_TOKEN`)
- `github_foreach_repo.sh` - executes a templated command for each non-fork GitHub repo, replacing the `{owner}`/`{name}` or `{repo}` placeholders in each iteration
- `github_invitations.sh` - lists / accepts repo invitations. Useful to accept a large number of invites to repos generated by automation
- `github_create_pull_request.sh` - creates a Pull Request idempotently by first checking for an existing PR between the branches, and also checking if there are the necessary commits between the branches, to avoid common errors from blindly raising PRs. Useful to automate code promotion across environment branches. Also works across repo forks and is used by `github_repo_fork_update.sh`
- `github_merge_branch.sh` - merges one branch into another branch via a Pull Request for full audit tracking all changes. Useful to automate code promotion across environment branches or backport hotfixes from Production or Staging to trunk branches such as master, main, dev or develop
- `github_actions_foreach_workflow.sh` - executes a templated command for each workflow in a given GitHub repo, replacing `{name}`, `{id}` and `{state}` in each iteration
@ -656,7 +657,6 @@ etc.
- `github_ip_ranges.sh` - returns GitHub's IP ranges, either all by default or for a select given service such as hooks or actions
- `github_repo_description.sh` - fetches the given repo's description (used by `github_sync_repo_descriptions.sh`)
- `github_repo_invitations.sh` - lists / accepts repo invitations. Useful to accept a large number of invites to repos generated by automation
- `github_repo_latest_release.sh` - returns the latest release name for a given GitHub repo via the GitHub API
- `github_repo_stars.sh` - fetches the stars, forks and watcher counts for a given repo
- `github_repo_teams.sh` - fetches the GitHub Enterprise teams and their role permisions for a given repo. Combine with `github_foreach_repo.sh` to audit your all your personal or GitHub organization's repos