From b09fbaf16e9d3f857f787078507336975a656f93 Mon Sep 17 00:00:00 2001 From: Maxim Topciu Date: Sat, 27 Apr 2024 21:10:56 +0300 Subject: [PATCH] add more logs --- bamboo-specs/example.yaml | 1 + src/lib/github/GithubApiManager.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/bamboo-specs/example.yaml b/bamboo-specs/example.yaml index 3fe8540..ff3d191 100644 --- a/bamboo-specs/example.yaml +++ b/bamboo-specs/example.yaml @@ -53,6 +53,7 @@ Test: --workflow example.yml \ --artifacts-path . \ --secret SECRET_KEY=SECRET_VALUE + -v # The artifacts produced by the workflow are downloaded and shared with the # Bamboo CI job. These artifacts can be then shared with other unrelated # Bamboo builds. diff --git a/src/lib/github/GithubApiManager.ts b/src/lib/github/GithubApiManager.ts index 03d4dc3..1c523b9 100644 --- a/src/lib/github/GithubApiManager.ts +++ b/src/lib/github/GithubApiManager.ts @@ -92,6 +92,7 @@ export class GithubApiManager { return response.status === HttpStatusCode.Ok; } catch (error) { if (isErrorWithStatus(error)) { + logger.debug(`Error status: ${error.status}`); if (error.status === HttpStatusCode.NotFound || error.status === HttpStatusCode.UnprocessableEntity) { // Return false if the commit does not exist, or if the request is unprocessable return false;