Skip to content

Commit

Permalink
Fix fetching dependencies
Browse files Browse the repository at this point in the history
I broke this with #27.
I switched from passing repos as a second parameter to passing it as
part of the object in the first parameter in the consuming function but
not in the function signature itself.
This format follows the signature the Octokit builtin functions use so I
think it makes sense to align our approach with theirs.
  • Loading branch information
rich committed Sep 12, 2024
1 parent 57e546d commit e91ab4d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions renovate/dependencyDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ export const handleIssuesApiResponse = (response) => {

return parseDependenciesFromDashboard(dependencyDashboardIssue);
}
export const getDependenciesForRepo = ({ octokit, repository }) => {
return octokit.request(repository.issues_url).then(handleIssuesApiResponse);
};

export const getDependenciesForRepo = ({ octokit }, repo) => {
return octokit
.request(repo.issues_url)
.then(handleIssuesApiResponse);
}

0 comments on commit e91ab4d

Please sign in to comment.