Skip to content

Commit

Permalink
fix method rename
Browse files Browse the repository at this point in the history
  • Loading branch information
homeyjd committed Oct 30, 2019
1 parent 25cdff8 commit 976793f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/parsers/cloudwatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports.parse = async event => {
color: color,
author_name: `AWS CloudWatch Alarm (${accountId})`,
title: alarmName,
title_link: event.consoleLink(`/cloudwatch/home?region=${region}#alarm:name=${alarmName}`),
title_link: event.consoleUrl(`/cloudwatch/home?region=${region}#alarm:name=${alarmName}`),
text,
fields: [{
title: "State Change",
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/codecommit/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports.parse = async (event) => {
const refType = event.get("detail.referenceType");
const repoName = event.get("detail.repositoryName");
const repoEvent = event.get("detail.event");
const repoUrl = event.consoleLink(`/codecommit/home#/repository/${repoName}`);
const repoUrl = event.consoleUrl(`/codecommit/home#/repository/${repoName}`);
const fields = [];

const color = event.COLORS.neutral;
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/codedeployCloudWatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports.parse = event => {

const baseTitle = event.getLink(
`CodeDeploy Application ${app}`,
event.consoleLink(`/codedeploy/home#/deployments/${deploymentId}`)
event.consoleUrl(`/codedeploy/home#/deployments/${deploymentId}`)
).toString();

let color = event.COLORS.neutral;
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/codedeploySns.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports.parse = event => {

const baseTitle = event.getLink(
`CodeDeploy Application ${app}`,
event.consoleLink(`/codedeploy/home#/deployments/${deploymentId}`)
event.consoleUrl(`/codedeploy/home#/deployments/${deploymentId}`)
).toString();

let color = event.COLORS.neutral;
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/codepipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports.parse = event => {
const action = event.get("detail.action", "UNKNOWN");
const fields = [];

const title_link = event.consoleLink(`/codepipeline/home#/view/${pipeline}`);
const title_link = event.consoleUrl(`/codepipeline/home#/view/${pipeline}`);
let author_name = "AWS CodePipeline";
let text = type;

Expand Down

0 comments on commit 976793f

Please sign in to comment.