hubot-github-review
v1.0.0
Published
A Hubot interface to modify review flags for GitHub Pull Requests
Downloads
2
Readme
hubot-github-review
A Hubot interface to modify review flags for GitHub Pull Requests
Installation
In your Hubot instance directory run:
npm install --save hubot-github-review`
Then add hubot-github-review
to your external-scripts.json
:
[
"hubot-github-review"
]
Configuration
hubot-github-review uses the following environment variables:
HUBOT_GITHUB_TOKEN
:
A Personal Access Token generated by GitHub for the account which will be modifying pull requests.
Can be configured at https://github.com/settings/tokens. The account will need
access to the repository, usually with the repo
or public_repo
scope.
HUBOT_GITHUB_REPO
:
The GitHub repo name for which to modify pull requests. Needs to be in the form of ACCOUNT_NAME/REPO_NAME
.
Commands
hubot-github-review listens for messages matching the following format: FLAG PR_NUMBER
For example, if using the IRC adapter and your Hubot is named "hubot":
Request a review for Pull Request #100, Hubot responds:
irc_user> hubot: r? 100
hubot> I requested a review on pull request #100 ◟(๑•͈ᴗ•͈)◞
Grant a review for Pull Request #100:
irc_user> hubot: r+ 100
hubot> Review granted for pull request #100 ୧( ⁼̴̶̤̀ω⁼̴̶̤́ )૭
Return a review for Pull Request #100:
irc_user> hubot: r- 100
hubot> I returned pull request #100 for revision _〆(。。)