* fix(bitbucket-server): Do not throw REPOSITORY_CHANGED if API error is about invalid reviewers
Also always log the error in any case for better visibility
* fix: Extract code into helper methods and retry in updatePR
* Fix review feedback
* Update lib/platform/bitbucket-server/index.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* lint
* Move new helpers into utils.ts and add proper types for error
* Update lib/platform/bitbucket-server/utils.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* feat(azure): implemented azure branch status checks for automerge
Implemented checks for branch statuses for azure, using the latest branch gitStatusState to determine if it's pending, failing or successful. This is required to properly automerge, as it was always pending prior.
Added tests for scenarios with various results and updated relevant existing tests.
fixes#7392
* feat(azure): finished implementing status checks and also setting of a branch status
Finished implementation according to how the other platforms work as much as possible.
Implemented the setting of a branch status, using the createCommitStatus api from azure.
Created util classes to handle the way azure translates named contexts with slashes to objects and reverse.
Tests for above changes.
Closes#7392
* test(azure): add test for uncovered lines to bring coverage back to 100
* chore(azure): fix the log message to be accurate and in the right spot and add a trace log to the end of the set status call
* Update lib/platform/azure/index.ts
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
* Update lib/platform/azure/index.ts
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
* fix(pr): move ADO and BB pr config to repo configuration
This change moves `azureWorkItemId` & `bbUseDefaultReviewers` from self-hosted configuration (only) and allows them to be set at any level.
In draft for now as it needs test fixes
Fixes#7150
* test fixes
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>