Skip to content

Commit

Permalink
Merge branch 'master' into Node-8
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasgarnier authored Aug 9, 2018
2 parents a9d3d19 + e8844b1 commit d1c6429
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 @@ function notifySlack(slackMessage) {
});
}

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

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

0 comments on commit d1c6429

Please sign in to comment.