Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
maximtop committed Apr 27, 2024
1 parent 00b42b5 commit b09fbaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bamboo-specs/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/lib/github/GithubApiManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b09fbaf

Please sign in to comment.