File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -44,29 +44,20 @@ module.exports = {
4444
4545 // Lets bail early in case these values don't exist.
4646 // Such as the original request failing
47-
48- if (
49- typeof obj ?. webhook ?. pack !== "string" ||
50- typeof obj ?. webhook ?. user !== "string"
51- ) {
47+ if ( ! obj . webhook || ! obj . featureDetection ) {
5248 // This data isn't defined, and we cannot work with it
5349 return ;
5450 }
5551
56- if (
57- typeof obj ?. featureDetection ?. user !== "string" ||
58- typeof obj ?. featureDetection ?. ownerRepo !== "string" ||
59- typeof obj ?. featureDetection ?. service !== "string"
60- ) {
61- // This data isn't defined, and we cannot work with it
62- return ;
63- }
64-
65- await context . webhook . alertPublishVersion (
52+ let webhookSend = await context . webhook . alertPublishVersion (
6653 obj . webhook . pack ,
6754 obj . webhook . user
6855 ) ;
6956
57+ if ( ! webhookSend . ok ) {
58+ context . logger . generic ( 3 , webhookSend ) ;
59+ }
60+
7061 // Now to call for feature detection
7162 let features = await context . vcs . featureDetection (
7263 obj . featureDetection . user ,
You can’t perform that action at this time.
0 commit comments