Commit graph

1007 commits

Author SHA1 Message Date
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
Rhys Arkins
0571eb37e8
fix: don’t assign if MR already has assignees or reviewers (#6386)
* fix(gitlab): don’t assign if MR already has assignees

Closes #6375

* add more platforms

* fix github

* simplify gitlab

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-16 15:45:50 +02:00
Rhys Arkins
6d96d3d220
refactor: git.setBranch (#6739) 2020-07-13 07:31:22 +02:00
Rhys Arkins
bb10d784e7
refactor: platform.initRepo return defaultBranch not baseBranch (#6737) 2020-07-12 21:30:11 +02:00
Sergio Zharinov
41983bf29a
fix(github): Use GraphQL for initRepo (#6726)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-07-12 18:18:44 +02:00
Sergio Zharinov
581844a085
fix(github): Fix accept headers for Github HTTP wrapper (#6736)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-07-12 15:29:26 +02:00
Sergio Zharinov
e2af296c48
refactor: Rename GraphQL query methods (#6732) 2020-07-12 08:10:38 +02:00
Rhys Arkins
a8f27e0bf3
feat: dependencyDashboard (#6729) 2020-07-11 11:55:30 +02:00
Rhys Arkins
9b8f010f99 fix(github): don’t disable automerge on ghe if push protection enabled 2020-07-11 08:09:05 +02:00
Michael Kriese
e11875e036
refactor(internal): prepare for got v11 (#6727) 2020-07-10 20:51:40 +02:00
Rhys Arkins
ce8ce887d7 fix(github): harden commit checks 2020-07-09 07:44:55 +02:00
Rhys Arkins
9fe82cc2c8 fix(gitlab): reduce pr body max to 50k chars 2020-07-09 07:31:18 +02:00
Rhys Arkins
ab987941ac fix(github): delete fork after patch failure 2020-07-09 07:26:22 +02:00
Rhys Arkins
4665dbff6f
refactor: remove commitFiles from platforms (#6701)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-08 14:14:13 +02:00
Rhys Arkins
4f48cd1a4e
refactor: remove platform.getPrFiles (#6702) 2020-07-08 06:49:54 +02:00
Rhys Arkins
c3f8d0067e
fix(gitlab): use global.gitAuthor to compare commit authors (#6696) 2020-07-07 14:12:31 +02:00
Rhys Arkins
60d1a5f35a chore: remove unused github platform variables 2020-07-07 09:32:33 +02:00
Carlin St Pierre
e015875ac5
fix(bitbucket-cloud): Preserve Bitbucket Cloud reviewers when updating PRs (#6560) 2020-07-06 20:58:40 +02:00
Rhys Arkins
52cddfde8b
refactor: remove branch functions from platform (#6676) 2020-07-04 18:15:29 +02:00
Rhys Arkins
ab0ebfeeb4
refactor: remove getFile/getFileList from platform (#6674) 2020-07-04 14:28:49 +02:00
Rhys Arkins
ac59df7c7e
refactor: remove getRepoStatus from platform (#6672) 2020-07-04 13:52:33 +02:00
Rhys Arkins
1e0c759f3d
refactor: remove unnecessary cleanRepo() (#6671) 2020-07-04 12:48:09 +02:00
Sergio Zharinov
1137112130
refactor: Separate 'git' and 'fs' util modules (#6665) 2020-07-03 16:47:00 +02:00
Sergio Zharinov
679176f26e
test(git): Decouple 'gitfs/fs' and 'gitfs/git' in tests (#6661) 2020-07-03 15:08:16 +02:00
Sergio Zharinov
d144013af1
refactor(platform): Make git to be class-less (#6635)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-07-01 12:45:53 +02:00
Rhys Arkins
7611e6353a refactor: git/storage -> git/index 2020-06-29 09:11:55 +02:00
Cirno the Strongest
72c86c7bbf
fix(gitea): fetch both open and closed issues (#6604) 2020-06-27 12:24:14 +02:00
Rhys Arkins
dd636ed15c
refactor: pass git author in initRepo (#6605) 2020-06-27 12:21:47 +02:00
Rhys Arkins
49447989e1
fix(gitlab): fetch all open issues (#6597) 2020-06-27 09:55:02 +02:00
Rhys Arkins
3c3f259aef
fix: gitAuthor parsing (#6594) 2020-06-27 08:03:46 +02:00
Rhys Arkins
031ad87b62 refactor: move ExternalHostError 2020-06-23 11:44:52 +02:00
Rhys Arkins
52a074e041
refactor: ExternalHostError (#6563) 2020-06-22 21:28:02 +02:00
proton
cb8d64dbe9
fix(gitea): remove immortal PR warning (#5999) 2020-06-18 23:26:28 +02:00
hussainweb
8ac8f42a22
feat(git): Pass --no-verify to git commit and push (#6526)
Fixes #6521
2020-06-17 06:48:05 +02:00
Sergio Zharinov
93eaeeab88
test: Use nock for tests (Part 2) (#6519) 2020-06-16 07:11:21 +02:00
Rhys Arkins
e5e1a181ff
refactor(bitbucket): don’t use endpoint in initRepo (#6457)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-06-07 13:26:08 +02:00
Rhys Arkins
3a4e153af0
fix(github): send versioned accept header (#6456)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-06-07 11:21:45 +02:00
Michael Kriese
1d57643896
feat(gitlab): filter repos on autodiscover (#6448) 2020-06-06 17:11:33 +02:00
Michael Kriese
fbcfde2c4f
fix(gitlab): wrong mr link path (#6447) 2020-06-05 21:00:55 +02:00
Rhys Arkins
59ea152087
fix: force commit if requested or conflicted (#6411) 2020-06-02 17:45:24 +02:00
Rhys Arkins
75c0ca6065 refactor(platform): pass CommitFilesConfig through 2020-06-02 15:58:47 +02:00
Sergio Zharinov
01be64987b
refactor(bitbucket): Switch to new http wrapper (#6392)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-06-01 16:02:25 +02:00
Sergio Zharinov
b4b66183f0
refactor(bitbucket-server): Switch to new http wrapper (#6393) 2020-06-01 15:35:12 +02:00
Sergio Zharinov
dcbef85813
refactor(gitea): Switch to new http wrapper (#6394) 2020-06-01 14:01:09 +02:00