File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4949 // Create a new Octokit instance under Apify Service Account
5050 // Apify Service Account does not trigger PR toolkit,
5151 // does not need approval for PRs and does not need to wait for status checks
52- const octokit = new Octokit({
52+ const serviceAccountOctokit = new Octokit({
5353 auth: process.env.GIT_HUB_TOKEN,
5454 });
5555
6464 }
6565
6666 // Create pull request from headBranch to baseBranch (typically `master` to `develop`)
67- const createResp = await octokit .rest.pulls.create({
67+ const createResp = await serviceAccountOctokit .rest.pulls.create({
6868 owner: context.repo.owner,
6969 repo: context.repo.repo,
7070 head: headBranch,
7575 const pullRequestNumber = createResp.data.number;
7676
7777 // Merge pull request
78- await octokit .rest.pulls.merge({
78+ await serviceAccountOctokit .rest.pulls.merge({
7979 owner: context.repo.owner,
8080 repo: context.repo.repo,
8181 pull_number: pullRequestNumber,
You can’t perform that action at this time.
0 commit comments