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
Rhys Arkins
5a8bcffb68
fix(gitFs): force renovate.json add
2019-04-10 17:12:57 +02:00
Matt Lavin
47e8dd9ac2
feat(bitbucket): Enable bitbucket reviewers ( #3509 )
...
feat(bitbucket): Enable bitbucket reviewers
2019-04-09 15:46:40 +02:00
Rhys Arkins
56ea312970
fix(bitbucket): createPr return number, not id
2019-04-09 14:51:56 +02:00
Nick Oliver
ec16c8b2b8
fix(bitbucket-server): revert encode auth in URL ( #3511 )
...
This reverts commit 3e66e019e4
.
2019-04-09 08:32:05 +02:00
Rhys Arkins
5da2aa7946
feat: gitFs signed commits
...
Document how to sign gitFs commits, remove the disabling of gpg signing.
Closes #3053 , Closes #3472
2019-04-07 18:53:52 +02:00
Nick Oliver
2c3207cf45
fix(bitbucket-server): use endpoint path in repo URL ( #3494 )
...
The path in the endpoint configuration, if present, needs to be used in the URL generated for the git clone.
2019-04-07 08:00:50 +03:00
Rhys Arkins
ca77ce951d
docs: update bitbucket server status
2019-04-06 08:38:48 +02:00
Nick Oliver
dbada62dc0
fix(bitbucket-server): encode auth in URL ( #3493 )
2019-04-06 09:26:10 +03:00
Rhys Arkins
7157d0a149
test: fix lint
2019-03-28 11:16:13 -04:00
Rhys Arkins
110df54e70
fix(bitbucket-server): better massaging of retry checkbox
2019-03-28 11:14:05 -04:00
Jamie Magee
80f8687f3e
feat: azure devops support for labels ( #3396 )
2019-03-28 09:07:29 -04:00
Michael Kriese
8de1b6d1c1
feat(bitbucket-server): add getPrFiles ( #3457 )
2019-03-28 09:04:25 -04:00
Michael Kriese
fbce5f16cf
fix(bitbucket-server): fix comment version ( #3456 )
...
fix(bitbucket-server): fix comment version
2019-03-27 06:48:55 -04:00
Rhys Arkins
c26458f8f4
refactor: throw disable-gitfs error
...
Handle actions/gitfs conflict gracefully
2019-03-21 09:25:14 +01:00
Rhys Arkins
5ca91ee9f6
refactor: warn if github actions / gitfs bug found
2019-03-21 07:19:43 +01:00
Rhys Arkins
07598efa37
fix: move git author logic to global worker and validate ( #3410 )
2019-03-19 17:21:19 +01:00
Rhys Arkins
6eec81fc49
refactor(github): log gitAuthor
2019-03-18 19:15:47 +01:00
Rhys Arkins
75608e9f6d
refactor: simpler gitAuthor log
2019-03-17 21:54:39 +01:00
Rhys Arkins
aac87e26f0
refactor(gitFs): log git author
2019-03-17 18:51:57 +01:00
Rhys Arkins
e3cd9c475b
fix(gitFs): use origin base branch for branches list
2019-03-17 10:30:28 +01:00
Rhys Arkins
0576d4831b
fix(github): don’t throw empty for every fileList 404
2019-03-17 08:17:43 +01:00
Rhys Arkins
61ce454d35
fix(github): limit pagination concurrency to 5
2019-03-17 07:22:18 +01:00
Rhys Arkins
d8614aa785
fix(gitFs): gracefully handle git config failure
2019-03-16 07:55:39 +01:00
Rhys Arkins
c8bc40e0ae
fix(github): catch empty repository in getFileList
2019-03-16 07:10:41 +01:00
Jamie Magee
ec4328e8d6
fix: Azure fetch all PRs, not just open ( #3380 )
...
Requesting PRs without setting status, limits the PRs returned to those that are open only. See https://github.com/Microsoft/azure-devops-node-api/blob/master/api/interfaces/GitInterfaces.ts#L2812-L2833
Fixes #3367
2019-03-13 20:54:33 +01:00
Jamie Magee
9005f30ae3
fix(azure-devops): findPr ( #3366 )
...
Azure DevOps Node API expects search criteria not null or undefined
https://github.com/Microsoft/azure-devops-node-api/blob/master/api/GitApi.ts#L4128-L4130
2019-03-12 20:22:14 +01:00
Rhys Arkins
941169c40f
fix(github): throw if getFileList fails
2019-03-12 20:01:57 +01:00
Rhys Arkins
cb79338984
fix(github): forkMode + gitFs
...
Closes #3355
2019-03-11 23:29:50 +01:00
Florian Greinacher
8bd75923bb
feat(gitlab): try merging PR on creation ( #3308 )
2019-03-11 10:07:54 +01:00
Rhys Arkins
9cd81a0b6d
feat(github): include vulnerability descriptions
2019-03-10 08:40:28 +01:00
Rhys Arkins
eb5ccffdcd
fix: update GitHub vulnerability alerts parsing
...
Closes #3340
2019-03-09 07:16:12 +01:00
Rhys Arkins
37bac1e30c
fix(bitbucket-server): detect empty repos
...
Closes #2831
2019-03-08 11:49:47 +01:00
renovate[bot]
3a7afd768f
chore(deps): update dependency jest to v24 ( #3316 )
2019-03-07 12:38:59 +01:00
Rhys Arkins
524be026a6
fix(gitlab): branch status failed/failure
2019-03-01 10:39:09 +01:00
Michael Kriese
2a6caa9469
fix(bitbucket-server): wrong version number. ( #3264 )
...
fix(bitbucket-server): wrong version number.
2019-02-25 16:03:10 +01:00
Michael Kriese
9fc632da03
fix(bitbucket-server): refresh pr after update /merge /delete. ( #3261 )
2019-02-25 12:27:43 +01:00
Michael Kriese
0e8111a330
feat(bitbucket-server): caching ( #3258 )
2019-02-24 17:07:16 +01:00
Rhys Arkins
b66ed9add0
fix(gitFs): clean before changing branch
2019-02-24 08:39:44 +01:00
Michael Kriese
ccc5473188
fix(bitbucket-server): get only writable repos. ( #3256 )
...
fix(bitbucket-server): get only writable repos.
2019-02-23 11:58:07 +01:00