Commit graph

1050 commits

Author SHA1 Message Date
Michael Kriese
30fcff2194
feat(internal): dynamic platform imports (#5898) 2020-04-08 09:14:32 +02:00
Michael Kriese
c273e684a5
fix(platform): remove wrong bitbucket-server description (#5913) 2020-04-08 08:13:25 +02:00
Michael Kriese
5a3359462c
fix(github): fix github status check (#5905) 2020-04-07 17:45:55 +02:00
Rhys Arkins
ebdda4ddf4 fix(gitlab): platform error for 429 2020-03-28 17:38:43 +01:00
NateScarlet
f00846ee5d
fix(gitea): pagination (#5798)
Fixes #5797
2020-03-27 14:58:22 +01:00
NateScarlet
f9fe9fb313
fix: gitea status never green (#5776)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-03-26 06:42:55 +01:00
kroonprins
c5851bee00
feat(azure): small improvements for PR assignees and reviewers… (#5601)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-03-25 07:36:52 +01:00
kroonprins
63b5094915
feat(azure): support Azure DevOps Server authentication methods (#5602)
* feat(azure): support Azure DevOps Server authentication methods

* feat(azure): support Azure DevOps Server authentication methods

Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-03-24 23:08:00 +01:00
Daniel Tschinder
782eaca8c0
feat(bitbucket-server): Implement repoForceRebase() (#5769) 2020-03-24 08:29:38 +01:00
Jamie Magee
2da4d8413b
feat(github): github enterprise vulnerability alerts (#5762)
Add support for vulnerability alerts for GHE. Requires GHE 2.17.0 or higher. I think this is a fair requirement to assume, as GHE 2.16.x went EOL on January 22, 2020.

This also allows us to remove the check for GHE version when gettings issues.

Closes #4905
2020-03-24 07:24:55 +01:00
Jamie Magee
148d5498b8
feat(azure): implement getPrFiles (#5634) 2020-03-19 21:55:32 +01:00
Ben Gummer
a207ca215a
fix(bitbucket): allow custom Bitbucket Cloud endpoint (#5587) 2020-03-19 06:38:52 +01:00
Jamie Magee
5ce5ef39c1
chore(internal): disallow implicit braces (#5730) 2020-03-17 12:15:22 +01:00
Rhys Arkins
a8e1979edc fix(github): setBranchStatus mapping 2020-03-09 08:17:15 +01:00
Rhys Arkins
8e3390275b fix(bitbucket-server): treat STOPPED statuses as FAILED
Closes #5670
2020-03-09 05:56:12 +01:00
Rhys Arkins
5f2ab635cf fix(gitlab): add more status check mappings 2020-03-09 05:49:30 +01:00
Rhys Arkins
6605fe548d fix(gitlab): add missing “created” branch status 2020-03-08 21:05:46 +01:00
Rhys Arkins
588616f669
feat: branch status unification (#5658) 2020-03-08 15:03:19 +01:00
Rhys Arkins
364163e7a0
fix: move tests into lib (#5635) 2020-03-05 21:57:24 +01:00
Rhys Arkins
23a820e74f
feat(constants): Pull Request Status Constants (#5158) 2020-03-05 07:03:47 +01:00
Jamie Magee
16962a989f
chore: better types for azure (#5633) 2020-03-03 23:08:45 +01:00
Luke Page
30a3c9e701
fix(azure): null exception updating comment (#5624)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-03-03 11:36:57 +01:00
kroonprins
1088efde49
fix: bugfix for hourly limit for azure & bugfix for ignorePrefi… (#5600) 2020-02-29 23:04:59 +01:00
Michael Kriese
ecd981bf64
fix(platform): fix api differences (#5570) 2020-02-25 09:42:24 +01:00
Michael Kriese
d1a40c548c
fix(gitlab): add merge method fallback (#5571) 2020-02-25 09:12:56 +01:00
Michael Kriese
763e444962
feat(gitlab): add merge method check (#5567) 2020-02-25 06:34:06 +01:00
Rhys Arkins
712f9f091a logs: Issue created 2020-02-24 13:56:04 +01:00
Rhys Arkins
ab9361a170 logs: Comment added info 2020-02-24 13:54:11 +01:00
Rhys Arkins
432a0fa7c7 fix(logs): debug gitlab 406 err 2020-02-24 12:31:33 +01:00
Michael Kriese
9c717d9d57
fix: lgtm suggestions (#5562) 2020-02-24 12:27:10 +01:00
Rhys Arkins
f1d0b7b5fe refactor: lower some levels from info to debug
Ref #5555
2020-02-24 09:26:42 +01:00
Rhys Arkins
b097fb8f0a fix(pr): condense rebase description 2020-02-24 06:35:41 +01:00
Rhys Arkins
6c7f228347
fix(logs): log commit with Branch creates and updates (#5560) 2020-02-24 05:33:51 +01:00
Rhys Arkins
7dba5ed5b0 fix: pointless check 2020-02-22 07:13:12 +01:00
Pascal Mathis
c9357cc340
feat: add support for gitea platform (#5509) 2020-02-19 11:19:25 +01:00
Luke Page
b484272238
feat: Azure - update comments (#5503)
* fix ensure comment

* Fix comment update mechanism

* Fix snapshots

Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-02-18 22:12:15 +01:00
Luke Page
e179c7d948
feat(azure): calculate isModified (#5482) 2020-02-17 21:34:54 +01:00
Björn Dahlgren
30ee09ca4a
fix(bitbucket): log warning when PR creation fails (#5474) 2020-02-13 11:51:48 +01:00
Rhys Arkins
5d454ca3ff
fix(yarn): offline integrity hash (#5449) 2020-02-13 06:39:07 +01:00
Rhys Arkins
d0dae99796 fix(github): log canMergeReason if pr.canMerge = false; 2020-02-12 09:19:15 +01:00
Rhys Arkins
c2f28bdd95 fix(github): try/catch getPrList 2020-02-11 12:22:48 +01:00
Rhys Arkins
ab166d7088 fix(gitlab): warn not error when failing to add assignees 2020-02-08 15:49:13 +01:00
Rhys Arkins
aff618fa8e
feat: dynamic platform list retrieval (#5394) 2020-02-06 13:44:53 +00:00
Sourav Das
bdaa7b8e49
feat(constants): Host Types (#5171) 2020-02-06 12:15:54 +00:00
Rhys Arkins
99c2b38ec5 fix: import URLSearchParams in bitbucket 2020-02-06 12:17:09 +01:00
Michael Kriese
2ffad1363e
chore(eslint): stricter settings (#5375) 2020-02-05 18:17:20 +00:00
Michael Kriese
8719f70dea
chore(eslint): simplify / update settings (#5296) 2020-02-04 10:37:00 +01:00
Sergio Zharinov
514fdbddab fix(platform): Filter out non-Renovate PRs with same branch (#5211) 2020-01-27 13:45:52 +01:00
Rhys Arkins
e34900377c fix(gitlab): GITLAB_IGNORE_REPO_URL
Adds unofficial (for now) env option to igore the http_url_to_repo value returned by GitLab.
2020-01-21 16:44:24 +01:00
Rhys Arkins
4b29858768
fix(pr): better rebase/retry description in PRs (#5203) 2020-01-21 09:44:38 +01:00
Rhys Arkins
bd1179397b
fix: skip empty commits (#5184)
Skips the git commit force push if git returns no diff between the local branch and server branch of the same name.

Closes #5009, Closes #5083, Closes #5074
2020-01-18 11:55:32 +01:00
Jamie Magee
1e2c30a96a fix: warn if force push commit has no diff (#5099)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-01-17 18:11:02 +01:00
Sourav Das
9024eda2a0 feat(constants): Branch Status (#5166)
1. Branch related statuses are moved to lib/branch-constants.ts
2. Updated all the references

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-01-17 10:14:58 +01:00
renovate[bot]
36a37dada8 chore(deps): update dependency prettier to v1.19.1 (#5169)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-01-16 16:21:07 +01:00
Sourav Das
3a4c61ed03 refactor(constants) : Error constants (#5156) 2020-01-15 21:36:12 +01:00
Rhys Arkins
6d3966c7f6 logs: log 422 errors 2020-01-15 02:52:19 +01:00
Sourav Das
547dcd84a7 refactor(function): findPR function(#4996) (#5129) 2020-01-14 16:12:14 +01:00
Sourav Das
447b110a8c refactor(function): Ensure Comment Function (#4996) (#5128)
1. Create interface EnsureCommentConfig
2. Add config to the interface for Bitbucket
3. Refactor functions
4. Update tests

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-01-14 12:13:34 +01:00
Sourav Das
ee153e560e feat: use error constants (#5088) (#5100)
Use defined error constants throughout codebase.
2020-01-12 08:50:11 +01:00
Rhys Arkins
8170aed064 logs: print renovate version as part of renovateRepository 2020-01-11 07:50:08 +01:00
Sourav Das
50c74d38c0 refactor: createPR function (#4996) (#5108)
* refactor: createPR function (#4996)
1. Interface created: createPRConfig

* refactor: Create PR function (#4996)
Remove label parameter from bitbucket and bitbucket server function call.

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-01-07 15:33:19 +00:00
Sourav Das
be5679661a refactor: EnsureIssue function (#5107)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-01-07 10:40:53 +00:00
Sourav Das
e72bf85b1e refactor: setBranchStatus Function (#4996) (#5112) 2020-01-07 09:59:14 +00:00
Jamie Magee
113b1466cd fix(azure): reimplement getpr using getprlist (#5097)
* fix(azure): reimplement getpr using getprlist

* test fixes
2020-01-03 19:50:10 +00:00
Jamie Magee
7f6ac52f16 fix(azure): correct naming for branches (#5087) 2020-01-02 15:27:18 +00:00
Sourav Das
e7695bde9c refactor: convert commitFilesToBranch function params (#5064) 2020-01-02 09:03:46 +00:00
Sourav Das
a165d6b411 fix(github): Show warning when failed to add pr reviewer. (#5086) 2020-01-02 08:47:59 +00:00
Adam Dehnel
e1ebe77781 feat: skip gitlab disabled and empty repos (#5084)
* skipping disabled repos in gitlab

* adding tests for gitlab disabled repo check

* fixing empty_repo test

* skip gitlab project if MRs are disabled

Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-01-01 17:02:58 +01:00
Jamie Magee
ca05487273 feat(azure): implement findPrs (#5008) 2019-12-21 13:59:15 +01:00
Sergio Zharinov
3a7c67919f feat(github): graphql wrapper with query retry (#4739) 2019-12-13 12:24:11 +02:00
Rhys Arkins
3c5cdeb3cf fix(bitbucket-server): sanitize rebase checkbox
Fixes #4952
2019-12-11 09:02:44 +02:00
Rhys Arkins
8806148add fix(github): throw repository-changed if setBranchStatus fails 2019-12-11 09:00:47 +02:00
Michael Kriese
e6e121e7b7 refactor(test): convert to ts (#4945) 2019-12-09 14:42:55 +03:00
Frank Liepert
5601f3dade fix(gitlab): complete git author including name (#4932) (#4933) 2019-12-05 16:25:37 +01:00
Rhys Arkins
2adad0dae6
fix: drop configurable appName (#4931) 2019-12-05 11:55:14 +01:00
Rhys Arkins
1c33d1c101
fix: drop appSlug configurability (#4930) 2019-12-05 10:45:28 +01:00
Rhys Arkins
c7e129cdf6
feat: configurable product links (#4929) 2019-12-05 10:27:29 +01:00
Rhys Arkins
5ad362fb21 fix: Revert "fix: refactor appStrings imports"
This reverts commit aec281840b.
2019-12-04 16:44:04 +01:00
Rhys Arkins
aec281840b fix: refactor appStrings imports 2019-12-04 16:18:37 +01:00
Rhys Arkins
c8f49e71f5 refactor: remove Object.assign 2019-12-04 10:12:01 +01:00
Kirill Romanov
f223f5e007 fix: cache-bust branch status after updating a status (#4884) (#4885) 2019-12-03 18:21:40 +01:00
Riccardo Padovani
d51bf30c82 feat(gitlab): do not discover projects without MR enabled. (#4913)
Skip fetching gitlab repos that have MRs disabled.
2019-12-02 20:40:13 +01:00
Satsuki Yanagi
f78e43e024 fix(gitlab): pass through gitPrivateKey (#4904)
GitLab's PlatformConfig doesn't implemented well as support GPG Commit Signing.
2019-11-29 08:56:10 +01:00
Jamie Magee
ae2f0f7c84 feat: Initial support for git submodules (#4605) 2019-11-28 20:04:54 +01:00
Michael Kriese
f0d4995fda fix(eslint): '@typescript-eslint/explicit-function-return-… (#4872) 2019-11-26 16:13:07 +01:00
Gabriel Melillo
defac5d831 feat(gitlab) multiple assignees support (#4851) 2019-11-25 17:13:39 +01:00
Kirill Romanov
01aaf078df fix(storage): do not throw error when no remote branch to delete (#4314) (#4868) 2019-11-25 09:45:59 +01:00
Rhys Arkins
d46bd277c7 fix(gitlab): handle authentication-error retrieving PRs 2019-11-24 21:43:46 +01:00
Rhys Arkins
8d0aa39920 refactor(eslint): '@typescript-eslint/explicit-function-return-type' improvements 2019-11-24 08:43:24 +01:00
Rhys Arkins
473b7e1f4b refactor(eslint): enable @typescript-eslint/no-use-before-define 2019-11-24 05:09:13 +01:00
Michael Kriese
9b014ba92b chore(eslint): update eslint rules (#4829) 2019-11-20 08:55:53 +01:00
Jamie Magee
2ac8d387a2 fix(azure): select a merge method when there are no policies de… (#4730)
Incorrect assumptions around the policy API

Fixes #4714
2019-11-19 09:13:53 +01:00
Jamie Magee
67d82c5f16 fix(azure): remove 'refs/heads/' from target branch (#4820)
Azure DevOps returns the target branch in the form of `/ref/heads/master`, but Renovate expects just `master`

Fixes #4812
2019-11-17 15:54:08 -08:00
Rhys Arkins
399873946a
fix(platform): encode branchName in URLs (#4694) 2019-10-22 10:47:59 +02:00
Michael Kriese
2a4de19c77 feat(worker): convert 'branch' to typescript (#4449)
Co-Authored-By: Jamie Magee <JamieMagee@users.noreply.github.com>
2019-10-18 14:30:51 +02:00
Jamie Magee
2784016166 feat(azure): support different merge strategies for autocomplete (#4584) 2019-10-18 13:25:46 +02:00
Julien SIMON
d1e7c17f25 feat: prCommitsPerRunLimit (#4392) 2019-10-14 13:15:37 +02:00
Rhys Arkins
d35b0df432 fix(github): handle 404 when attempting automerge 2019-10-13 14:19:58 +02:00
Rhys Arkins
da1f608588 fix(gitlab): Ignore setBranchStatus error 2019-10-13 07:46:12 +02:00
mikaelkolkinn
6c45f516d2 fix(bitbucket): Branch automerges too early on Bitbucket Cloud (#4631) 2019-10-13 06:37:44 +02:00
Florian Greinacher
53fc7d8a3e feat(gitlab): add support for 'merge when pipeline succeeds' (#4558)
This commit adds (back) support for GitLab's 'merge when pipeline succeeds'
feature. This feature needs to be enabled by bot owners explicitely because
of an possible race condition in current GitLab versions.

Closes #3265
2019-10-05 10:00:32 +02:00
Rhys Arkins
d949187e91 fix: Revert "fix(azure): support on-prem clone (#4540)"
This reverts commit 0228bd05b1.
2019-10-04 11:18:11 +02:00
Jamie Magee
36b9c4a960 fix(storage): defer clone of submodules (#4550) 2019-10-04 09:10:11 +02:00
Rhys Arkins
ecdb9b3c3b test: check NODE_ENV instead of CI
Fixes test problem on WSL
2019-10-02 19:35:54 +02:00
JYC
0228bd05b1 fix(azure): support on-prem clone (#4540) 2019-09-25 16:53:28 +02:00
Michael Kriese
77a0291d4d fix(platform): smart truncate pr body (#4527) 2019-09-25 12:42:11 +02:00
Jamie Magee
e792268cbb feat(git): initialise submodules when cloning repos (#4353)
See https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspec

Fixes #1356
2019-09-25 11:58:52 +02:00
Ryan Murfitt
8c9a8f2c48 feat(bitbucket-cloud): Default reviewers (#4501) 2019-09-17 09:48:16 +02:00
Michael Kriese
49325143bd feat(sanitize): refactor (#4479) 2019-09-12 12:48:31 +02:00
Rhys Arkins
99f18b7dc3 fix(gitlab): EAI_AGAIN platform-failure 2019-09-11 09:33:08 +02:00
Michael Kriese
331863d211 feat(platform): remove global platform variable (#4455) 2019-09-10 09:50:29 +02:00
Rhys Arkins
88d889a979 fix(github): try automerge even if push protection is enabled
Closes #4460
2019-09-10 09:29:20 +02:00
Rhys Arkins
a32c8f4ccc fix: Revert "feat(platform): remove global platform variable (#4448)"
This reverts commit b5c9dc8e0b.
2019-09-09 06:55:30 +02:00
Rhys Arkins
2224580941 fix: Revert "fix: platform assign"
This reverts commit cdaa5514c4.
2019-09-09 06:55:13 +02:00
Rhys Arkins
cdaa5514c4 fix: platform assign 2019-09-09 06:50:08 +02:00
Michael Kriese
b5c9dc8e0b feat(platform): remove global platform variable (#4448) 2019-09-09 04:40:52 +02:00
Rhys Arkins
7a05f8b6a0 fix: remove duplicate sanitize 2019-09-07 18:34:14 +02:00
Rhys Arkins
95d54baf83
feat: centralized sanitation (#4446)
Adds a sanitize function to host-rules that redacts tokens and passwords from issues and PRs.

Closes #4444
2019-09-07 14:51:00 +02:00
Rhys Arkins
c3ba80c58f fix: throw baseBranch error from gitFs
Closes #4346
2019-09-05 09:47:53 +02:00
Rhys Arkins
80069f285e fix(github): handle 404 status check gracefully 2019-09-05 09:26:53 +02:00
Rhys Arkins
9ab4b5d4e9
feat: refactor pr.canRebase => !pr.isModified (#4385) 2019-08-29 10:30:17 +02:00
Michael Kriese
88892abb56 fix: typescript types (#4393) 2019-08-28 09:00:08 +02:00
Rhys Arkins
75dcf30ea0 logs: lower bitbucket issue warnings 2019-08-27 06:01:39 +02:00
Rhys Arkins
c488a674ca refactor: add better logging for bitbucket issue creation 2019-08-23 06:04:14 +02:00
Edd Armitage
e10f590c9a fix(gitlab): follow pagination in getbranchstatus for gitlab (#4342)
There are cases where the first page of results is not representative of the entire branch's status, so we need to follow all pages in the result.

Closes #4340
2019-08-22 19:34:50 +02:00
Rhys Arkins
f56c7701cd chore: drop unused setAppMode 2019-08-15 13:09:13 +02:00
Michael Kriese
4c485b727a feat(utils): convert to ts (#4237) 2019-08-15 08:26:21 +02:00
praveshtora
cb9437f72d feat: configWarningReuseIssue (#4101) 2019-08-15 07:41:01 +02:00
Rhys Arkins
2590f4eb1b logs: log comment title 2019-08-15 06:15:53 +02:00
Rhys Arkins
46a329b5f1 fix(github): platform-failure when fetching check runs 2019-08-14 19:24:51 +02:00
Rhys Arkins
c42d6cb21d fix(gitlab): handle ETIMEDOUT 2019-08-14 17:12:16 +02:00
Rhys Arkins
72404706ab feat(platform): return PR targetBranch 2019-08-14 11:48:56 +02:00
Rhys Arkins
1864d4ebf3 refactor(platform): return baseBranch from initRepo 2019-08-14 11:38:13 +02:00
Rhys Arkins
e602c4553d refactor(platform): use RepoConfig strictly 2019-08-14 10:51:12 +02:00
Rhys Arkins
109ba1d9a0 refactor(bitbucket): remove eager fetching during init 2019-08-14 10:42:09 +02:00
Rhys Arkins
cf42ed9674 chore: remove unused privateRepo field 2019-08-14 10:24:11 +02:00
Rakesh Tembhurne
4ee030a5ab fix(html-sanitize): Sanitize HTML comments in PR (#4285)
Sanitizes HTML comments inside PR body for BitBucket server.
Includes snapshots for the tests.

Closes #3715
2019-08-14 10:05:02 +02:00
Rhys Arkins
44adbd90dc fix(gitfs): check for platform-failure when setting base branch 2019-08-14 08:31:33 +02:00
Rhys Arkins
f041d7d409
refactor: consolidate platform ts (#4283) 2019-08-14 06:04:09 +02:00
Rhys Arkins
90faa3a039 chore: platformErrorStrings -> platformFailureStrings 2019-08-12 11:49:47 +02:00
Rhys Arkins
3c5bbfc474 fix(gitfs): platform-failure for Connection timed out 2019-08-12 11:49:26 +02:00
Rhys Arkins
4a81c20c9a fix(gitfs): platform-failure for Failed to connect 2019-08-09 09:28:40 +03:00
Rhys Arkins
d623cec5c8 refactor: InitRepoConfig 2019-08-09 09:25:49 +03:00
Rhys Arkins
2e546e4582 chore: fix github PlatformConfig ts 2019-08-07 10:19:45 +03:00
Michael Kriese
968e6ea57b chore(ci): add azure pipelines (#4198) 2019-08-05 14:58:10 +03:00
Liam Wilkins
97047eabc1 fix(bitbucket): prs correctly marked with canRebase flag (#4253) 2019-08-05 14:54:52 +03:00
Sergio Zharinov
495e2f6217 fix: Allow for auto-merge of new PRs (#4236) 2019-08-02 15:10:26 +02:00
ZyanKLee
9e5ea71b16 fix(bitbucket): fix PR url in master issue (#4195)
bitbucket cloud has its PRs at 
`/$teamName/$repoName/pull-requests/$prId`
2019-07-27 08:27:51 +02:00
Michael Kriese
8dd019f14f fix(bitbucket): size can be undefined (#4192)
fix(bitbucket): size can be undefined
2019-07-26 13:43:36 +02:00
Michael Kriese
ed74aa6904 fix(bitbucket): check invalid commit reponse (#4178)
fix(bitbucket): check invalid commit reponse
2019-07-25 16:17:24 +02:00
Michael Kriese
ceebedca3f fix(git): aonly allow fast-forward merge (#4169)
fix(git): aonly allow fast-forward merge
2019-07-24 17:20:17 +02:00
Michael Kriese
0e11084123 feat: generate typings and maps (#4146) 2019-07-23 10:34:02 +02:00
Michael Kriese
1fb79af2f1 feat: check for disabled renovate.json (#4114)
Extends option `optimizeForDisabled` to azure and bitbucket too
2019-07-22 07:16:16 +02:00
Rhys Arkins
405cea769b fix(gitFs): platform-failure for Invalid username or password 2019-07-19 12:40:35 +02:00
Rhys Arkins
b1be2d852d fix(github): pass comment platform-failure up 2019-07-18 22:13:20 +02:00
Rhys Arkins
8c3ab3e5d0 fix(git): platform-failure, not platform-error 2019-07-18 18:50:41 +02:00
Michael Kriese
c678af3686 fix(bitbucket): check commit author (#4111) 2019-07-17 16:52:09 +02:00
Michael Kriese
5404e726e0 feat(bitbucket): add missing features (#4110) 2019-07-17 16:13:11 +02:00
Michael Kriese
d97737914e refactor: add js type check (#4098) 2019-07-17 10:14:56 +02:00
Rhys Arkins
3378488c3f fix(github): handle 422 responses 2019-07-17 09:44:37 +02:00
Jamie Magee
f334c568a5 feat(typescript): convert logger to typescript (#3671) 2019-07-15 11:04:05 +02:00
praveshtora
530e8cb036 feat: check for disabled renovate.json before cloning in platfo… (#3965) 2019-07-14 07:45:39 +02:00
Rhys Arkins
bcaabf5c5c chore: log branchName with git errors 2019-07-13 10:40:12 +02:00
Michael Kriese
3f19544861 feat(platform): convert to typescript (#3988) 2019-07-13 09:48:47 +02:00
Michael Kriese
4c9872026f feat(github): convert to typescript (#3975) 2019-07-13 08:09:01 +02:00
Michael Kriese
6490f1bee7 feat(bitbucket-server): fetch only own pr's (#4044) 2019-07-13 07:49:37 +02:00
Rhys Arkins
0a00c79d6d logs: log latest commit for base branches 2019-07-12 10:34:49 +02:00
Rhys Arkins
bcb2573c8a fix(github): pass platform-failure up when forking 2019-07-11 09:18:51 +02:00
Rhys Arkins
e3c46bb9a0
feat: gitlab optimization with caching fix (#4033)
Restores GitLab optimization but with caching and pagination fixes.

Co-authored-by: Lukas Eipert <leipert@users.noreply.github.com>
2019-07-10 13:18:51 +02:00
Michael Kriese
3ef1c95a66 chore(lint): optimize linting (#4041) 2019-07-10 10:41:12 +02:00
Rhys Arkins
cbf695bb39 fix: Revert "feat(gitlab): Improve performance for projects with a lot of branches (#3936)"
This reverts commit 9779d77eb1.
2019-07-09 07:55:01 +02:00
Lukas Eipert
9779d77eb1 feat(gitlab): Improve performance for projects with a lot of branches (#3936)
1. `findPr` also includes the `source_branch` API parameter which
shortens execution time considerably
2. `getPrList` also filters `author_id` for the renovate's user
2019-07-08 16:43:39 +02:00
Rhys Arkins
bd02a9d756 fix(gitFs): handle gnutls_handshake() failed 2019-07-02 07:25:01 +02:00
Rhys Arkins
70857bfc5c
test: fix coverage (#3990) 2019-07-01 14:18:20 +02:00
Rhys Arkins
e839e8043f fix(gitlab): catch UNABLE_TO_VERIFY_LEAF_SIGNATURE 2019-06-29 07:44:38 +02:00
Gabriel Lavoie
d4e5996894 feat(github): Support for team assignment. (#3973) 2019-06-27 14:53:25 +03:00
kallrobin
2ed82a99a4 fix(bitbucket): add canMerge to pr (#3961) 2019-06-27 10:47:25 +03:00
Michael Kriese
b1df50851a feat(azure): convert to typescript (#3967) 2019-06-27 10:40:27 +03:00
Michael Kriese
1d6880b1a6 fix(bitbucket-server): store pr versions (#3957) 2019-06-24 19:28:24 +03:00
Michael Kriese
bc0198e047 fix(bitbucket-server): delay pr refresh (#3950)
fix(bitbucket-server): delay pr refresh
2019-06-21 10:27:37 +02:00
Rhys Arkins
941d6f14aa fix(gitFs): catch Could not write new index file error 2019-06-19 16:21:11 +02:00
Michael Kriese
2c3777001f fix(bitbucket-server): do not throw on merge failure (#3943) 2019-06-19 15:14:39 +02:00
Rhys Arkins
27746996f6 fix: restore gitAuthor to config to allow use in templating
Closes https://github.com/renovatebot/config-help/issues/275
2019-06-17 15:50:02 +02:00
Rhys Arkins
58f6498cc4 fix(github): don’t dump request stats 2019-06-17 08:31:36 +02:00
Rhys Arkins
154a8ddc2e feat(github): rest fallback for GHE issue retrieval
Falls back to REST api for issues retrieval if GHE version is < 2.17.0
2019-06-15 10:03:46 +02:00
Rhys Arkins
e94f85f636 fix(github): allow override of endpoint in initRepo 2019-06-14 11:54:36 +02:00
Rhys Arkins
4ea03ac0b4 feat(gitlab): detect gitAuthor as part of initPlatform
GitLab self-hosted users now no longer need to manually configure gitAuthor if it matches with the bot account they’re using.
2019-06-13 07:25:39 +02:00
Rhys Arkins
df0d79f7de fix(gitlab): skip mirrored repositories 2019-06-13 06:05:58 +02:00
Rhys Arkins
388c6010d2
test: fix circleci tests (#3927) 2019-06-12 23:05:35 +02:00
Rhys Arkins
73af6f7f3c refactor: for/of 2019-06-12 22:43:33 +02:00
Rhys Arkins
abe9464779 fix(gitFs): catch platform failures on each try/catch 2019-06-12 22:25:31 +02:00
renovate[bot]
dab7b1c314 chore(deps): update dependency prettier to v1.18.0 (#3905) 2019-06-07 06:34:57 +02:00
Rhys Arkins
bdd2c056a2 fix(github): handle EAI_AGAIN 2019-06-06 18:57:08 +02:00
Markus Heberling
c830f45484 feat(gitlab): use repository URL from API (#3900)
This allows to access gitlab servers running with a relative url root
* https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-a-relative-url-for-gitlab
2019-06-06 17:06:04 +02:00
Rhys Arkins
08ea666bd5 fix(gitlab): log initRepo err 2019-06-05 18:45:40 +02:00
Rhys Arkins
c6d61bf0b3 fix(gitlab): platform-error if ECONNRESET 2019-06-05 11:14:06 +02:00
Rhys Arkins
f6f7db8d6c fix(gitlab): throw platform-failure if 5xx 2019-06-05 10:13:00 +02:00
Rhys Arkins
6c6e584d33 fix(bitbucket): options override defaults
Closes #3883
2019-06-04 08:41:37 +02:00
Rhys Arkins
09a8ba311d test: fix lint warnings 2019-06-04 04:25:15 +02:00
Rhys Arkins
5edbe981b7 fix(github): use err.body.message 2019-06-04 04:10:22 +02:00
Rhys Arkins
c20db3eea8 fix(github): platform-failure 2019-06-04 04:03:46 +02:00
Rhys Arkins
53dfe77aa4 fix(github): handle 451 errors 2019-06-01 11:39:03 +02:00
Rhys Arkins
74b8a0d3fd fix(github): better comment failure detection 2019-06-01 06:26:31 +02:00
Rhys Arkins
ccb5f105ae fix(github): better detect disabled issues 2019-06-01 05:58:52 +02:00
Rhys Arkins
c498e0858d fix(github): restructure git init auth 2019-05-31 10:40:11 +02:00
Rhys Arkins
6c8afb6a46 fix(github): findIssue should throw if error 2019-05-31 02:22:43 +02:00
Rhys Arkins
7e21110d26 fix(github): throw error if unable to retrieve issues 2019-05-31 02:22:43 +02:00
Rhys Arkins
bdd37fd50d refactor: platform hostRule hostName not baseUrl 2019-05-31 02:22:43 +02:00
Rhys Arkins
ae507b7f11 fix(github): massage graphql baseUrl, not path 2019-05-31 02:22:43 +02:00
Rhys Arkins
2243b54f60 Revert "fix: Revert "feat(github): use graphql instead of rest api for issue list (#3808)""
This reverts commit dc194219d9.
2019-05-31 02:22:43 +02:00
Rhys Arkins
246d1664df logs: trace prRebase 2019-05-30 18:16:04 +02:00
Rhys Arkins
dc194219d9 fix: Revert "feat(github): use graphql instead of rest api for issue list (#3808)"
This reverts commit 8a19ee2bf6.
2019-05-30 16:30:16 +02:00
Rhys Arkins
a576a6f1cd fix(github): debug canRebase 2019-05-30 15:54:09 +02:00
Rhys Arkins
d6414ced16 fix(github): don’t skip graphql for closed PR list 2019-05-30 10:28:53 +02:00
Michael Kriese
cd0a3bd675 feat(gitlab): convert to typescript (#3824) 2019-05-29 14:00:56 +02:00
Ciprian Mandache
8a19ee2bf6 feat(github): use graphql instead of rest api for issue list (#3808) 2019-05-28 14:17:09 +02:00
Michael Kriese
0b063aeaa1 feat(build): use babel (#3825) 2019-05-28 11:21:17 +02:00
Rhys Arkins
73f953ca94 refactor(gitlab): use util/got/auth 2019-05-27 09:29:22 +02:00
Rhys Arkins
7a1703372b refactor(github): better retry logic 2019-05-27 09:07:52 +02:00
Rhys Arkins
e16487b824 fix(github): don’t unnecessarily retry 2019-05-27 08:57:40 +02:00
Rhys Arkins
4b907eb70d
refactor(github): use util/got (#3816) 2019-05-27 07:39:01 +02:00
Rhys Arkins
35f1f83371 chore: fix lint 2019-05-26 21:37:27 +02:00
Rhys Arkins
5d4e66144c fix(github): useCache 2019-05-26 21:17:00 +02:00
Rhys Arkins
ec301b1c48
refactor(bitbucket-server): use util/got (#3815) 2019-05-26 20:51:27 +02:00
Rhys Arkins
02b5f2e4be
refactor(gitlab): use util/got (#3814) 2019-05-26 19:05:05 +02:00
Rhys Arkins
e0766fa5ee
refactor: bitbucket got (#3813) 2019-05-26 11:25:24 +02:00
Rhys Arkins
47edd88755
refactor(bitbucket): simplify auth (#3810) 2019-05-25 08:13:55 +02:00
Rhys Arkins
5b0ef9409f refactor: bitbucket useCache 2019-05-25 07:58:57 +02:00
Rhys Arkins
439e19d78c
chore: remove all gitFs references (#3807) 2019-05-25 06:23:44 +02:00
Rhys Arkins
5f11c5e8d9
feat: hostRules rewrite (#3801)
Rewrites hostRules for increased flexibility. Includes renames of existing fields within a hostRule:
- `endpoint` -> `baseUrl`
- `host` -> `hostName`

Additionally, `domainName` has been added. Migration scripts should take care of these for users but it's recommended to update configs to match the new fields anyway.
2019-05-24 17:40:39 +02:00
Rhys Arkins
2426a5239f
feat(github): use git for all file operations (#3806)
With Renovate’s github platform code now using git for all file system operations, we need to tell Renovate which gitAuthor to use.

If you had already configured a gitAuthor in your bot config, you do not need to make any change.

Otherwise, to keep functionality as before, you should either:
(1) configure `gitAuthor` to match the bot’s account, or
(2) recreate your bot’s personal access token to include the “user:email” permission so that the bot can retrieve the email itself

BREAKING CHANGE: GitHub bot admins should either configure gitAuthor in their config or generate a new token with “user:email” permissions.
2019-05-24 16:34:52 +02:00
Michael Kriese
5f213255d0 test: fix coverage (#3794) 2019-05-24 15:01:07 +02:00
Rhys Arkins
b53c4c09cb Revert "feat(github): gitFs-only (#3736)"
This reverts commit acb493be95.
2019-05-24 12:08:55 +02:00
Rhys Arkins
acb493be95
feat(github): gitFs-only (#3736)
The github platform code will now use git "under the hood" instead of plucking files one by one from GitHub's API.
2019-05-24 11:50:11 +02:00
Rhys Arkins
1f6d18fcd6 fix(github): use defaults.endpoint
Closes #3787
2019-05-21 17:16:27 +02:00
Rhys Arkins
c02abf0976
feat: rename hostRules.platform to hostRules.hostType (#3768)
Refactors hostRules to use field “hostType” instead of “platform”. hostType can include datasources like npm, maven, pypi, etc.
2019-05-21 13:20:09 +02:00
Michael Kriese
0ecc16baf0 chore(build): fix linting (#3769) 2019-05-21 11:15:50 +02:00
Michael Kriese
314889031e feat(bitbucket): convert to typescript (#3767) 2019-05-21 10:34:28 +02:00
Rhys Arkins
3b69de91e1 chore: remove debugger statements 2019-05-21 09:57:57 +02:00
Rhys Arkins
73a2b42ac2 fix: clear and apply hostRules before each repo 2019-05-21 08:45:30 +02:00
Ciprian Mandache
05ec931f36 fix: remove checkbox hints + checkbox formatting for bitbucket via readOnlyIssueBody() transformer (#3765) 2019-05-21 08:21:44 +02:00
Michael Kriese
cc52c20533 feat(bitbucket-server): convert to typescript (#3756) 2019-05-20 15:08:18 +02:00
Rhys Arkins
ee218097dc
feat: refactor platform authentication (#3758) 2019-05-20 10:59:30 +02:00
Michael Kriese
61bdb3e14b fix(bitbucket-server): wrong stale pr check (#3754) 2019-05-20 05:44:14 +02:00
Rhys Arkins
a9674a5485 fix(bitbucket-server): determine gitFs type automatically 2019-05-19 09:44:57 +02:00
Rhys Arkins
9c9161d36c fix(github): autodiscover 100 per page 2019-05-18 18:58:32 +02:00
Rhys Arkins
a1a7b307a3 fix(gitlab): don’t warn if more than one MR assignee 2019-05-18 06:45:57 +02:00
Rhys Arkins
cbde6ca387 fix(gitFs): set branchExists=true after create 2019-05-17 19:47:10 +02:00
Rhys Arkins
6f7ac2c173 fix: Revert "fix(gitFs): better branch fetch"
This reverts commit 7324e4cdd9.
2019-05-17 17:56:57 +02:00
Rhys Arkins
7324e4cdd9 fix(gitFs): better branch fetch 2019-05-17 16:59:48 +02:00
Rhys Arkins
c59233819b fix(gitFs): post-commit fetch 2019-05-17 16:56:08 +02:00
Rhys Arkins
b701e15870 fix(gitFs): fetch branch after creating 2019-05-17 14:12:28 +02:00
Michael Kriese
ab5a531ada fix(gitFs): force update diverged branches (#3737) 2019-05-17 13:43:00 +02:00
Rhys Arkins
8f6e124998
fix(semantic-commits): fix lazy git semantic commit detection (#3735) 2019-05-17 10:24:29 +02:00
Rhys Arkins
3215d2966a
feat(gitFs): lazy fetching (#3638)
Instead of shallow cloning every branch (using —no-single-branch), we now clone only the default branch and lazy fetch the others as needed.
2019-05-17 08:10:40 +02:00
Michael Kriese
affc0116f0 fix(gitFs): fix fetch args (#3723)
fix(gitfs): fix wrong fetch arguments
2019-05-16 17:01:25 +02:00
Rhys Arkins
ca6320d95d fix(gitFs): catch missing baseBranch 2019-05-16 13:38:21 +02:00
Michael Kriese
0189dd8c4b feat: convert storage to typescript (part2) (#3690) 2019-05-16 13:00:40 +02:00
Rhys Arkins
2ff1dedb85 fix(gitFs): use force checkout between branches 2019-05-15 18:51:29 +02:00
Michael Kriese
966e7c41cc feat: convert storage to typescript (#3686) 2019-05-15 15:40:29 +02:00
Rhys Arkins
6ec1aac9ad fix(platform): always set baseBranch 2019-05-15 13:04:16 +02:00
Rhys Arkins
0569e9e40a fix(gitFs): run git checkout/reset when setting base branch 2019-05-15 13:00:01 +02:00
Michael Kriese
e8814be71b feat(gitFs): small refactorings (#3701) 2019-05-15 12:03:28 +02:00
Michael Kriese
90bcbedb0b fix(gitFs): fix fetch arguments (#3696) 2019-05-15 09:22:47 +02:00
Michael Kriese
5c4e53498a fix(platform): check branch exists before retrieving status (#3695) 2019-05-15 08:22:33 +02:00
Michael Kriese
6b00f2928d fix(gitfs): fix fetch args again (#3684) 2019-05-14 13:05:10 +02:00
Michael Kriese
5b81a330ab fix(git): wrong fetch args (#3663) 2019-05-14 12:22:17 +02:00
Rhys Arkins
982a8edcb7 test: fix tslint 2019-05-14 12:00:50 +02:00
Johan Hillerström
88b1f0f0c1 feat(devops): Add azureAutoComplete config option (#3661) 2019-05-13 16:19:31 +02:00
Rhys Arkins
2ccfff5e66 fix(gitlab): detect forks
Closes #3679
2019-05-13 12:20:22 +02:00
Michael Kriese
0143c20c08 feat(bitbucket-server): use default reviewers (#3647) 2019-05-10 13:28:35 +02:00
Michael Kriese
1d474e409f feat: add 60s timeout to all requests (#3641) 2019-05-10 11:54:01 +02:00
Rhys Arkins
f2b48c8383 feat: gitFs-only for GitLab
The gitlab platform is now implemented using gitFs over http/https. Ensure you are using a Personal Access Token with “api” scope. Remove any custom “gitFs” config option now - it will be autodetected based on the endpoint value. For most - maybe all - users, there should not be any change required at all.

Closes #3478

BREAKING CHANGE: gitlab platform is now gitFs only and requires a Personal Access Token with api scope.
2019-05-09 12:37:11 +02:00
Matt Lavin
44f8f328d1 fix(bitbucket): Close PRs when deleting branches (#3646) 2019-05-09 06:43:54 +02:00
Rhys Arkins
55829d0156 feat(gitFs): cache branchExists results 2019-05-05 06:00:03 +02:00
Michael Kriese
c6b4e70324 fix(bitbucket-server): add canRebase check (#3626) 2019-05-03 08:53:48 +02:00
Michael Kriese
45dba15b74 fix(bitbucket-server): check for stale pr (#3625) 2019-05-03 07:03:38 +02:00
Rhys Arkins
d3dbd937c4 fix(gitlab): better debugging of pr.canRebase 2019-05-02 23:34:52 +02:00
mohd hassaan
e4f8566f54 fix(azure-devops):Sanitize azure devops repoName (#3620)
fix(azure-devops): Sanitize azure devops repo name
2019-05-01 16:55:17 +02:00
Rhys Arkins
7e7b6ab782 tests: fix coverage 2019-05-01 10:41:50 +02:00
Rhys Arkins
bab94337eb fix(gitFs): try/catch deletes 2019-05-01 09:33:44 +02:00
Rhys Arkins
af00e9fc25 logs: debug more gitFs 2019-05-01 09:32:44 +02:00
mohd hassaan
eb936b4236 fix: autoclose resolved deprecated issues (#3611) 2019-05-01 09:28:30 +02:00
Rhys Arkins
fca98414e9 refactor: use git.raw 2019-04-30 11:02:23 +02:00
Rhys Arkins
5e0c788349 logs: log closed issue title 2019-04-30 10:09:15 +02:00
Rhys Arkins
ee0c6fb388 fix(gitFs): clean branches 2019-04-30 10:04:16 +02:00
Rhys Arkins
7fdf6e8652 fix(github): log full err if failing a 5xx response 2019-04-28 22:11:02 +02:00
Rhys Arkins
5aed5026c6 fix: pass platform-failure up when updating PR 2019-04-28 21:43:25 +02:00
Rhys Arkins
0c9e412ea0 feat(gitFs): support deleted files 2019-04-25 23:13:59 +02:00
Rhys Arkins
34fbb7c5a7 fix(github): try/catch getCommitStatus check 2019-04-25 18:18:18 +02:00
Michael Kriese
5306e6bdf2 fix(bitbucket-server): fix race condition (#3592) 2019-04-25 14:43:21 +02:00
Rhys Arkins
788215af99 fix(gitlab): Revert "feat(gitlab): try merging PR on creation (#3308)"
This reverts commit 8bd75923bb.

Reverting until https://gitlab.com/gitlab-org/gitlab-ce/issues/56698 is fixed by GitLab
2019-04-25 10:47:29 +02:00
Johan Hillerström
16eca4ec4e fix(azure-devops): Sanitize azure devops project name (#3582) 2019-04-23 16:03:58 +02:00
Jamie Magee
4b9a18ff66 fix(azure): update add reviewers to use up-to-date API (#3532)
Also support adding teams as reviewers

Fixes #3183
2019-04-16 10:54:56 +02:00
Jamie Magee
6ca8991c3a feat(azure-devops): link to an existing work item when creating PRs (#3542)
Looks like I was (happily) wrong about this. There is currently no API to add a work item to a PR as an individual action. Instead you have to link the work item when creating the PR, or by using the `updatePullRequest` API.

I've tested with the default (0), a non-existent work item ID, and a real work item ID, and they all work with this implementation.

Fixes #3395
2019-04-15 14:57:54 +02:00
Rhys Arkins
7e8b5497d2 fix(gitFs): disable signing if gitPrivateKey is missing 2019-04-12 12:44:28 +02:00
Rhys Arkins
e9c8367032 fix(gitFs): detect empty when checking latest commit 2019-04-12 10:18:10 +02:00
Rhys Arkins
f8b6eefb3a logs: log latest commit time 2019-04-11 09:35:32 +02:00
Rhys Arkins
672c3c62ca fix(github): warn if PR cannot be updated 2019-04-11 09:20:39 +02:00
Rhys Arkins
468f1ddb4c fix(gitFs): unshift 2019-04-10 20:13:45 +02:00