File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 66 "crypto/sha1" //nolint:gosec // GitHub webhooks are signed using sha1 https://developer.github.com/webhooks/.
77 "encoding/hex"
88 "encoding/json"
9- "fmt"
109 "html"
1110 "io"
1211 "net/http"
@@ -653,6 +652,7 @@ func (p *Plugin) postPushEvent(event *github.PushEvent) {
653652 repo := event .GetRepo ()
654653
655654 subs := p .GetSubscribedChannelsForRepository (ConvertPushEventRepositoryToRepository (repo ))
655+
656656 if len (subs ) == 0 {
657657 return
658658 }
@@ -673,9 +673,11 @@ func (p *Plugin) postPushEvent(event *github.PushEvent) {
673673 if ! sub .Pushes () {
674674 continue
675675 }
676+
676677 if p .excludeConfigOrgMember (event .GetSender (), sub ) {
677678 continue
678679 }
680+
679681 post := p .makeBotPost (pushedCommitsMessage , "custom_git_push" )
680682
681683 post .ChannelId = sub .ChannelID
You can’t perform that action at this time.
0 commit comments