Skip to content

Commit

Permalink
Fixed a small mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBusyBiscuit authored May 13, 2020
1 parent e24a12e commit 954be5e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 954be5e

Please sign in to comment.