Skip to content

Commit

Permalink
DOP-4451 testing slack stuff and updating props
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 7, 2024
1 parent 2be0674 commit ee7b1c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/handlers/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export async function buildEntitledGroupsList(entitlement: any, repoBranchesRepo

const branches = await repoBranchesRepository.getRepoBranches(repoName, directoryPath);
const options: any[] = [];
console.log(repoName);
console.log(branches.length);
for (const branch of branches) {
const buildWithSnooty = branch['buildsWithSnooty'];
if (buildWithSnooty) {
Expand Down
1 change: 0 additions & 1 deletion cdk-infra/lib/stacks/webhook-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { TaskDefinition } from 'aws-cdk-lib/aws-ecs';
import { AutoBuilderQueues } from './auto-builder-queue-stack';
import { WebhookApiConstruct } from '../constructs/api/webhook-api-construct';
import { WebhookEnvConstruct } from '../constructs/api/webhook-env-construct';
import cluster from 'cluster';

interface WebhookStackProps extends StackProps {
webhookSecureStrings: Record<string, string>;
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/repoBranchesRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class RepoBranchesRepository extends BaseRepository {
return repo?.['branches'] ?? [];
}

async getProdDeployableRepoBranches(): Promise<Document[]> {
async getProdDeployableRepos(): Promise<Document[]> {
const reposArray = await this._collection
.aggregate([{ $match: { prodDeployable: true, internalOnly: false } }, { $project: { _id: 0, repoName: 1 } }])
.toArray();
Expand Down

0 comments on commit ee7b1c9

Please sign in to comment.