Expand description
Utility functions for parsing and working with GitHub CLI output and other utility functions.
Functions§
- bzip2_
compress - bzip2_
decompress - canonicalize_
repo_ url - Canonicalize a repository URL to the form
https://{host}/{repo}
- check_
gh_ cli_ version - Retrieve the GitHub CLI version from the GitHub CLI binary and check that it meets version requirements.
- check_
gh_ cli_ version_ str - Check that the GitHub CLI version meets version requirements from the string output of
gh --version
- first_
abs_ path_ from_ str - Parse an absolute path from a string. This assumes that the the first ‘/’ found in the string is the start of the path.
- first_
path_ from_ str - Parse a path from a string
- id_
from_ job_ lines - Extract the job IDs from the lines with job information
- remove_
timestamps - Parse text for timestamps and IDs and remove them, returning the modified text without making a copy.
- set_
linux_ file_ permissions - Set the file permissions for a file on Linux
- take_
lines_ with_ failed_ jobs - Take the lines with failed jobs from the output of
gh run view