docs: update readme, add sample env
This commit is contained in:
12
README.md
12
README.md
@@ -1,10 +1,16 @@
|
||||
# gh-action-bot
|
||||
|
||||
Action bot for Github.
|
||||
Action bot for Github. Checks a repo's event stream and leaves a ghost comment when your criteria is met.
|
||||
|
||||
[](https://raw.githubusercontent.com/w33ble/gh-action-bot/master/LICENSE)
|
||||
[](https://www.npmjs.com/package/gh-action-bot)
|
||||
[](https://nodejs.org/api/documentation.html#documentation_stability_index)
|
||||
[](https://nodejs.org/api/documentation.html#documentation_stability_index)
|
||||
|
||||
## Usage
|
||||
|
||||
`node . owner/repo`
|
||||
|
||||
You'll need to set some environment flags. Check `sample-env` for what is available, and you can copy the file to `.env` in the root and add your settings there as well.
|
||||
|
||||
|
||||
#### License
|
||||
|
||||
|
||||
6
sample-env
Normal file
6
sample-env
Normal file
@@ -0,0 +1,6 @@
|
||||
GITHUB_ACCESS_TOKEN=xxx
|
||||
COMMENT_ACTOR=ci-comment-username
|
||||
COMMENT_BODY_REGEXP=build failed
|
||||
COMMENT_BODY_REGEXP_FLAGS=i
|
||||
PULL_LABEL_FILTER=
|
||||
PULL_RETEST_BODY=retest
|
||||
Reference in New Issue
Block a user