File tree 1 file changed +6
-0
lines changed
crashlytics-integration/email-notifier/functions
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ const sendgridMail = require('@sendgrid/mail');
21
21
// Authentication for the SendGrid account
22
22
sendgridMail . setApiKey ( functions . config ( ) . sendgrid . api_key ) ;
23
23
24
+ // [START on_new_issue]
24
25
exports . sendOnNewIssue = functions . crashlytics . issue ( ) . onNew ( async ( issue ) => {
26
+ // [END on_new_issue]
25
27
const issueId = issue . issueId ;
26
28
const issueTitle = issue . issueTitle ;
27
29
const appName = issue . appInfo . appName ;
@@ -52,7 +54,9 @@ exports.sendOnNewIssue = functions.crashlytics.issue().onNew(async (issue) => {
52
54
}
53
55
} ) ;
54
56
57
+ // [START on_regressed_issue]
55
58
exports . sendOnRegressedIssue = functions . crashlytics . issue ( ) . onRegressed ( async ( issue ) => {
59
+ // [END on_regressed_issue]
56
60
const issueId = issue . issueId ;
57
61
const issueTitle = issue . issueTitle ;
58
62
const appName = issue . appInfo . appName ;
@@ -85,7 +89,9 @@ exports.sendOnRegressedIssue = functions.crashlytics.issue().onRegressed(async (
85
89
}
86
90
} ) ;
87
91
92
+ // [START on_velocity_alert]
88
93
exports . sendOnVelocityAlert = functions . crashlytics . issue ( ) . onVelocityAlert ( async ( issue ) => {
94
+ // [END on_velocity_alert]
89
95
const issueId = issue . issueId ;
90
96
const issueTitle = issue . issueTitle ;
91
97
const appName = issue . appInfo . appName ;
You can’t perform that action at this time.
0 commit comments