docker-archive / leeroy

Jenkins integration with GitHub pull requests
MIT License
177 stars 44 forks source link

Collect +1 opinions in a single comment. #27

Closed calavera closed 9 years ago

calavera commented 9 years ago

When someone comments with a simple +1, the bot will remove the comment and add the user's login to a common comment with everyone else that added a +1.

It inspects the issue looking for previously uncollected comments with +1s and removes them too, so it works with comments that we already have in opened issues.

Signed-off-by: David Calavera david.calavera@gmail.com

jessfraz commented 9 years ago

You are a hero

On Wed, Aug 26, 2015 at 6:34 AM -0700, "David Calavera" notifications@github.com wrote:

When someone comments with a simple +1, the bot will remove the comment

and add the user's login to a common comment with everyone else that

added a +1.

It inspects the issue looking for previously uncollected comments with

+1s and removes them too, so it works with comments that we already

have in opened issues.

Signed-off-by: David Calavera david.calavera@gmail.com

You can view, comment on, or merge this pull request online at:

  https://github.com/docker/leeroy/pull/27

Commit Summary

Collect +1 opinions in a single comment.

File Changes

M
github/issue.go
(73)

Patch Links:

https://github.com/docker/leeroy/pull/27.patch https://github.com/docker/leeroy/pull/27.diff

— Reply to this email directly or view it on GitHub.

jessfraz commented 9 years ago

I will merge and update when I get to the office \o/

On Wed, Aug 26, 2015 at 6:34 AM -0700, "David Calavera" notifications@github.com wrote:

When someone comments with a simple +1, the bot will remove the comment

and add the user's login to a common comment with everyone else that

added a +1.

It inspects the issue looking for previously uncollected comments with

+1s and removes them too, so it works with comments that we already

have in opened issues.

Signed-off-by: David Calavera david.calavera@gmail.com

You can view, comment on, or merge this pull request online at:

  https://github.com/docker/leeroy/pull/27

Commit Summary

Collect +1 opinions in a single comment.

File Changes

M
github/issue.go
(73)

Patch Links:

https://github.com/docker/leeroy/pull/27.patch https://github.com/docker/leeroy/pull/27.diff

— Reply to this email directly or view it on GitHub.

calavera commented 9 years ago

It depends on https://github.com/crosbymichael/octokat/pull/16

thaJeztah commented 9 years ago

+1

thaJeztah commented 9 years ago

Sorry, just had to do that :-)