Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Feb 22, 2021
1 parent 497fac0 commit ade818b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
## Main

<!-- Your comment below this -->
<!-- Your comment above this -->

# 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]
<!-- Your comment above this -->

# 10.6.2

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions source/platforms/github/GitHubAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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)
}
}

Expand Down

0 comments on commit ade818b

Please sign in to comment.