From 954be5e55d251743ac1e23907fc1097fc7891439 Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Wed, 13 May 2020 22:21:53 +0200 Subject: [PATCH] Fixed a small mistake --- src/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index fa170b36..9e88b344 100644 --- a/src/index.js +++ b/src/index.js @@ -7,15 +7,15 @@ const webhook = require('../src/discord.js'); async function run() { const repository = github.context.repo; const payload = github.context.payload; - const commits = payload.commits; - const size = payload.size; - const diff = `https://github.com/${repository}/compare/${payload.before}...${payload.after}`; + const commits = payload.commits; + const size = payload.size; + const diff = `https://github.com/${repository}/compare/${payload.before}...${payload.after}`; const branch = payload.ref.split('/')[payload.ref.split('/').length - 1]; console.log(`Received ${commits.length}/${size} commits...`); - const id = core.getInput("id"); - const id = core.getInput("token"); + const id = core.getInput("id"); + const token = core.getInput("token"); analysis.start().then((report) => { webhook.send(id, token, repository, branch, diff, commits, size, report).catch(err => core.setFailed(err.message));