This is a Github plugin for errbot. It allows to keep track of the relation between your chat users and your github users and query various statuses of their PRs on Github.
-
Deploy an instance of Errbot if you don't have one already. See here.
-
Talking to Errbot privately as a bot administrator, install the plugin repo for mergequeue.
!repos install https://github.com/argoai/err-ghstatus
-
Create a github API key for example create a user for the bot and generate a personal token.
-
Still talking to Errbot privately as a bot administrator, set the github key with:
!plugin config GHStatus {'github-token': 'cafecafecafecafecafecafecafecafecafecafe'}
- Issuing
!help
should give you a new set of commands related to ghstatus.
Note: the chat user needs to be in the format expected by the chat system here it is an example for Slack with an @:
!gh users add @gbinet gbin
To list your own opened PRs:
!gh prs
To list someone else PRs:
!gh prs @someone
To list PRs you need to review:
!gh reviews
To list PRs someone else needs to review:
!gh reviews @someone