Commit graph

1050 commits

Author SHA1 Message Date
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
Rhys Arkins
6dbb1c710c refactor: get defaultBranchSha from git 2020-08-31 13:14:13 +02:00
Rhys Arkins
012561f69a
feat(git): get branch commit without cloning (#7130)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-08-30 22:03:58 +02:00
Rhys Arkins
80b691c807
refactor: remove platform.setBaseBranch (#7137) 2020-08-30 21:27:02 +02:00
Sergio Zharinov
28d16d17bc
refactor(platform): Fix lint warnings (#7113) 2020-08-27 09:05:31 +02:00
Sergio Zharinov
0701419d6e
fix: remove statusCheckVerify option (#7094)
Closes #7057

BREAKING CHANGE: statusCheckVerify config option is no longer supported and will be ignored
2020-08-25 13:11:24 +02:00
Michael Kriese
09df036e7c
fix(bitbucket-server): rethrow empty (#7088) 2020-08-25 06:56:59 +02:00
Rhys Arkins
879966acdc
fix(github): don’t delete forked repos (#7079)
Closes #7055
2020-08-24 15:17:24 +02:00
Sergio Zharinov
6f08421c9f
logs(github): Decrease GitHub vulnerability logs verbosity (#6971) 2020-08-24 10:48:47 +02:00
Michael Kriese
98c4a378e8
fix(bitbucket-server): handle empty repo (#7070) 2020-08-24 10:42:39 +02:00
Sergio Zharinov
786ff757b2
fix(azure): Separate API call for the reopening PR state (#7050)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-24 10:41:07 +02:00
Sergio Zharinov
2d83f073dd
platform(gitlab): Limit MR body to 25 Kb (#7043) 2020-08-20 20:53:03 +02:00
Sergio Zharinov
4459f6e8d4
fix(bitbucket): Decline PRs by separate API call (#7036) 2020-08-20 16:15:57 +02:00
Sergio Zharinov
5e93840ebb
fix(gitlab): Fix PR closing keyword (#7037) 2020-08-20 13:57:31 +02:00
Michael Kriese
5488db85a5
fix(bitbucket-server): wrong contents fetch (#7029)
* fix(bitbucket-server): wrong contents fetch

* fix: wrong string join
2020-08-19 13:49:52 +02:00
Michael Kriese
6474dd49e5
chore: lint fixes (#7018)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-08-19 06:46:00 +02:00
Sergio Zharinov
45b9b4ebc4
refactor(platform): Decomplect branch deletion from PR state (#6988) 2020-08-18 20:38:53 +02:00
Sergio Zharinov
eb2f2ea049
refactor(bitbucket-server): Support state changes for updatePr (#7017)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-08-18 14:41:41 +02:00
Sergio Zharinov
6f7cced72f
refactor(gitlab): Support state changes for updatePr (#7013) 2020-08-18 14:30:53 +02:00
Sergio Zharinov
b0102b6b6d
refactor(gitea): Support state changes for updatePr (#7015) 2020-08-18 14:30:37 +02:00
Sergio Zharinov
5230f288d7
refactor(bitbucket): Support state changes for updatePr (#7016) 2020-08-18 14:28:41 +02:00
Sergio Zharinov
6547d37ae0
refactor(azure): Support state changes for updatePr (#7014) 2020-08-18 14:28:18 +02:00
Sergio Zharinov
cc8652e38c
refactor(github): Support state changes for updatePr (#7012) 2020-08-18 13:21:44 +02:00
Sergio Zharinov
cd064db4eb
refactor(platform): Change signature types for "updatePr" method (#7002)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-08-18 12:19:19 +02:00
Rhys Arkins
76913a1889
feat(github): support app tokens (#6859) 2020-08-17 14:14:19 +02:00
Rhys Arkins
062045168a
refactor(git): lazy sync git (#6984)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-17 13:31:53 +02:00
Jamie Magee
b45502cd28
chore: fix more eslint warnings (#7001) 2020-08-17 12:32:23 +02:00
Michael Kriese
4a2a8ec68b
fix(bitbucket-server): check for empty repo (#6999) 2020-08-17 10:15:44 +02:00
Rhys Arkins
6ddda0fa4b chore: fix lint 2020-08-11 23:19:00 +02:00
Rhys Arkins
efbe610de8 fix(github): remove forked repo from list after deleting 2020-08-11 22:43:19 +02:00
Rhys Arkins
3e5ead7111 fix(github): don’t query forked repo list repeatedly 2020-08-11 22:41:06 +02:00
Rhys Arkins
2c99415ec3 fix(github): use forkToken for deleting the fork 2020-08-11 16:03:34 +02:00
renovate[bot]
ccf286240e
chore(deps): update linters (major) (#6769)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-10 16:18:08 +02:00
Michael Kriese
31b2867df3
feat(azure): add draft pr support (#6923)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-08-06 08:42:37 +02:00
Rhys Arkins
09290abfe4
refactor: github platform return defaultBranchSha (#6911) 2020-08-04 14:06:07 +02:00
Rhys Arkins
bc65f83077 fix(azure): createPr fix targetRefName
Closes #6846
2020-07-27 08:22:22 +02:00
Rhys Arkins
0a28745095
fix(github): lazy fetch user and emails (#6851)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-26 13:51:19 +02:00
Rhys Arkins
80f492b8fa chore: gitea PlatformParams 2020-07-24 19:09:33 +02:00
Rhys Arkins
d582663eed chore PlatformParams type 2020-07-24 18:14:32 +02:00
Rhys Arkins
b11e5cb761 chore: rename platform types 2020-07-24 17:57:45 +02:00
Rhys Arkins
bcdd97cb61 chore: remove unused types 2020-07-24 17:09:30 +02:00
Rhys Arkins
04949afce8
refactor: reduce platform defaultBranch storage (#6833) 2020-07-23 14:07:26 +02:00
Rhys Arkins
91be1678ac
refactor: targetBranch mandatory in platform.createPr (#6829) 2020-07-23 12:43:06 +02:00
Rhys Arkins
6eb3bcca83
refactor(platform): remove baseBranch (#6828) 2020-07-23 11:36:35 +02:00
Rhys Arkins
e6f52b49ac
refactor(platform): remove baseCommitSHA (#6827) 2020-07-23 11:12:37 +02:00
Rhys Arkins
eaffc19253
refactor: drop pr.isStale (#6826) 2020-07-23 10:15:51 +02:00
Michael Kriese
5815f75f13
feat(internal): migrate to got v11 (#6725)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-07-22 20:15:48 +02:00
Rhys Arkins
ae43b51391
feat: change default bot email (#6740) 2020-07-22 20:11:22 +02:00
Rhys Arkins
1449e8324b
feat(internal): use git to determine branch modification status (#6697)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-22 20:05:42 +02:00
Rhys Arkins
008f781d42 refactor: mandatory branchName in setBaseBranch 2020-07-22 11:14:22 +02:00
Rhys Arkins
d150b1768f refactor: platform defaultBranch 2020-07-22 11:14:15 +02:00
Rhys Arkins
20e57a1f6c
refactor: createPr useDefaultBranch -> targetBranch (#6813) 2020-07-22 11:08:08 +02:00
Michael Kriese
9b4bff0051
fix(internal): fix linting (#6803) 2020-07-22 07:45:57 +02:00
Rhys Arkins
8ed043089e chore: fix github test 2020-07-21 15:58:23 +02:00
Rhys Arkins
92da666c6f fix(github): detect empty repos 2020-07-21 15:15:56 +02:00
renovate[bot]
340f136448
build(deps): update dependency simple-git to v2 (#6783)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-21 14:52:24 +02:00
Rhys Arkins
45ac664d9d fix(github): handle undefined initRepo result 2020-07-21 12:21:37 +02:00
Jamie Magee
456245aabe
chore(eslint): enable typescript 3.7 rules (#6765) 2020-07-18 08:42:32 +02:00