File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,14 @@ func (d DiggerController) GithubAppWebHook(c *gin.Context) {
68
68
if * event .Action == "deleted" {
69
69
err := handleInstallationDeletedEvent (event )
70
70
if err != nil {
71
- c . String ( http . StatusInternalServerError , "Failed to handle webhook event." )
71
+ log . Printf ( "Failed to handle webhook event. %v" , err )
72
72
return
73
73
}
74
74
}
75
75
76
+ c .String (http .StatusAccepted , "ok" )
77
+ return
78
+
76
79
case * github.IssueCommentEvent :
77
80
log .Printf ("IssueCommentEvent, action: %v\n " , * event .Action )
78
81
case * github.PullRequestEvent :
@@ -81,7 +84,7 @@ func (d DiggerController) GithubAppWebHook(c *gin.Context) {
81
84
if err != nil {
82
85
log .Printf ("handlePullRequestEvent error: %v" , err )
83
86
}
84
- c .String (http .StatusAccepted , err . Error () )
87
+ c .String (http .StatusAccepted , "ok" )
85
88
return
86
89
87
90
case * github.PushEvent :
@@ -90,7 +93,7 @@ func (d DiggerController) GithubAppWebHook(c *gin.Context) {
90
93
if err != nil {
91
94
log .Printf ("handlePushEvent error: %v" , err )
92
95
}
93
- c .String (http .StatusAccepted , err . Error () )
96
+ c .String (http .StatusAccepted , "ok" )
94
97
return
95
98
96
99
default :
You can’t perform that action at this time.
0 commit comments