Skip to content

Commit e596f6f

Browse files
authored
PR #24 from psaux-it/token
token
2 parents e5439b2 + 8b0f0c1 commit e596f6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/auto-merge.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
repo: context.repo.repo,
2020
pull_number: prNumber
2121
});
22-
22+
2323
// Only proceed if the PR is created by Dependabot.
2424
if (pr.user.login !== 'dependabot[bot]') {
2525
core.info("PR is not from Dependabot. Skipping auto-merge.");
2626
core.setOutput("shouldMerge", "false");
2727
return;
2828
}
29-
29+
3030
// Check if the PR has the 'automerge' label.
3131
const labels = pr.labels.map(label => label.name);
3232
if (!labels.includes('automerge')) {
@@ -35,7 +35,6 @@ jobs:
3535
return;
3636
}
3737
38-
// Skip combined status check and proceed to auto-merge.
3938
core.info("Skipping status checks. Proceeding with auto-merge.");
4039
core.setOutput("shouldMerge", "true");
4140
@@ -52,3 +51,5 @@ jobs:
5251
merge_method: "squash"
5352
});
5453
core.info(`Merge response: ${JSON.stringify(mergeResponse.data)}`);
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)