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 49
49
// Create a new Octokit instance under Apify Service Account
50
50
// Apify Service Account does not trigger PR toolkit,
51
51
// 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({
53
53
auth: process.env.GIT_HUB_TOKEN,
54
54
});
55
55
64
64
}
65
65
66
66
// 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({
68
68
owner: context.repo.owner,
69
69
repo: context.repo.repo,
70
70
head: headBranch,
75
75
const pullRequestNumber = createResp.data.number;
76
76
77
77
// Merge pull request
78
- await octokit .rest.pulls.merge({
78
+ await serviceAccountOctokit .rest.pulls.merge({
79
79
owner: context.repo.owner,
80
80
repo: context.repo.repo,
81
81
pull_number: pullRequestNumber,
You can’t perform that action at this time.
0 commit comments