Skip to content

Commit

Permalink
refactor: give dep graph language distinct field name
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsilver committed Oct 31, 2024
1 parent d652a33 commit 5b2d43e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface Repository extends RepositoryFields {
}

export interface RepositoryWithDepGraphLanguage extends Repository {
language: DepGraphLanguage;
dependency_graph_language: DepGraphLanguage;
}

// The number of days teams have to fix vulnerabilities of a given severity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function repositoryWithDepGraphLanguage(
const repo = repository(fullName);
return {
...repo,
language,
dependency_graph_language: language,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function createSnsEventsForDependencyGraphIntegration(
const eventsForAllLanguages: DependencyGraphIntegratorEvent[] =
reposWithoutWorkflows.map((repo) => ({
name: removeRepoOwner(repo.full_name),
language: repo.language,
language: repo.dependency_graph_language,
admins: findContactableOwners(repo.full_name, repoOwnership),
}));

Expand Down Expand Up @@ -116,7 +116,7 @@ export function getReposWithoutWorkflows(
);
return result;
})
.map((repo) => ({ ...repo, language }));
.map((repo) => ({ ...repo, dependency_graph_language: language }));

allReposWithoutWorkflows = allReposWithoutWorkflows.concat(
reposWithoutWorkflows,
Expand Down

0 comments on commit 5b2d43e

Please sign in to comment.