Skip to content

Commit

Permalink
build(deps): bump @octokit/rest from 18.7.1 to 18.12.0 (#256)
Browse files Browse the repository at this point in the history
* build(deps): bump @octokit/rest from 18.7.1 to 18.12.0

Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.7.1 to 18.12.0.
- [Release notes](https://github.com/octokit/rest.js/releases)
- [Commits](octokit/rest.js@v18.7.1...v18.12.0)

---
updated-dependencies:
- dependency-name: "@octokit/rest"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix(ts): adapt tests to new octokit types

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thibaud Desodt <[email protected]>
  • Loading branch information
dependabot[bot] and tsimbalar authored May 11, 2022
1 parent ce0bea4 commit f162840
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 136 deletions.
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

0 comments on commit f162840

Please sign in to comment.