Comment on the pull request with the value received from stdin on Circle CI.
$ npm install -g github-commenter
Comment on the pull request with the value received from stdin. Usage $ <input> | github-commenter Options --format, -f Change comment format (text or code) --help, -h Show help Examples $ echo hi | github-commenter Submitting a comment completed successfully. https://github.com/kentaro-m/github-commenter/pull/1#issuecomment-012345678
How to execute github-commenter command
$ echo hi | github-commenter # enable code blocks $ echo "console.log('Hello, world.');" | github-commenter --format code
Please give the input value with standard input using pipe.
- CIRCLECI Whether building with Circle CI (true o r false).
- CI_PULL_REQUEST If this build is part of only one pull request, its URL will be populated here. If there was more than one pull request, it will contain one of the pull request URLs (picked randomly).
- CIRCLE_PROJECT_REPONAME The repository name of the project being tested.
- CIRCLE_PROJECT_USERNAME The username or organization name of the project being tested.
github-commenter works with environment variables set by default in Circle CI.
How to set up environment variables on Circle CI
- GITHUB_COMMENTER_API_URL A url for request the github api when using GitHub Enterprise
- GITHUB_COMMENTER_API_TOKEN A token for submit a comment on pull requests (scope: repo)
Setting the above values as environment variable in Circle CI.
- Support for Travis CI