Skip to content

Commit 750ccbf

Browse files
authored
Merge pull request #17 from xt0rted/dependabot/npm_and_yarn/actions-toolkit-2.1.0
Bump actions-toolkit from 1.5.0 to 2.1.0
2 parents 8cfd52b + 786c307 commit 750ccbf

File tree

4 files changed

+178
-95
lines changed

4 files changed

+178
-95
lines changed

entrypoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const PullRequestChecker = require(".");
44
const { context, exit, github: {
55
pulls,
66
repos
7-
}, log } = new Toolkit();
7+
}, log } = new Toolkit({ secrets: ["GITHUB_TOKEN"] });
88

99
const prChecker = new PullRequestChecker(context, pulls, repos, log);
1010

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class PullRequestChecker {
88

99
async go()
1010
{
11-
const commits = await this.pulls.listCommits(this.context.issue());
11+
const commits = await this.pulls.listCommits(this.context.issue);
1212

1313
this.log(`Number of commits in the pull request: ${commits.data.length}`);
1414

0 commit comments

Comments
 (0)