Commit graph

711 commits

Author SHA1 Message Date
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