Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 925acbe

Browse files
committed
defining issue+PR only filtering for labels and assigning in case these actions are added to other events later ... rubocop hates me now
1 parent 3d9e161 commit 925acbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/hipchat.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def receive_event
3131
return if event.to_s =~ /watch/ && data['quiet_watch']
3232
return if event.to_s =~ /comment/ && data['quiet_comments']
3333
return if event.to_s =~ /gollum/ && data['quiet_wiki']
34-
return if payload['action'].to_s =~ /label/ && data['quiet_labels']
35-
return if payload['action'].to_s =~ /assign/ && data['quiet_assigning']
34+
return if event.to_s =~ /issue|pull_request/ && payload['action'].to_s =~ /label/ && data['quiet_labels']
35+
return if event.to_s =~ /issue|pull_request/ && payload['action'].to_s =~ /assign/ && data['quiet_assigning']
3636

3737
http.headers['X-GitHub-Event'] = event.to_s
3838

0 commit comments

Comments
 (0)