Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
fix: print github commit status responses
Browse files Browse the repository at this point in the history
  • Loading branch information
torchello committed Oct 6, 2021
1 parent abfddad commit c798deb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commitStatus/github/commitStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ export default function postCommitStatus(state: CommitStatusState, description:
const octokat = require('octokat');
const octo = new octokat({ token: token() });

octo.repos(owner(), repo()).statuses(sha()).create({
const result = octo.repos(owner(), repo()).statuses(sha()).create({
state: state,
context: 'appland/scanner',
description: description,
});
process.stdout.write(result);
}

function token(): string | undefined {
Expand Down

0 comments on commit c798deb

Please sign in to comment.