Skip to content

Commit 336e602

Browse files
committed
no octokit required
1 parent 7966429 commit 336e602

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

index.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ if (!/https:\/\/discordapp\.com\/api\/webhooks\/\d+?\/.+/i.exec(webhook)) {
1111

1212
const escapeMd = (str) => str.replace(/([\[\]\\`\(\)])/g, '\\$1')
1313

14-
const octokit = new github.GitHub(github.token)
1514
const commits = github.context.commits.map(i => ` - [\\[${i.sha}\\]](${i.url}) ${escapeMd(i.message)} - by ${i.author.name}`)
1615

1716
if (!commits.length) {

0 commit comments

Comments
 (0)