Expand description
Lightweight GitHub helpers using the gh CLI.
Modulesยง
Enumsยง
- Repo
View Field - Repository fields available for querying via
gh repo view.
Constantsยง
- GITHUB_
HOST ๐ - The GitHub host domain.
- GITHUB_
PR_ ๐ID_ PREFIX - The URL path segment prefix for pull requests.
- GITHUB_
PR_ ๐ID_ QUERY_ KEY - The query parameter key used for pull request IDs in GitHub Actions URLs.
Functionsยง
- extract_
pr_ ๐id_ form_ url - Extracts the pull request numeric ID from a GitHub URL.
- get_
branch_ name_ from_ url - Extracts the branch name from a GitHub pull request
Url. - get_
latest_ release - Retrieves the latest release tag name for the specified GitHub repository.
- get_
repo_ urls - Returns all GitHub remote URLs for the repository rooted at
repo_path. - get_
repo_ view_ field - Return the specified repository field via
gh repo view. - log_
into_ github - Ensures the user is authenticated with the GitHub CLI.
- parse_
github_ ๐url_ from_ git_ remote_ url - Converts a Git remote URL (SSH or HTTPS) to a canonical GitHub HTTPS URL without the
.gitsuffix.