
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
commit-status
Advanced tools
Simple command-line application to post commit status to GitHub (for use in CI)
A simple CLI tool to post commit statuses to GitHub from CI.
At Taskworld, we want to have fine-grain status report for each commit. This is a perfect use case for GitHubβs commit status API.
commit-status
will look for GitHub access from these environment variables, in this order:
GH_STATUS_TOKEN
GH_TOKEN
That token should have repo:status
scope.
You can create a bot account and obtain a token at https://github.com/settings/tokens/new.
Inside your CI deps script, install commit-status
there:
npm install -g commit-status
Whenever you want to post a commit status from CI, invoke the command:
commit-status <state> <context> <description> [<url>]
state
β Either pending
, success
, error
, failure
context
β βA string label to differentiate this status from the status of other systems.βdescription
β βA short description of the status.βurl
β The URL to display.Example CircleCI setup:
- |
if gulp lint
then commit-status success lint/eslint "Linting successful."
else commit-status failure lint/eslint "There are lint errors."
fi
const commitStatus = require('commit-status')
commitStatus.post({
state: 'success',
context: 'lint/eslint',
description: 'Linting successful.'
})
FAQs
Simple command-line application to post commit status to GitHub (for use in CI)
The npm package commit-status receives a total of 314 weekly downloads. As such, commit-status popularity was classified as not popular.
We found that commit-status demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600Γ faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.