Permalink
Browse files

fix(github-status): fix sending statuses to Github (closes #102)

  • Loading branch information...
jkuri committed Aug 30, 2017
1 parent 24ab1c7 commit 0c2ec11feec33b090d454c5f1ee7b83ac96bccab
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/api/commit-status.ts
@@ -41,7 +41,7 @@ export function sendPendingStatus(buildData: any, buildId: number): Promise<void
const config: any = getConfig();
if (buildData.repository && buildData.repository.access_token) {
if (buildData.repository.github_id) {
const sha = buildData.data.after;
const sha = buildData.data.after || buildData.data.pull_request.head.sha;
const name = buildData.data.repository.full_name;
const gitUrl = `https://api.github.com/repos/${name}/statuses/${sha}`;
const abstruseUrl = `${config.url}/build/${buildId}`;
@@ -75,7 +75,7 @@ export function sendFailureStatus(buildData: any, buildId: number): Promise<void
const config: any = getConfig();
if (buildData.repository && buildData.repository.access_token) {
if (buildData.repository.github_id) {
const sha = buildData.data.after;
const sha = buildData.data.after || buildData.data.pull_request.head.sha;
const name = buildData.data.repository.full_name;
const gitUrl = `https://api.github.com/repos/${name}/statuses/${sha}`;
const abstruseUrl = `${config.url}/build/${buildId}`;

0 comments on commit 0c2ec11

Please sign in to comment.