From 6a62ff7c24ed39c3f2f4a91877ed70e178d0687f Mon Sep 17 00:00:00 2001 From: Anabella Buckvar Date: Wed, 17 Jan 2024 22:31:44 -0500 Subject: [PATCH] DOP-4724 testing --- api/handlers/slack.ts | 11 +++++------ src/services/slack.ts | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/api/handlers/slack.ts b/api/handlers/slack.ts index 93f4e95d7..483a4db62 100644 --- a/api/handlers/slack.ts +++ b/api/handlers/slack.ts @@ -31,12 +31,11 @@ export async function buildEntitledBranchList(entitlement: any, repoBranchesRepo const repoPath = `${repoOwner}/${repoName}${directoryPath ? '/' + directoryPath : ''}/${ branch['gitBranchName'] }`; - entitledBranches.push(`!inactive `); - // if (!active) { - // entitledBranches.push(`!inactive ` + `${repoPath}`); - // } else { - // entitledBranches.push(repoPath); - // } + if (!active) { + entitledBranches.push(`!inactive ` + `${repoPath}`); + } else { + entitledBranches.push(repoPath); + } } } } diff --git a/src/services/slack.ts b/src/services/slack.ts index 979a52c85..6e01fc14b 100644 --- a/src/services/slack.ts +++ b/src/services/slack.ts @@ -186,9 +186,9 @@ export class SlackConnector implements ISlackConnector { const opt = { text: { type: 'plain_text', - text: 'displayBranchPath', + text: displayBranchPath, }, - value: 'valueBranchPath', + value: valueBranchPath, }; reposToShow.push(opt); });