A lightweight Python library and CLI tool to update GitHub commit statuses via the Checks API. Supports setting commit statuses (pending, success, failure, error) with context, description, and target URL. Current version: 0.3.2. Release cadence: infrequent, last release in 2021.
pip install ghstatusNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Updates a GitHub commit status. Requires a personal access token with repo status permissions.
Use PyGithub or the requests library with the Checks API endpoints.
Use Session(token) only.
Ensure state is one of 'error', 'failure', 'pending', or 'success'.
For check runs, use a different library or raw API calls.
Use Python 3.6+.
Run 'pip install ghstatus' in the correct virtual environment.
Rename your local file. The correct import is 'import ghstatus' and then use 'ghstatus.Session(token)'.
Generate a new token at https://github.com/settings/tokens with 'repo:status' scope.
Check state is exactly one of the allowed values. Ensure owner/repo is in 'username/repository' format.
Use only a token: Session(token). For older usage, downgrade to ghstatus 0.1.x.
No dependency data recorded yet.