Commit graph

1007 commits

Author SHA1 Message Date
Sergei Zharinov
1a708f0368
fix(github): Paginate open and closed PR lists (#8008) 2021-01-09 17:28:09 +01:00
Elwyn
32459d313d
feat(azure): implement mergePr (#7908) 2020-12-18 09:10:09 +01:00
Michael Kriese
bc9d35d704
fix(gitlab): getBranchPr returned cached results (#8028)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-12-16 15:55:09 +01:00
Clément MATHIEU
031823197b
fix(gitlab): getJsonFile must URL encode filename (#8034) 2020-12-16 09:15:51 +01:00
Michael Kriese
2848d502b0
feat(gitea): support reviewers (#8041) 2020-12-16 08:34:09 +01:00
Michael Kriese
f900b70147
fix(gitea): replace links in issue body (#7967) 2020-12-11 21:38:33 +01:00
Rhys Arkins
00a08225b9
refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
Rhys Arkins
7dbea83a6b docs: remove outdated beta remarks 2020-12-11 12:35:04 +01:00
renovate[bot]
6c414e7736
chore(deps): update dependency eslint-config-prettier to v7 (#7940)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-12-11 09:35:56 +01:00
Sergei Zharinov
9c30da26de
refactor(http): Don't use obsolete URL functions with http wrappers (#7938)
* refactor(http): Remove obsolete URL functions usage
2020-12-10 11:13:58 +01:00
Michael Kriese
b12c522e0b
feat(gitlab): support automerge on pr update (#7871) 2020-12-03 16:13:21 +01:00
Daniel Tschinder
1251b61ca6
fix(bitbucket-server): PR update with invalid reviewers (#7698)
* 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>
2020-12-02 20:50:26 +01:00
Rhys Arkins
54c8f2e588
feat: ignorePrAuthor (#7853)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-12-02 15:01:48 +01:00
Jamie Magee
bffd90de66
fix(git): propagate cloneSubmodules (#7844) 2020-11-29 20:41:53 +01:00
Jamie Magee
276a01fdd7
fix(azure): allow cross origin auth for azure devops (#7728) 2020-11-14 20:38:35 +01:00
Rhys Arkins
5118ae9956 fix(gitlab): catch bad initRepo project reponse 2020-11-11 13:52:27 +01:00
renovate[bot]
76ae11668b
chore(deps): lock file maintenance (#7680)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2020-11-09 11:20:37 +01:00
Michael Kriese
8cc31373bf
fix(bitbucket-server): fix empty repo check (#7640) 2020-11-03 09:26:09 +01:00
Rhys Arkins
9f31b2a827 fix(gitlab): optional check for updatePr 2020-10-29 14:30:47 +01:00
Rich DiCroce
4fb8df0953
feat(gitlab): Implement draftPR for GitLab (#7357)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-10-29 10:25:55 +01:00
Rhys Arkins
d875cbf7e0
fix(github): add HAS_HOOKS to canMergeStates (#7598)
Closes #7597
2020-10-28 19:14:17 +01:00
Lukas
73a1722c32
fix(gitea): use correct link to pull requests (#7586) 2020-10-28 12:46:50 +01:00
Nils Plaschke
8b7dbe5d33
refactor(github): remove ghe compatibility checks (#7540)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-10-25 00:02:41 +02:00
Josh Soref
9aff7a955f
chore: spelling (#7499) 2020-10-20 08:49:28 +02:00
Rhys Arkins
6026fe3036 fix(gitlab): handle statuses 404 gracefully 2020-10-18 11:44:35 +02:00
Sergio Zharinov
4e08d56cfb
fix(github): Do not limit pagination for discovered repos (#7476)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-10-16 06:54:54 +02:00
Rhys Arkins
d858d85205 logs: trace ensureIssueClosing 2020-10-14 08:50:51 +02:00
Zachary Leighton
a40d1f721d
feat(azure): implemented azure branch status checks for automerge (#7398)
* 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>
2020-10-04 08:34:21 +02:00
Sergio Zharinov
517f5ecfb9
refactor(platform): move optimizeForDisabled, isFork logic to worker layer (#7379)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-10-02 11:57:52 +02:00
Sergio Zharinov
2a890dc5c9
fix(gitea): Fix "getJsonFile" implementation (#7393) 2020-10-01 15:46:57 +02:00
Sergio Zharinov
5c6442ba97
refactor(lint): Restrict non-null assertion operator (#7359) 2020-09-24 09:13:31 +02:00
Rhys Arkins
2ac6c392c2 fix(github): don’t filter PRs if in fork mode 2020-09-23 05:14:11 +02:00
Sergio Zharinov
feadc1417d
fix(github): Add "sourceRepo" field for created PRs (#7347) 2020-09-22 11:35:11 +02:00
Rhys Arkins
4e5a94c9d8 chore: update snapshot 2020-09-22 08:01:02 +02:00
Sergio Zharinov
b2ffabcf73
fix(bitbucket): Return only PRs created by Renovate (#7244)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-09-22 06:10:11 +02:00
Sergio Zharinov
0ea1413e57
refactor(platform): Rename "branchName" to "sourceBranch" (#7284)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-09-22 06:09:59 +02:00
Sergio Zharinov
689b2ff015
fix(github): Return only PRs that were created by Renovate (#7216) 2020-09-21 17:02:40 +02:00
Rhys Arkins
6c9c4ac14e fix(azure): add auth value to sanitized strings 2020-09-12 19:43:55 +02:00
Sergio Zharinov
79596e43c2
fix(gitea): Return only PRs created by Renovate (#7229) 2020-09-09 13:54:57 +02:00
Sergio Zharinov
6ac379715b
refactor(platform): Introduce optional getJsonFile function (#7174)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-09-09 11:08:51 +02:00
Rhys Arkins
9896f5e562
refactor: handle undefined platformOptions (#7227) 2020-09-09 11:07:38 +02:00
Sergio Zharinov
cb240141b8
fix(azure): Fix "branchName" field for azure-helper.ts (#7211)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-09-08 13:20:35 +02:00
Jamie Magee
f3a3db4a4f
fix(pr): move ADO and BB pr config to repo configuration (#7176)
* 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>
2020-09-07 12:55:37 +02:00
renovate[bot]
907b2b054e
chore(deps): update linters (major) (#7185)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-09-07 09:54:07 +02:00
Rhys Arkins
73f11c09ee refactor: log setBranchStatus url if failing 2020-09-04 10:55:36 +02:00
Michael Kriese
63cc26e3ea
fix(git): wrong config argument passing (#7166) 2020-09-02 18:03:45 +02:00
Rhys Arkins
83e54064f9
fix(azure): use repo remoteUrl if available (#7165) 2020-09-02 11:31:16 +02:00
Rhys Arkins
6a0fade7f9 refactor: drop defaultBranchSha from platform/github 2020-09-01 17:09:11 +02:00
Rhys Arkins
1aa5ffc503 fix(azure): repository is empty if no defaultBranch 2020-09-01 09:00:34 +02:00
Julien Poissonnier
499c838fe0
feat(gitlab): Allow using an OAuth2 token for authentication (#7131)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-08-31 15:36:48 +02:00