gh-cmcm (commit comment) is a gh extension which comments to a commit by GitHub API.
gh extension install johnmanjiro13/gh-cmcm
You need to set your personal access token of github to GITHUB_TOKEN
environment variable.
If you use github enterprise, you need to set your api base url to GITHUB_BASE_URL
environment variable.
gh cmcm create <commit_sha> --body 'Comment by cli'
gh cmcm get <comment_id>
You can use the --json
flag if you want to get result as json.
gh cmcm list <comment_id>
You can use the --json
flag if you want to get result as json.
gh cmcm update <comment_id> --body 'Updated comment by cli'
gh cmcm delete <comment_id>