Skip to content

Commit

Permalink
add snippet tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ulukaya committed Aug 9, 2018
1 parent 671945e commit e8844b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crashlytics-integration/slack-notifier/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const notifySlack = (slackMessage) => {
});
};

// [START on_new_issue]
exports.postOnNewIssue = functions.crashlytics.issue().onNew((issue) => {
const issueId = issue.issueId;
const issueTitle = issue.issueTitle;
Expand All @@ -46,6 +47,7 @@ exports.postOnNewIssue = functions.crashlytics.issue().onNew((issue) => {
return console.log(`Posted new issue ${issueId} successfully to Slack`);
});
});
// [END on_new_issue]

exports.postOnRegressedIssue = functions.crashlytics.issue().onRegressed((issue) => {
const issueId = issue.issueId;
Expand Down

0 comments on commit e8844b1

Please sign in to comment.