0.0.4 • Published 8 years ago

hubot-list-pulls v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hubot-list-pulls

Lists open pull requests

See src/list-pulls.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-list-pulls --save

Then add hubot-list-pulls to your external-scripts.json:

[
  "hubot-list-pulls"
]

Set the following environment variables:

HUBOT_LIST_PULLS_GITHUB_TOKEN
 - Github authorization token with access to read pull requests of repos,
 - Created at https://github.com/settings/tokens
 - (i.e. '87a153bae3d8b9b13c07da682949df95b283176b')

Sample Interaction

user1>> hubot add repo kcrobinson/hubot-list-pulls
hubot>> Repo added: kcrobinson/hubot-list-pulls

user1>> hubot list repos
hubot>> Repos: kcrobinson/hubot-list-pulls

user1>> hubot list pulls
hubot>> /code <a href="http://github.com/kcrobinson/hubot-list-pulls/pulls/240">#240</a> - "This is a pull request" - created by kcrobinson a year ago

user1>> hubot add repo kcrobinson/some-other-repo
hubot>> Repo added: kcrobinson/some-other-repo

user1>> hubot list repos
hubot>> Repos: kcrobinson/hubot-list-pulls, kcrobinson/some-other-repo

user1>> hubot list pulls
hubot>> /code <a href="http://github.com/kcrobinson/hubot-list-pulls/pulls/240">#240</a> - "This is a pull request" - created by kcrobinson a year ago
hubot>> /code <a href="http://github.com/kcrobinson/some-other-repo/pulls/123">#123</a> - "Please merge this..." - created by kcrobinson a year ago
hubot>> /code <a href="http://github.com/kcrobinson/some-other-repo/pulls/124">#124</a> - "Pretty please..." - created by kcrobinson a year ago

user1>> hubot delete repo kcrobinson/hubot-list-pulls
hubot>> Repo removed: kcrobinson/hubot-list-pulls

user1>> hubot list repos
hubot>> Repos: kcrobinson/some-other-repo

user1>> hubot list pulls
hubot>> /code <a href="http://github.com/kcrobinson/some-other-repo/pulls/123">#123</a> - "Please merge this..." - created by kcrobinson a year ago
hubot>> /code <a href="http://github.com/kcrobinson/some-other-repo/pulls/124">#124</a> - "Pretty please..." - created by kcrobinson a year ago
0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago