diff --git a/lib/commits.js b/lib/commits.js index 0f8c2eea4..081397ab6 100644 --- a/lib/commits.js +++ b/lib/commits.js @@ -87,7 +87,7 @@ module.exports.findCommitsWithAssociatedPullRequests = async ({ }) data = await paginate( - context.github.graphql, + context.octokit.graphql, module.exports.findCommitsWithAssociatedPullRequestsQuery, { ...variables, since: lastRelease.created_at }, dataPath @@ -101,7 +101,7 @@ module.exports.findCommitsWithAssociatedPullRequests = async ({ log({ app, context, message: `Fetching all commits for reference ${ref}` }) data = await paginate( - context.github.graphql, + context.octokit.graphql, module.exports.findCommitsWithAssociatedPullRequestsQuery, variables, dataPath diff --git a/lib/releases.js b/lib/releases.js index 0eb5149cd..bb311f96a 100644 --- a/lib/releases.js +++ b/lib/releases.js @@ -18,8 +18,8 @@ const sortReleases = (releases) => { } module.exports.findReleases = async ({ ref, app, context, config }) => { - let releases = await context.github.paginate( - context.github.repos.listReleases.endpoint.merge( + let releases = await context.octokit.paginate( + context.octokit.repos.listReleases.endpoint.merge( context.repo({ per_page: 100, }) @@ -297,7 +297,7 @@ module.exports.generateReleaseInfo = ({ } module.exports.createRelease = ({ context, releaseInfo }) => { - return context.github.repos.createRelease( + return context.octokit.repos.createRelease( context.repo({ name: releaseInfo.name, tag_name: releaseInfo.tag, @@ -314,7 +314,7 @@ module.exports.updateRelease = ({ context, draftRelease, releaseInfo }) => { tag_name: releaseInfo.tag || draftRelease.tag_name, }) - return context.github.repos.updateRelease( + return context.octokit.repos.updateRelease( context.repo({ release_id: draftRelease.id, body: releaseInfo.body,