Skip to content

Commit

Permalink
fix slack message
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Oct 31, 2023
1 parent 6704209 commit 1f524bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-stg-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
branches:
- "master"
- "integration"
- "DOP-4079-slack-monorepo"
concurrency:
group: environment-stg-${{ github.ref }}
cancel-in-progress: true
Expand Down
8 changes: 7 additions & 1 deletion api/handlers/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ async function prepSummaryMessage(
if (repoName == 'mms-docs') {
msg = `Your Job <${jobUrl}${jobId}|Completed>! \n- Repo: *${repoName}*\n- Branch: *${fullDocument.payload.branchName}*\n- Commit: *${fullDocument.payload.newHead}*\n- urlSlug: *${fullDocument.payload.urlSlug}*\n- Env: *${env}*\n*Urls*\n *CM*: <${mms_urls[0]}|Cloud Manager> \n *OPM*: <${mms_urls[1]}|OPS Manager>\n- InvalidationStatus: <${fullDocument.invalidationStatusURL}|Status> \nEnjoy :smile:!`;
} else {
msg = `Your Job <${jobUrl}${jobId}|Completed>! \n- Repo: *${repoName}*\n- Branch: *${fullDocument.payload.branchName}*\n- Commit: *${fullDocument.payload.newHead}*\n- urlSlug: *${fullDocument.payload.urlSlug}*\n- Env: *${env}*\n- Url: <${url}|${repoName}>\n- InvalidationStatus: <${fullDocument.invalidationStatusURL}|Status> \nEnjoy :smile:!`;
msg = `Your Job <${jobUrl}${jobId}|Completed>! \n- Repo: *${repoName}${
fullDocument.payload.directory ? `/${fullDocument.payload.directory}` : ``
}*\n- Branch: *${fullDocument.payload.branchName}*\n- Commit: *${fullDocument.payload.newHead}*\n- urlSlug: *${
fullDocument.payload.urlSlug
}*\n- Env: *${env}*\n- Url: <${url}|${fullDocument.payload.directory ?? repoName}>\n- InvalidationStatus: <${
fullDocument.invalidationStatusURL
}|Status> \nEnjoy :smile:!`;
}
}
// Remove instances of two or more periods
Expand Down

0 comments on commit 1f524bc

Please sign in to comment.