Skip to content

Instantly share code, notes, and snippets.

@douglascayers
Created September 26, 2023 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglascayers/8b6fd57d44944c88b58d7de9a594f11c to your computer and use it in GitHub Desktop.
Save douglascayers/8b6fd57d44944c88b58d7de9a594f11c to your computer and use it in GitHub Desktop.
Use GitHub CLI to create a commit status
OWNER="some_owner"
REPO="some_repo"
COMMIT="some_sha"
gh api \
repos/${OWNER}/${REPO}/statuses/${COMMIT} \
-X POST \
-F state=success \
-F description="Completed" \
-F context=ci/release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment