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); });