Created
September 26, 2023 18:54
-
-
Save douglascayers/8b6fd57d44944c88b58d7de9a594f11c to your computer and use it in GitHub Desktop.
Use GitHub CLI to create a commit status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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