From ade818be29a8497e5cfe879c8885a0af549b328f Mon Sep 17 00:00:00 2001 From: Orta Date: Mon, 22 Feb 2021 11:53:45 +0000 Subject: [PATCH] Prepare for release --- CHANGELOG.md | 6 ++++-- LICENSE | 2 +- source/platforms/github/GitHubAPI.ts | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a05750f7..4eda4e2d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,11 +14,13 @@ ## Main + + +# 10.6.3 + - Fixed Bitrise's `ciRunURL` underlying env var - [@rogerluan] - Simplified Bitrise repo slug lookup, fixing SSH URL parsing in BitBucketServer - [@rogerluan] -- Changed `CHANGELOG.md` merge strategy to union to avoid merge conflicts - [@rogerluan] - Log failure to update status also when not in verbose mode - [@rogerluan] - # 10.6.2 diff --git a/LICENSE b/LICENSE index 7af5b819d..663165d00 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016-2019 Orta Therox +Copyright (c) 2016-Present Orta Therox Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/platforms/github/GitHubAPI.ts b/source/platforms/github/GitHubAPI.ts index 24cb18ab7..96fa856eb 100644 --- a/source/platforms/github/GitHubAPI.ts +++ b/source/platforms/github/GitHubAPI.ts @@ -24,7 +24,7 @@ const limit = pLimit(25) export class GitHubAPI { fetch: typeof fetch - additionalHeaders: any + additionalHeaders: debug private readonly d = debug("GitHubAPI") private pr: GitHubPRDSL | undefined @@ -376,9 +376,10 @@ export class GitHubAPI { // this failure could be due to access rights. // // So only error when it's a real message. + const statusURL = `repos/${repo}/statuses/${ref}` try { const res = await this.post( - `repos/${repo}/statuses/${ref}`, + statusURL, {}, { state: state, @@ -390,9 +391,8 @@ export class GitHubAPI { ) return res.ok } catch (error) { - if (prJSON.base.repo.private) { - console.log("Could not post a commit status.") - } + this.d(`Posting a status to: ${statusURL} failed, this is the response:`) + this.d(error.message) } }