Skip to main content

GitHub commit status updater

Project description

Build status MIT license PyPI package version PyPI python version

GitHub commit status notifier CLI

Options

These options can be automatically set from env variables or dotenv (.env) file in working dir.

  • -u: GITHUB_USERNAME

  • -p: GITHUB_PASSWORD

  • –base-url: GITHUB_URL

  • –repo: GITHUB_REPO

  • –sha: GITHUB_SHA

  • –target-url: TARGET_URL

These options can be set automatically in Jenkins context (JENKINS_URL is set).

  • –target-url: BUILD_URL

If not set by either CLI args or env variables, these options can be automatically detected from git repository in current working dir.

  • –repo: inferred from .git/config

  • –sha: inferred by executing git rev-parse HEAD internally

Sample commands

get all statuses

ghstatus get

set status

ghstatus set success --context=unit-test --description='All tests pass!' \
  --target-url=https://example.com/my-test/1

set status dynamically based on command exit code

ghstatus exec --context=unit-test -- ./gradlew test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghstatus-0.2.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

ghstatus-0.2.2-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ghstatus-0.2.2.tar.gz.

File metadata

  • Download URL: ghstatus-0.2.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ghstatus-0.2.2.tar.gz
Algorithm Hash digest
SHA256 cb4ea0ed8e31d74021004c51f3d1366b02fe4918e03994e775c9254eb6b3f9fb
MD5 e554b525bfaa71689623944179c029d9
BLAKE2b-256 185a47146366a2da4c88d0fb902fce3cb3fa226d2083c0fb350a57086a06437b

See more details on using hashes here.

File details

Details for the file ghstatus-0.2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ghstatus-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d77dcc9d116672fe03364476e881d53a2e816ff29ac9fb5d2725812a43ad1e8d
MD5 92a750d6a9f7a9a9a550f82f4822a5d9
BLAKE2b-256 6ad21127e5f501c7d12775af9a4e2bff4298d547a590e64598c2b927cb2a8573

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page