Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump @octokit/rest from 18.7.1 to 18.12.0 #256

Merged
merged 2 commits into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 49 additions & 131 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"dependencies": {
"@octokit/plugin-throttling": "3.5.2",
"@octokit/rest": "18.7.1",
"@octokit/rest": "18.12.0",
"@tsoa/runtime": "3.13.0",
"date-fns": "2.23.0",
"express": "4.17.1",
Expand Down
6 changes: 2 additions & 4 deletions src/infra/github/RepoRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ export class RepoRepository implements IRepoRepository {

const workflowsPerRepo = await this.getWorkflowsPerRepo(
octokit,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
allRepos.map((r) => new RepoName(r.owner!.login, r.name))
allRepos.map((r) => new RepoName(r.owner.login, r.name))
);

return allRepos.map((r) => ({
id: r.id.toString(),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
name: new RepoName(r.owner!.login, r.name),
name: new RepoName(r.owner.login, r.name),
webUrl: r.html_url,
workflows: workflowsPerRepo.get(r.full_name) ?? [],
}));
Expand Down