File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 6
6
"crypto/sha1" //nolint:gosec // GitHub webhooks are signed using sha1 https://developer.github.com/webhooks/.
7
7
"encoding/hex"
8
8
"encoding/json"
9
- "fmt"
10
9
"html"
11
10
"io"
12
11
"net/http"
@@ -653,6 +652,7 @@ func (p *Plugin) postPushEvent(event *github.PushEvent) {
653
652
repo := event .GetRepo ()
654
653
655
654
subs := p .GetSubscribedChannelsForRepository (ConvertPushEventRepositoryToRepository (repo ))
655
+
656
656
if len (subs ) == 0 {
657
657
return
658
658
}
@@ -673,9 +673,11 @@ func (p *Plugin) postPushEvent(event *github.PushEvent) {
673
673
if ! sub .Pushes () {
674
674
continue
675
675
}
676
+
676
677
if p .excludeConfigOrgMember (event .GetSender (), sub ) {
677
678
continue
678
679
}
680
+
679
681
post := p .makeBotPost (pushedCommitsMessage , "custom_git_push" )
680
682
681
683
post .ChannelId = sub .ChannelID
You can’t perform that action at this time.
0 commit comments