diff --git a/.github/workflows/deploy-stg-ecs.yml b/.github/workflows/deploy-stg-ecs.yml index df11a4d52..55c5630b3 100644 --- a/.github/workflows/deploy-stg-ecs.yml +++ b/.github/workflows/deploy-stg-ecs.yml @@ -3,7 +3,6 @@ on: branches: - "master" - "integration" - - "DOP-4079-slack-monorepo" concurrency: group: environment-stg-${{ github.ref }} cancel-in-progress: true diff --git a/api/handlers/jobs.ts b/api/handlers/jobs.ts index 2c71813a1..8aedd6ffd 100644 --- a/api/handlers/jobs.ts +++ b/api/handlers/jobs.ts @@ -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