Skip to content

Commit

Permalink
DOP-4599 logging
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 23, 2024
1 parent 685fff4 commit 6f2da5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const getDeployableJobs = async (
if (splitValues.length === 3) {
// e.g. mongodb/docs-realm/master => (owner/repo/branch)
[repoOwner, repoName, branchName] = splitValues;
console.log('repoOwner: ', repoOwner, ' repoName:', repoName, 'branchName: ', branchName);
} else if (splitValues.length === 4 && process.env.FEATURE_FLAG_MONOREPO_PATH === 'true') {
// e.g. 10gen/docs-monorepo/cloud-docs/master => (owner/monorepo/repoDirectory/branch)
[repoOwner, repoName, directory, branchName] = splitValues;
Expand All @@ -124,6 +125,7 @@ export const getDeployableJobs = async (
const repoInfo = await docsetsRepository.getRepo(repoName, directory);
const non_versioned = repoInfo.branches.length === 1;

console.log(repoName, branchName, repoInfo.project);
const branchObject = await repoBranchesRepository.getRepoBranchAliases(repoName, branchName, repoInfo.project);
console.log(JSON.stringify(branchObject));
if (!branchObject?.aliasObject) continue;
Expand Down

0 comments on commit 6f2da5f

Please sign in to comment.