Rhys Arkins
ef2a13f4f2
fix: don’t throw repository-changed from git layer ( #9032 )
2021-03-08 09:02:48 +00:00
HonkingGoose
0c96aa6d2f
docs: rewrite sentence Gitea older than v1.14.0 missing required API ( #8990 )
2021-03-04 19:32:38 +00:00
Michael Kriese
5126d1ce11
fix(gitea): check version for addReviewers ( #8980 )
2021-03-04 13:30:27 +01:00
Rhys Arkins
eb8f895f2e
refactor: eslint no-negated-condition ( #8973 )
2021-03-04 06:21:55 +01:00
Michael Kriese
74d7691bef
refactor: optimize type usage ( #8947 )
2021-03-02 21:44:55 +01:00
Michael Kriese
91a7e6b660
build: remove babel ( #8929 )
2021-03-02 16:16:05 +00:00
Michael Kriese
91d2b4e1c5
feat: static modules ( #8679 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-03-02 16:57:02 +01:00
renovate[bot]
82497046e1
chore(deps): update linters ( #8927 )
...
* chore(deps): update linters
* ignore lint error
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-03-01 21:06:29 +01:00
Rhys Arkins
399d7ea73e
refactor: platform.getPrBody -> massageMarkdown ( #8787 )
2021-02-28 18:19:35 +00:00
Elwyn
5fd6deee23
fix: race condition when merging Azure PR ( #8821 )
2021-02-28 16:21:46 +01:00
Rhys Arkins
34418825df
fix(forkMode): use forkToken when changing default branch
2021-02-27 09:06:39 +01:00
Rhys Arkins
f4e9e92e77
fix(github): include name field when setting fork default branch
2021-02-27 06:42:41 +01:00
Rhys Arkins
4d349b4608
test: add missing httpMock.reset ( #8836 )
2021-02-24 11:31:59 +01:00
Rhys Arkins
76d0d42c9e
refactor: getQueryString ( #8834 )
2021-02-24 09:58:21 +01:00
Rhys Arkins
eef58e2e01
fix(github): paginate all check-runs
2021-02-22 08:48:34 +01:00
Bob van de Vijver
e1ec04ef06
fix: use small delay before posting branch status to gitlab ( #8759 ) ( #8771 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-02-20 15:00:55 +00:00
Rhys Arkins
5f7b710a4c
fix(github): log token type correctly
2021-02-11 17:49:52 +01:00
Rhys Arkins
fa9031f5e9
feat(internal): expand disabled error messages
...
Splits REPOSITORY_DISABLED into multiple
2021-02-11 13:32:29 +01:00
Daniel Tschinder
3e2d9ca0e7
feat(bitbucket-server): Support git over ssh ( #8115 )
2021-02-11 11:33:57 +01:00
Taras
150092a2a5
feat(go): add support for bitbucket in go datasource ( #7892 )
2021-02-06 08:05:19 +01:00
Rhys Arkins
d00d1e8b5b
refactor: more GlobalConfig
2021-02-05 12:43:26 +01:00
Rhys Arkins
f533962a98
feat(github): change fork default branch ( #8516 )
2021-02-03 15:03:44 +01:00
Rhys Arkins
e8c1b26d9c
refactor(github): improve fork tests
2021-02-03 12:02:15 +01:00
Rhys Arkins
c59afaeb43
logs: log if fork default branch is different from parent
2021-01-30 11:57:14 +01:00
Rhys Arkins
3d6b142283
fix(github): support default branch rename when forking ( #8469 )
2021-01-30 10:31:33 +01:00
Rhys Arkins
ebb40b3adb
fix(github): pass up repo not found in init ( #8355 )
2021-01-19 23:07:12 +01:00
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
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