Rhys Arkins
4c97eef994
feat(gitFs): set default git author ( #3526 )
2019-04-11 12:00:10 +02:00
Jamie Magee
9683265d81
fix(config): init cache early ( #3520 )
...
This allows for presets to be used from `config.js`. If no presets are enabled, then the directory isn't created
2019-04-10 15:43:54 +02:00
Matt Lavin
371076eb6f
fix(onboarding): Do not create onboarding branches when onboarding is disabled ( #3519 )
2019-04-10 15:43:10 +02:00
Matt Lavin
e88c8c02cc
fix: Respect requireConfig setting when onboarding=false ( #3516 )
2019-04-10 07:02:26 +02:00
Rhys Arkins
a599eab231
feat: unify file locations ( #3507 )
...
feat: unify file locations
2019-04-09 17:14:08 +02:00
Rhys Arkins
6015a49494
refactor: branchifyUpgrades key value
2019-04-06 18:00:36 +02:00
Rhys Arkins
8ffd26eb3c
refactor: getCommitMessage
2019-04-06 18:00:35 +02:00
Rhys Arkins
c52ac258e8
refactor: generateBranchConfig -> ifTypesGroup
2019-04-06 18:00:35 +02:00
Rhys Arkins
634c6d9433
refactor: pruneStaleBranches -> cleanUpBranches
2019-04-06 18:00:34 +02:00
Rhys Arkins
05ecddf805
refactor: better unique filter
2019-04-04 18:20:40 +03:00
Rishabh Jain
0038142cc2
fix: renovate not creating PRs for some python dependencies ( #3453 )
2019-04-02 17:26:06 +02:00
Rhys Arkins
1b442538e4
refactor: more logs for PR limits
2019-04-02 15:53:53 +02:00
Rhys Arkins
002db29e58
refactor: move pr config description to separate file
2019-03-26 14:35:55 -04:00
Rishabh Jain
8c17724381
fix: allow rebasing from checkbox out of schedule ( #3437 )
2019-03-24 06:30:07 +01:00
Rhys Arkins
c26458f8f4
refactor: throw disable-gitfs error
...
Handle actions/gitfs conflict gracefully
2019-03-21 09:25:14 +01:00
Rhys Arkins
88b048dfef
fix: check pr exists during pruning log
2019-03-20 16:00:46 +01:00
Rhys Arkins
4379c4c2ac
fix: don’t add autoclosed suffix more than once
2019-03-20 09:28:56 +01:00
Rhys Arkins
9b9604ac16
fix: pass repository-changed up from PR worker
2019-03-20 06:53:05 +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
102a3a5e9e
fix(maven): sort updates to same file from bottom up
2019-03-17 11:04:14 +01:00
Nick Oliver
4b6de0f485
feat(autodiscover): add autodiscoverFilter option ( #3394 )
...
adds a `autodiscoverFilter` option which can be a [minimatch](https://www.npmjs.com/package/minimatch ) glob-style pattern for filtering `autodiscover`ed repositories. Ex: `project/*`
Closes #3341
2019-03-17 06:49:38 +01:00
Rhys Arkins
d8614aa785
fix(gitFs): gracefully handle git config failure
2019-03-16 07:55:39 +01:00
Rhys Arkins
e8509cf9bc
fix: more flexible space check
2019-03-16 07:33:59 +01:00
Rhys Arkins
db6a838add
fix(github): catch/throw branch not found
2019-03-16 07:32:36 +01:00
Rishabh Jain
940d3c4721
feat: add parentDir, baseDir metadata ( #3383 )
2019-03-15 05:36:56 +01:00
Tobias Bieniek
0b08b69c50
docs: onboarding/branch/create dry run typo ( #3374 )
2019-03-13 15:04:22 +01:00
Tobias Bieniek
80b7bc1415
docs: onboarding/branch/rebase dry run typo ( #3375 )
...
It's "onboarding", not "onboaring" 😉
2019-03-13 15:03:56 +01:00
Rhys Arkins
b7f108f2fe
logs: fix lint
2019-03-13 12:51:57 +01:00
Rhys Arkins
76b6259b1c
refactor: revert ensureIssue for config
2019-03-13 12:44:54 +01:00
Rhys Arkins
9b8901650c
fix(onboarding): close config warning issue
2019-03-12 20:05:06 +01:00
Rhys Arkins
5bb6802bab
refactor: rename deepcopy to clone
2019-03-11 23:43:30 +01:00
Rhys Arkins
320c414350
refactor: drop fast-clone
2019-03-11 23:42:22 +01:00
Rhys Arkins
ca66b34aaa
fix(github): handle no firstPatchedVersion
2019-03-11 11:45:41 +01:00
Florian Greinacher
8bd75923bb
feat(gitlab): try merging PR on creation ( #3308 )
2019-03-11 10:07:54 +01:00
Rhys Arkins
9ea64f42da
refactor(github): hardcode vulnerability branchTopic
2019-03-10 08:46:46 +01:00
Rhys Arkins
9cd81a0b6d
feat(github): include vulnerability descriptions
2019-03-10 08:40:28 +01:00
Rhys Arkins
65e5b957e9
fix(github): combine vulnerability alerts
2019-03-10 07:20:44 +01:00
Rhys Arkins
63daf6ef89
refactor: vulnerability manager mapping
2019-03-10 05:20:41 +01:00
Rhys Arkins
eb5ccffdcd
fix: update GitHub vulnerability alerts parsing
...
Closes #3340
2019-03-09 07:16:12 +01:00
Rhys Arkins
936fc76ea1
feat: raise issue for active repos without configs
...
Closes #3336
2019-03-08 18:16:21 +01:00
Rhys Arkins
89d4807c76
fix: use HEAD not master for subDirectory links
2019-03-08 17:23:43 +01:00
Gautier Pelloux-Prayer
12d4436484
fix: do not create onboarding branch on dry run ( #3333 )
...
This fixes the following scenario:
- on boarding branch is created
- on boarding branch is closed (merged or not) - branch is deleted. So renovate is not configured.
- you relaunch renovate with `--dry-run true`. Then it crashes with:
2019-03-08 15:43:33 +01:00
Rhys Arkins
2376ae40e3
fix: tree/master sourceDirectory
...
Closes #3096
2019-03-08 13:41:06 +01:00
Rhys Arkins
d78e6a0486
fix: copy through sourceDirectory
...
Closes #3096
2019-03-08 12:16:42 +01:00
Rhys Arkins
6ede22ab03
fix: lockfile-update => update-lockfile
2019-03-08 08:16:26 +01:00
Rhys Arkins
6417aba868
refactor: deepcopy
2019-03-07 10:56:06 +01:00
Rhys Arkins
f5c1ffb8fd
fix(masterIssue): link to edited PRs
...
Closes #3259
2019-03-07 00:20:22 +01:00
Rhys Arkins
fae041b98d
fix: dockerRepository typo
...
Closes https://github.com/renovatebot/config-help/issues/151
2019-03-06 17:13:02 +01:00
Rhys Arkins
de33fa0194
refactor: not-found is not disabled
2019-03-05 08:00:56 +01:00
Rhys Arkins
5746c53e43
refactor(bundler): warn unknown
2019-03-04 04:52:35 +01:00
Rhys Arkins
69cdf2d186
fix: deepcopy getPkgReleases results
...
Closes #3298
2019-03-03 09:41:18 +01:00
Rhys Arkins
80ca5d89cb
fix: warn only if sourceUrl and toVersion
2019-03-02 22:57:27 +01:00
Rhys Arkins
bec847c379
feat: notify of possible groupings
...
Closes #3281
2019-03-02 10:45:10 +01:00
Rhys Arkins
ea529c6f41
refactor(pr): don’t warn if validation fails
2019-03-01 09:48:38 +01:00
Michael Kriese
03cd834a21
fix(pr): Check more error status values. ( #3276 ) ( #3278 )
...
fix(pr): Check more error status values. (#3276 )
2019-02-27 18:36:24 +01:00
Rhys Arkins
64be18871d
fix: catch disk space error in branch
2019-02-27 09:01:20 +01:00
Rhys Arkins
8288460ae5
fix: never commit on top of existing branch
...
Closes #3123
2019-02-25 07:27:01 +01:00
Rhys Arkins
997bdaee18
fix(pr): don’t escape @ in compare links
...
Closes #3162
2019-02-24 07:56:23 +01:00
Rhys Arkins
36f2e0acd9
fix(lockFileMaintenance): don’t delete conflicted PRs
...
Closes #3018
2019-02-16 11:50:59 +01:00
Rhys Arkins
910ce2076a
fix(pr): rebase checkbox detection when PR edited
...
Closes #3221
2019-02-16 11:41:43 +01:00
Rhys Arkins
67b29f8a2c
fix: copy dockerRegistry and dockerRepository
...
Closes https://github.com/renovatebot/config-help/issues/151
2019-02-14 06:05:08 -05:00
Yuki MIZUNO
123bdd4572
fix: ignore delete label if dry-run ( #3211 )
2019-02-14 04:43:16 -05:00
Rhys Arkins
703fa52d6c
fix: bad-credentials
2019-02-13 16:33:58 -05:00
Rhys Arkins
0dcfbbe1ab
fix(gitFs): catch and throw ssh error
2019-02-13 09:06:51 -05:00
Rhys Arkins
65880e39e0
fix(gitFs): catch and throw bad-credentials
2019-02-13 08:47:37 -05:00
David
c52e749177
fix: correct phrasing for rebase notification ( #3196 )
...
Closes #3185
2019-02-11 10:43:20 +01:00
Rhys Arkins
c711fb4cea
refactor: getArtifacts returns an array
2019-02-09 07:08:15 +01:00
Rhys Arkins
13cc5b5b0e
refactor: rename lock files -> artifacts
2019-02-09 07:08:15 +01:00
Vladimir Starkov
8a841a7c81
feat(bitbucket): Bitbucket Server platform support ( #2774 )
...
Closes #2482
2019-02-07 20:04:23 +01:00
Rhys Arkins
a9332a8db0
feat: replace purl with datasource ( #3154 )
...
This deprecates the (internal) use of package URLs and instead replaces with `datasource`/`lookupName`.
Closes #3005
2019-02-04 09:41:22 +01:00
Rhys Arkins
b5965c6285
fix(gitFs): gracefully handle authentication failure
2019-02-02 02:46:32 +01:00
Gord Lea
3bf4c6d798
fix(ghe): update github release notes to use api endpoint instead of sourceUrl ( #3111 )
...
The code to get a list of releases was not using the RENOVATE_ENDPOINT when the npm modules it was fetching releases for had it's git repository on github enterprise.
Closes #3079
2019-02-01 06:43:15 +01:00
Rhys Arkins
0246f6c201
refactor: getPkgReleases
2019-01-28 06:40:37 +01:00
Rhys Arkins
db4dc1a3ba
fix(bundler): don’t attempt failed lock files generation repeatedly
2019-01-26 15:33:12 +01:00
Rhys Arkins
05ce6de1d3
fix(bundler): catch and warn about missing credentials
2019-01-25 14:51:55 +01:00
Rhys Arkins
9d2e70775b
refactor: better log allowedVersions problems
2019-01-25 09:10:17 +01:00
Rhys Arkins
396fb977c3
fix(allowed-versions): fallback to npm semver range syntax
2019-01-25 08:21:28 +01:00
Rhys Arkins
d2ee36f0c8
fix: Revert "feat(automerge): merge passing branch even if PR exists ( #3097 )"
...
This reverts commit 514d527d7a
.
2019-01-24 07:00:45 +01:00
Rhys Arkins
78d6d52a2e
feat(pr): support displayFrom / displayTo for PR templating
2019-01-24 06:39:23 +01:00
Rhys Arkins
62d92660b2
feat: new 'lockfile-update' rangeStrategy ( #3108 )
...
Adds a new `rangeStrategy` value `lockfile-update'. Enabling this means you will get PRs that contain updates for the versions in your lock file (currently npm and yarn only) even if the range in the `package.json` file hasn't changed because the update is "in range".
Closes #1382
2019-01-24 06:23:08 +01:00
Rhys Arkins
e8a487a90f
refactor: drop mirrorMode
2019-01-23 00:05:56 +01:00
Rhys Arkins
03d0066de2
refactor(config): move autodiscover to global
2019-01-22 20:05:38 +01:00
Ilya Savchuk
514d527d7a
feat(automerge): merge passing branch even if PR exists ( #3097 )
...
Automerge branch even if PR has previously been raised, so long as only one commit exists. This handles the case where an initial update e.g. v1.0.1 fails, causing PR to be raised, but then a v1.0.2 is published which fixes the failure.
Closes #1381
2019-01-22 10:27:14 +01:00
Ilya Savchuk
f6ed2256f7
refactor: changed all VSTS to Azure DevOps ( #3022 )
...
Rename all VSTS references to be Azure DevOps.
Closes #2810
BREAKING CHANGE: 'vsts' platform is now renamed to 'azure'
2019-01-22 09:41:06 +01:00
Rhys Arkins
869225d0df
feat(npm): use repository directory from listing
...
Closes #3096
2019-01-22 07:37:51 +01:00
Rhys Arkins
e578bfff43
fix(automerge): check branch status again before automerge
...
Catches an edge case where a PR is configured for automerge and a new update comes right before automerge. If branch protection wasn’t configured, Renovate was using a “stale” branch status to think it’s OK to merge. Added an additional check before automerging that should catch it.
Fixes #3099
2019-01-22 06:42:08 +01:00
Rhys Arkins
33b3308df6
refactor: log purl if lookup fails
2019-01-21 16:48:10 +01:00
Rhys Arkins
78f0803c76
fix: consider depType when deduplicating updates
2019-01-14 14:55:57 +01:00
Rhys Arkins
ba77d4a0e7
feat(bundler): extract, update, artifacts ( #3058 )
...
This completes the work of adding basic Ruby/Bundler support to Renovate. It will now find all Gemfiles in a repository, extract dependencies from them, look up results on Rubygems, and raise PRs if updates are found.
Closes #932
2019-01-14 06:52:13 +01:00
Rhys Arkins
bd1785558a
refactor: appSlug for rebase
2019-01-10 12:40:56 +01:00
Jan Sauer
1fb755c89c
feat: gradle-wrapper ( #3038 )
...
Adds support for updating the gradle version used in a project via the gradle-wrapper.
See https://docs.gradle.org/current/userguide/gradle_wrapper.html
2019-01-09 12:50:53 +01:00
Rhys Arkins
b4cc7f4d0b
fix: unpublishSafe docs url
2019-01-08 05:44:56 +01:00
Rhys Arkins
55257fff26
feat: centralise app strings ( #3032 )
2019-01-06 14:47:42 +01:00
Rhys Arkins
e19294e894
feat: centralise config file list ( #3031 )
2019-01-06 06:03:26 +01:00
Rhys Arkins
4b38793471
refactor: trustLevel
2019-01-05 09:16:32 +01:00
Rhys Arkins
67e3825f42
refactor: renovateFork -> includeForks
2018-12-31 07:46:00 +02:00
Rhys Arkins
5b43931aab
fix(gitFs): use sha for non-master branches
2018-12-23 08:46:09 +02:00
Rhys Arkins
08b7752027
feat(github): ensure issue once
2018-12-19 06:05:43 +01:00
Rhys Arkins
4356d4c7d5
fix: recreateClosed if grouping multiple digests
...
Closes #2974
2018-12-18 22:22:19 +01:00
Rhys Arkins
861cce0123
feat: detect/print renovate version
2018-12-17 12:43:15 +01:00
Rhys Arkins
6ef61c8608
Revert "feat: ensureIssue once"
...
This reverts commit 3988fb808a
.
2018-12-16 17:18:00 +01:00
Rhys Arkins
b9fedce3a0
tests: prettier
2018-12-14 22:14:39 +01:00
Rhys Arkins
6e43913fec
chore: roll back prettier
2018-12-14 21:47:34 +01:00
Rhys Arkins
6785cd54bd
refactor: update deprecation message to allow closing
2018-12-14 12:09:13 +01:00
Rhys Arkins
3988fb808a
feat: ensureIssue once
...
Closes #2936
2018-12-14 11:47:52 +01:00
Rhys Arkins
f3c339b2d6
fix: check packageFiles before length
2018-12-12 11:26:43 +01:00
Rhys Arkins
01ed8362db
refactor: managers->enabledManagers
2018-12-11 12:30:23 +01:00
rtaum
3b74108e6c
feat: suppressNotifications onboardingClose ( #2934 )
2018-12-11 07:22:07 +01:00
Rhys Arkins
a69376ab46
feat: printConfig
...
Adds an option to print the full, resolved config for a repo at INFO level. e.g.
renovate —print-config owner/repo
Closes https://github.com/renovatebot/config-help/issues/128
2018-12-10 08:53:55 +01:00
Rhys Arkins
772bc17603
refactor: repositoryUrl -> sourceUrl
2018-12-10 05:59:28 +01:00
Rhys Arkins
e190851f8e
feat(docker): use whole tag as currentValue ( #2922 )
2018-12-10 04:26:14 +01:00
Rhys Arkins
816bddf9be
refactor(changelog): cacheKey from manager/depName
2018-12-10 04:08:53 +01:00
Rhys Arkins
245e831974
tests: fix lint
2018-12-09 22:54:09 +01:00
Rhys Arkins
255ec8779c
feat(changelog): match against compound tags
2018-12-09 22:15:44 +01:00
Rhys Arkins
42eb19bb91
fix(deprecation): reset list for each manager
2018-12-09 13:51:50 +01:00
Rhys Arkins
32e2140886
fix(deprecations): do not raise warnings for onboarding repos
2018-12-09 13:12:10 +01:00
Rhys Arkins
c742ac02ee
refactor(deprecations): add info on how to disable
2018-12-09 13:11:41 +01:00
rtaum
90af9fc3ab
feat: refactor raiseDeprecationWarnings into suppressNotifications ( #2921 )
2018-12-09 11:39:35 +01:00
Rhys Arkins
0f57f9a69a
fix(onboarding): defensive warnings check
2018-12-09 10:42:38 +01:00
Rhys Arkins
48ceb5d98e
prettier
2018-12-08 16:47:26 +01:00
Rhys Arkins
6b12fc4ea4
refactor(versioning): use get function
2018-12-08 16:46:13 +01:00
rtaum
2146bafdbd
feat: suppressNotifications ( #2906 )
...
Adds ability so suppress certain notifications/warnings/comments.
Closes #2794
2018-12-08 12:42:56 +01:00
Rhys Arkins
7ad110da7f
fix: PR handle integration-unauthorized
2018-12-06 10:31:08 +01:00
Rhys Arkins
385c0531b8
feat(onboarding): warning about unresolvable dependencies
...
Closes #2303
2018-12-05 13:19:27 +01:00
Rhys Arkins
8f7a9e65f8
fix: escape master issue validation messages
...
Prevents auto @‘ing
Closes #2870
2018-12-05 09:04:27 +01:00
Rhys Arkins
6ba13f9132
feat(pr): support rebasing checkbox
...
Adds a “rebase this PR” checkbox for github and gitlab. Suppressed for Bitbucket and VSTS because not currently supported.
Closes #2766
2018-12-05 07:22:38 +01:00
Rhys Arkins
0d6a1308e2
fix: ignore white space when comparing PR bodies
...
Closes #2769
2018-12-05 05:58:02 +01:00
Rhys Arkins
9e9b47f7d9
chore: prettier
2018-12-03 12:04:52 +01:00
Rhys Arkins
8f796eaf95
fix(github): gracefully handle repository-changed in PR
2018-12-03 12:04:04 +01:00
Rhys Arkins
fd6398ef69
fix(github): gracefully handle integration unauthorized
2018-12-03 12:03:46 +01:00
Rhys Arkins
8c79536101
feat(config): allow .github/renovate.json
2018-11-22 16:06:02 +01:00
Rhys Arkins
db0efdf053
feat: trustLevel
...
New config option replaces existing option exposeEnv. Set trustLevel=high in the bot config if you trust the contents of the repositories you are renovating. Doing so results in env being exposed, access to localhost, etc.
Closes #2739
2018-11-16 12:16:37 +01:00
Rhys Arkins
e4a73c2320
fix(github): detect status checks automerge failure
...
.. and don’t create PRs.
Closes #2786
2018-11-11 07:09:39 +01:00
Rhys Arkins
3300b5a51a
fix(pr): don’t log automerged unless true
2018-11-09 22:11:26 +01:00
Rhys Arkins
091514288a
fix(changelog): handle multi-package different-versions in same repo
...
Closes #2752
2018-11-07 13:54:43 +01:00
Ayoub Kaanich
33781c4d39
feat(docker): better versioning redo
2018-11-05 12:14:04 +01:00
Rhys Arkins
71b8fb0e72
fix: Revert "feat: better docker versioning ( #2742 )"
...
This reverts commit ea8bcbc9b2
.
2018-11-05 11:35:06 +01:00
Ayoub Kaanich
ea8bcbc9b2
feat: better docker versioning ( #2742 )
...
Rewrite docker versioning to support versions of any size.
Closes #2357 , Closes #2358
2018-11-05 09:32:34 +01:00
Rhys Arkins
9292833ecf
refactor: extractAllFiles ( #2741 )
2018-11-05 07:47:44 +01:00
Rhys Arkins
44d119823f
refactor: rename extractDependencies -> extractPackageFile
2018-11-04 18:51:23 +01:00
Rhys Arkins
7603fda78e
logs: log masterIssue events
2018-11-02 06:53:17 +01:00
Ayoub Kaanich
2622046147
feat: Add master issue link to closed PRs ( #2730 )
...
Closes #2665
2018-11-02 06:23:45 +01:00
Rhys Arkins
5db39b4ed8
fix(github): catch/ignore if required status checks not met yet
2018-10-30 08:35:22 +01:00
Rhys Arkins
f7bc39efe8
fix(github): don’t keep processing resource not accessible
2018-10-30 07:40:09 +01:00
FidoX
be65176dc4
feat: gradle support ( #2610 )
...
Closes #934
2018-10-29 17:32:31 +01:00
Rhys Arkins
6c8e796cb1
fix(github): skip branch status checks if pr.canMerge=true
2018-10-29 06:32:20 +01:00
Rhys Arkins
7304153129
fix: await platform.mergePr
2018-10-29 06:16:17 +01:00
Rhys Arkins
4f7d4fbeae
logs: deprecationMessage
2018-10-29 05:53:00 +01:00
Rhys Arkins
7fdef1d683
fix: dry run deprecation issues
2018-10-29 05:52:45 +01:00
Rhys Arkins
05fa91e9cd
feat: dry run
...
Adds support to run Renovate like “renovate owner/repo —dry-run”. Instead of creating branches, PRs or comments, an INFO level dry run message will be logged each time instead.
Closes #1399
2018-10-26 09:48:49 +02:00
Rhys Arkins
a3d1ae7d3e
fix(changelog): remove trailing slash in changelog url
...
This seems to fix #2219 . It wasn’t RST.
2018-10-25 19:31:02 +02:00
Rhys Arkins
727dccfecd
fix(onboarding): don’t update modified title
2018-10-25 13:45:08 +02:00
Rhys Arkins
9c0135cf0d
fix: typo in digest newValue
...
Closes #2674
2018-10-22 10:50:58 +02:00
Rhys Arkins
62bcf35076
fix: await platform.ensureComment
2018-10-19 07:28:57 +02:00
Rhys Arkins
f82f26197c
fix: skip null current values
2018-10-19 07:09:31 +02:00
Rhys Arkins
e9053fbe4a
fix: abort rollback if null toVersion
2018-10-19 06:57:21 +02:00
Rhys Arkins
46dfc5eb1d
feat(schedule): massage “every month” and “monthly”
2018-10-18 15:58:15 +02:00
Rhys Arkins
aafe3a3432
chore: don’t warn on rollbacks
2018-10-18 11:30:56 +02:00
Rhys Arkins
81d64bb884
feat: repo mem cache for packagist
2018-10-18 11:06:57 +02:00
Rhys Arkins
e23ab0ea07
refactor: don’t warn for prune failure repository-changed
2018-10-18 06:10:19 +02:00
Rhys Arkins
6a48c03b3d
fix: massage empty renovate config to {} ( #2663 )
2018-10-17 12:19:34 +02:00
Rhys Arkins
a64507ac52
fix: properly await all repository cleanups
2018-10-17 12:19:02 +02:00
Rhys Arkins
5533d371c5
refactor: delete gitPrivateKey after setting
2018-10-17 06:48:07 +02:00
Rhys Arkins
f71ee0ef9f
refactor: lower debugging
2018-10-17 06:04:39 +02:00
Rhys Arkins
4eaf3f8266
fix: better catch pr validation errors
2018-10-16 21:02:16 +02:00
Gord Lea
d776ec788a
fix(GHE): Escape leading @ in pr body table ( #2657 )
...
This prevents github from parsing package names as a team mention.
Closes #2656
2018-10-16 07:01:54 +02:00
Rhys Arkins
aabb486129
fix(hostRules): allow to be set in config
2018-10-15 13:35:55 +02:00
Rhys Arkins
50ba8473f7
refactor: lower debug logging
2018-10-15 09:21:57 +02:00
Rhys Arkins
4d617b7894
fix: improve footer wording
...
Closes #2651
2018-10-15 06:55:38 +02:00
Rhys Arkins
20e3783a1d
refactor: lower error to warn for branch update failure
2018-10-09 20:03:37 +02:00
Rhys Arkins
00346aba2e
fix(master issue): check branch.res first
2018-10-08 12:53:49 +02:00
Rhys Arkins
648f3575ce
fix(digest): don’t filter different digests as dupes
2018-10-08 12:08:22 +02:00
Rhys Arkins
084fc4536c
fix(docker): fix commit message/pr title for digest groups
...
Fixes #2613
2018-10-08 11:50:17 +02:00
Rhys Arkins
2cabefef83
fix(github): gracefully handle fork error
2018-10-08 10:42:17 +02:00
Rhys Arkins
c0e8e51b5e
fix(lookup): improve digest comparison
2018-10-05 15:49:24 +02:00
Rhys Arkins
3092c17ee2
fix(lookup): don’t return early if digests supported
2018-10-05 15:27:49 +02:00
Rhys Arkins
bdf1227bc0
fix: better group commit extra detection
2018-10-05 14:04:21 +02:00
Rhys Arkins
ad605423b3
refactor: newValue => toVersions
2018-10-05 13:48:32 +02:00
Rhys Arkins
2dad7bbcd1
logs: debug versions lookup failure
2018-10-05 12:58:18 +02:00
Rhys Arkins
69cf9d309f
feat(schedule): default to “at any time”
...
Closes #2601
2018-10-05 10:50:21 +02:00
Rhys Arkins
77997770f1
fix(schedule): don’t massage null value
2018-10-05 10:03:30 +02:00
Rhys Arkins
4ec79bb018
fix: better detect common toVersion when grouping
...
Closes #2600
2018-10-05 06:39:53 +02:00
Rhys Arkins
68f33875be
fix: edited PRs should not be “Open” in master list
2018-10-04 13:54:28 +02:00
Rhys Arkins
eec2072a24
fix: reorder master issue approval check
2018-10-04 11:22:31 +02:00
Rhys Arkins
ec434aebc7
fix: unique packages in master issue
2018-10-04 10:38:16 +02:00
Rhys Arkins
95d01e7ab1
feat: master issue
...
Adds undocumented/experimental “master issue” feature.
Setting `config.masterIssue = true` will result in Renovate opening and maintaining an issue that contains a list of all PRs both pending and open, and allowing some control over them (e.g. bypass schedule, force retry, etc).
Setting `config.masterIssueApproval` in addition will mean that branches are not created automatically and instead await approval in that master issue.
Closes #2595
2018-10-04 10:08:20 +02:00
Rhys Arkins
52dc25f598
fix: drop unmet-requirements
2018-10-03 16:07:15 +02:00
Rhys Arkins
e7e48ccc8c
fix: don’t skip branch if branchPr found
2018-10-03 16:06:44 +02:00
Rhys Arkins
b0f8bd228a
refactor: move rate limit check
2018-10-03 16:00:58 +02:00
Rhys Arkins
1f128bbcc2
refactor: processBranch function interface
2018-10-03 15:57:01 +02:00
Rhys Arkins
b33a4014e7
chore: log managers
2018-10-02 14:53:22 +02:00
Rhys Arkins
8597f16ba9
fix(golang): skip digest updates if real versions exists
2018-10-02 14:20:24 +02:00
Rhys Arkins
99df4f0f31
feat(golang): digest updates
...
Adds support to update dependencies that have pseudo-versions like v0.0.0-20140422174119-9fd32a8b3d3d.
2018-10-02 10:34:37 +02:00
Rhys Arkins
b7f1002774
feat(composer): pass lock file errors to PR comment
...
Instead of aborting PR when lock file errors happen, raise the PR with PR comment instead (like with npm/yarn).
2018-10-01 18:15:06 +02:00
Rhys Arkins
281507e421
refactor: getArtifacts return nested object
2018-10-01 16:29:50 +02:00
Rhys Arkins
80eaf9d89b
fix(composer): skip PR if unmet requirements
...
Closes #2587
2018-10-01 15:59:07 +02:00
Rhys Arkins
a49a58c5f0
refactor: getLockFile -> getArtifacts
2018-09-30 10:10:42 +02:00
Rhys Arkins
56eb334789
fix(branchName): replace all forward slashes
2018-09-30 07:40:32 +02:00
Rhys Arkins
bb1a06e22c
fix(pr): escape double v in release notes
2018-09-30 07:40:13 +02:00
Rhys Arkins
94123c0b04
fix(onboarding): add line break
2018-09-30 07:39:09 +02:00
renovate[bot]
9bf339a24b
build(deps): update dependency @sindresorhus/is to v0.12.0 ( #2570 )
2018-09-28 15:20:46 +02:00
Rhys Arkins
5b73be2f31
fix: title rebase even if PR edited
2018-09-27 16:22:27 +02:00
Rhys Arkins
2555339552
feat: rebase using PR title
...
If PR title starts with “rebase!” then PR will be rebased.
2018-09-27 15:34:13 +02:00
Rhys Arkins
d99afc36bb
fix: calculate patch from from/to version
...
not current/new value
2018-09-27 15:00:44 +02:00
Rhys Arkins
29115ba38c
fix: bump patch only if explicitly separating
...
Bump updates should only be separated into “patch” if users explicitly separate patch and minor.
Closes https://github.com/renovatebot/presets/issues/85
2018-09-27 14:57:28 +02:00
Rhys Arkins
5956adf8bc
fix(pr): improve rebase instructions
2018-09-27 14:32:45 +02:00
Rhys Arkins
0e2947aa3f
fix(followTag): jump unstable
...
Fixes #2561
2018-09-26 15:52:06 +02:00
Rhys Arkins
8c27d6fb23
tests: drop fatal test and ignore
2018-09-25 12:30:44 +02:00
Rhys Arkins
e4db4a4a35
fix(github): handle ‘empty’ repository properly
2018-09-25 08:50:47 +02:00
Rhys Arkins
d6e7fe6477
fix(pr): correct minor -> patch
2018-09-24 22:19:33 +02:00
Rhys Arkins
2aa9c3c83d
fix: try/catch branch prune
2018-09-24 21:22:34 +02:00
Rhys Arkins
ffc04a0203
fix(github): catch 409 empty
2018-09-24 20:02:57 +02:00
Rhys Arkins
af0a112585
chore: instalbul -> istanbul
2018-09-24 20:02:46 +02:00
Rhys Arkins
8f6c239383
fix(npm): ignore react-native changelog
2018-09-24 16:02:18 +02:00
Rhys Arkins
08cf55e81f
logs: branch/branchName
2018-09-24 11:47:49 +02:00
Rhys Arkins
9d46ca6dbd
refactor: lower log levels
2018-09-23 07:26:06 +02:00
Rhys Arkins
56245cf872
refactor: fatal err
2018-09-23 06:44:18 +02:00
Rhys Arkins
e3116ee380
refactor: escape only release notes in pr body
2018-09-23 06:08:21 +02:00
Rhys Arkins
8a6e5fddfa
fix: Revert "refactor(changelog): use markdown not html"
...
This reverts commit 0340f42d84
.
2018-09-22 18:41:32 +02:00
Rhys Arkins
0340f42d84
refactor(changelog): use markdown not html
...
Closes #2553
2018-09-22 17:49:56 +02:00
Rhys Arkins
bdd1df27a3
chore: drop commits/hasCommits legacy
2018-09-21 19:44:12 +02:00
Rhys Arkins
3e4d2b7846
refactor: 3 length table header separator
2018-09-21 11:48:06 +02:00
Rhys Arkins
66a4aa40d8
feat: custom PR body notes ( #2545 )
...
Adds field “prBodyNotes” to allow customisable content in PR body.
Closes #1802
2018-09-21 11:36:07 +02:00
Rhys Arkins
10f7654ef8
refactor: register encodeURIComponent helper
2018-09-21 10:49:25 +02:00
Rhys Arkins
44020034cb
refactor: better pr body log levels
2018-09-21 10:38:02 +02:00
Rhys Arkins
dcec25c291
feat: customisable PR tables ( #2544 )
...
Adds ability to both redefine column definitions in PRs as well as add or remove columns.
2018-09-21 09:46:51 +02:00
Rhys Arkins
29251352e8
feat: common prBody across all types ( #2542 )
...
Closes #442
2018-09-21 05:43:51 +02:00
Rhys Arkins
72327f06a0
fix: allow rebase label after PR editing
2018-09-20 16:10:14 +02:00
Rhys Arkins
27890381aa
refactor(pr): better PR edited comment
2018-09-20 14:51:58 +02:00
Rhys Arkins
fc9037a270
logs: correct depName/dependency
2018-09-20 12:13:18 +02:00
Klaus Meinhardt
e9e71f4c1d
feat: followTag ( #2538 )
...
If `followTag` is defined for a package, then Renovate will ignore all other available versions and instead stick strictly to whatever version is defined for the tag. npm-only for now.
Closes #2258
2018-09-19 09:59:33 +02:00
Rhys Arkins
d625d1bfb0
fix: don’t create PR out of schedule
...
Closes #2536
2018-09-19 07:07:04 +02:00
Rhys Arkins
4b3c2d23ac
feat: combine tmp storage ( #2533 )
...
Renovate will now put all its data in `path.join(os.tmpdir(), '/renovate’);` and will instruct npm and yarn to do the same. To force Renovate to use a specific folder, set `process.env.TMPDIR` when running. The previous variable `RENOVATE_TMPDIR` is now deprecated and will be rewritten to TMPDIR.
Closes #1794
2018-09-18 05:26:09 +02:00
Rhys Arkins
7599fc8380
fix: ensure directories exist
2018-09-17 15:08:45 +02:00
Rhys Arkins
1d39525749
fix: better digest skip detection
2018-09-17 14:35:44 +02:00
Rhys Arkins
968d166ae5
logs: log localDir
2018-09-17 14:28:58 +02:00
Rhys Arkins
855ed50033
fix(changelog): use resolved filename
...
Closes #2529
2018-09-17 11:53:02 +02:00
Rhys Arkins
839eeaaebd
fix: add pr existing check for lock file maintenance
2018-09-17 11:27:18 +02:00
Rhys Arkins
0498015f65
refactor(docker): use 7 char short digests
2018-09-16 06:11:12 +02:00
Rhys Arkins
788d96e5e9
refactor: rename isUnmergeable to isConflicted
2018-09-14 20:02:51 +02:00
Rhys Arkins
1e48508079
fix(onboarding): correct merge conflict detection
...
Use isUnmergeable and not canMerge
Closes #2524
2018-09-14 19:52:04 +02:00
Rhys Arkins
b817db10a3
feat: rebase on demand ( #2522 )
...
Adds functionality to force rebase a PR if the label "rebase" is added. Also, the label is configurable via a new `rebaseLabel` config option.
Closes #1406
2018-09-14 12:51:33 +02:00
Rhys Arkins
58d5483e7b
feat: changelogUrl
...
Allows static configuration of custom changelog URLs per npm package, which will then be displayed in PR bodies.
Closes #2520
2018-09-14 06:55:38 +02:00
Rhys Arkins
d19b15b83d
fix: don’t update lock file maintenance or create PR out of schedule
...
Do no lock file maintenance work even if branch exists.
Closes #2503
2018-09-13 09:08:25 +02:00
Rhys Arkins
a038177c6f
fix: use full URL for changelog retrieval
...
This should fix the problem with fetching changelogs when using GHE.
2018-09-12 19:27:20 +02:00
Rhys Arkins
f8cf83380f
refactor: endpoints -> hostRules ( #2509 )
...
Renames `endpoints` to `hostRules`
2018-09-12 12:16:17 +02:00
Rhys Arkins
ca72f49c3e
refactor: move env deletion into env parsing
2018-09-12 06:51:55 +02:00
Rhys Arkins
dda0bade29
refactor: use single localDir per repo ( #2505 )
2018-09-12 06:30:01 +02:00
Rhys Arkins
f3c8534e6c
logs: improve github log levels
2018-09-11 09:15:24 +02:00
Rhys Arkins
2ce75cdbf1
refactor(composer): reuse localDir for lockfile generation
2018-09-10 15:58:24 +02:00
Rhys Arkins
1d5de52610
refactor: gitlab pro footer
2018-09-09 07:38:12 +02:00
Rhys Arkins
ccffdaf712
fix: throw error up if no disk space
2018-09-08 07:16:05 +02:00
Rhys Arkins
81818195b7
refactor: separate lockFileMaintenance per-package file
...
Closes #2464
2018-09-07 09:26:43 +02:00
Rhys Arkins
74b34cda93
chore: move updateTypes def
2018-09-07 08:44:58 +02:00
Rhys Arkins
e5e303f46f
logs: fix branches debug
2018-09-07 08:44:20 +02:00
Rhys Arkins
88c6a48b2a
logs: less debug
2018-09-05 15:04:18 +02:00
Rhys Arkins
2e78f515d1
logs: lower debug
2018-09-05 14:45:52 +02:00
Rhys Arkins
4539487d26
refactor: less logging
2018-09-05 14:18:31 +02:00
Rhys Arkins
8e81a647a2
refactor: lazy load branch status to reduce requests
2018-09-05 10:52:00 +02:00
Rhys Arkins
80463651ca
feat: logger err serializer
...
Include body, message and stack with every error if present
2018-09-05 10:32:53 +02:00
Rhys Arkins
4a0b3cf83e
fix: move cleanRepo to finally
2018-09-05 06:31:25 +02:00
Rhys Arkins
ef70c48d4b
fix: sort dependencies by name in PRs
...
Remove randomness
2018-09-04 06:30:47 +02:00
Rhys Arkins
28902d78eb
refactor: increase release notes caching to 55 min
2018-09-03 22:54:20 +02:00
Rhys Arkins
167049502a
fix: don’t look up release notes compare URLs by date
2018-09-03 22:39:35 +02:00
Rhys Arkins
5e38150154
fix: skip changelog lookup for @types
...
There’s never anything there
2018-09-03 22:20:01 +02:00
Rhys Arkins
df8bebe10d
refactor: log pr body change only if branch didn’t change
2018-09-03 21:29:23 +02:00
Rhys Arkins
bdaff7b64d
refactor: fix oldPrBody log
2018-09-03 21:23:09 +02:00
Rhys Arkins
358070cb15
fix: releases cache on prev and next
2018-09-03 17:09:10 +02:00
Rhys Arkins
1f7b25e51c
fix: cache changelog on from/to
2018-09-03 16:19:02 +02:00
Rhys Arkins
0d767c598d
fix(cache): lazy fetch tags for changelog
2018-09-03 15:36:04 +02:00
Rhys Arkins
af54869555
chore: rename changelog params->args
2018-09-03 15:35:41 +02:00
Rhys Arkins
4d48ba1395
refactor: cache changelog per-release
...
Closes #2473
2018-09-03 10:25:30 +02:00
Rhys Arkins
737485f69b
refactor: cache default 5 minutes
2018-09-03 09:59:27 +02:00
Rhys Arkins
933672fd01
refactor: simplify changelog cache key
2018-09-03 09:19:48 +02:00
Rhys Arkins
7c3b6f1054
refactor: add release notes in one place
2018-09-03 09:17:11 +02:00
Rhys Arkins
934adfdffe
refactor: move release notes into changelog
2018-09-03 08:39:30 +02:00
Rhys Arkins
35b2ce8b42
feat: centralised cache ( #2472 )
...
Closes #2466
2018-09-03 07:27:22 +02:00
Rhys Arkins
61466b7114
fix: remove prBody double compile
2018-09-02 19:18:44 +02:00
Rhys Arkins
14b397a698
fix: double handlebars compile prBody
2018-09-02 18:17:36 +02:00
Rhys Arkins
0e0d050884
refactor: include releases only if there’s an update
2018-08-29 11:13:45 +02:00
Rhys Arkins
4bd8ab5061
logs: reduce release notes logging
2018-08-29 11:13:24 +02:00
Vladimir Starkov
608d8c5be0
feat: Bitbucket Cloud support
...
Adds platform support for Bitbucket cloud.
Closes #136 , Closes #2238
2018-08-29 07:30:23 +02:00
Rhys Arkins
265f796ea6
fix: remove excess newlines from pr body
2018-08-27 13:56:53 +02:00
Rhys Arkins
d6f473db17
fix: remove unnecessary @ escaping
2018-08-27 13:51:44 +02:00
Rhys Arkins
5fb9d77bba
feat: separate groups into major/minor/patch ( #2426 )
...
Previously if grouping, all major/minor updates within that group were combined into one. Instead, we now honour the “separateMajorMinor”, "separateMinorPatch", and "separateMultipleMajor" settings and keep the groups separate if necessary.
For maximum compatibility with existing PRs, we name branches like `renovate/group-name` whenever possible and only name them like `renovate/major-group-name` or `renovate/patch-group-name` if major or patch are found.
Closes #2425
2018-08-27 06:25:17 +02:00
Rhys Arkins
154ff9e800
fix(logs): move autoclose log
2018-08-23 21:20:45 +02:00
Rhys Arkins
a9758dc77e
refactor(logs): autoclosed
2018-08-23 20:37:52 +02:00
Rhys Arkins
6b6d1bf859
refactor(logs): return logs to app layer
2018-08-23 20:35:25 +02:00
Rhys Arkins
bd5d7eedb8
refactor(logs): rename autoclose log
2018-08-23 20:16:12 +02:00
Rhys Arkins
1be6c9f713
refactor(logs): adjust log levels for branch and pr events
2018-08-23 20:11:38 +02:00
Rhys Arkins
b5f2a8940d
refactor: hasUrls
2018-08-16 18:35:16 +02:00
Rhys Arkins
516f60a2cf
refactor: save dep homepage
2018-08-16 18:35:01 +02:00
Maximilian Gaß
7a1418ad6f
fix(docker): exclude calico/node from being marked as Node.js ( #2397 )
...
fix(docker): exclude calico/node from being marked as Node.js
2018-08-16 15:46:19 +02:00
Rhys Arkins
bc074aff02
fix: check PR is closed when finding blocking PR
...
Closes #2391
2018-08-16 12:15:56 +02:00
Rhys Arkins
19116fc6ed
refactor: remove legacy closed PR check
2018-08-16 12:04:44 +02:00
Rhys Arkins
d2885e5d9e
fix: do not jump unstable versions implicitly
...
If the current value is already unstable then we presume the user is happy to take newer unstable versions. However we should not presume that they want to keep jumping versions if so and instead would prefer to stabilise.
Discussed in #2258 but does not close it
2018-08-15 09:40:10 +02:00
Rhys Arkins
103d8fbf68
feat: prettyDepType ( #2376 )
...
Adds field prettyDepType available for templates, currently used for npm only. Allows for PR titles like “Update devDependency left-pad to v1.3.0” instead of default “Update dependency left-pad to v1.3.0”.
To enable in PR titles: add this configuration: `"commitMessageTopic": "{{prettyDepType}} {{depName}}”`
This is not enabled by default as otherwise it could lead to the reopening of previously manually-closed PRs.
Closes #2371 , Closes #1863
2018-08-11 11:24:38 +02:00
Maximilian Gaß
15ee7ab4ae
fix: pinning digest of latest version ( #2359 )
...
If the dependency already is the latest version, filteredVersions is
empty here, and then the early exit skips over the pinning code
2018-08-11 10:03:57 +02:00
Rhys Arkins
a30972f6f6
refactor: info not warn when no fixedIn alert
2018-07-31 07:21:25 +02:00
Rhys Arkins
31f2f4c610
refactor: rename getDependency to getPkgReleases
2018-07-29 16:04:00 +02:00
Rhys Arkins
1da53671b8
feat: vulnerabilityAlertsOnly
...
For use in new app
2018-07-29 09:03:54 +02:00
Rhys Arkins
ac371e2a37
feat(github): vulnerability alerts ( #2321 )
...
Adds rules to skip any configured grouping or schedules that prevent insecure packages from being updated immediately.
If GitHub's vulnerability alerts are detected, package rules are added to force empty schedule and grouping for each affected package. Settings are configurable via new `vulnerabilityAlerts` config object, e.g. so that custom PR titles, labels or assignees can be configured.
Closes #1567
2018-07-29 06:35:25 +02:00
Rhys Arkins
0fa593d5ab
feat: log github vulnerability alerts
2018-07-28 08:47:49 +02:00
Rhys Arkins
fa7b3b5643
fix: pass platform-failure errors up from ensure pr
2018-07-26 21:13:56 +02:00
Rhys Arkins
eaf73394d8
feat: linkify changelog/release notes
...
Adds the library `linkify-markdown` to actively linkify urls, issues and usernames so that they can then be linked to the renovatebot redirector for github.
2018-07-26 17:13:01 +02:00
Rhys Arkins
9555b27d9e
fix(lookup): use major/minor/patch updateType instead of bump
...
Helps https://github.com/renovatebot/config-help/issues/67 and https://github.com/renovatebot/config-help/issues/70#issuecomment-407595535
2018-07-25 08:58:17 +02:00
Rhys Arkins
8c41640c87
fix: pass platform errors up
2018-07-23 16:47:37 +02:00
Rhys Arkins
9064e0af62
fix(baseBranches): apply special branch and PR naming only when multiple
...
baseBranch will be applied in PR title and in branch name only if there are more than one.
Closes #2306
2018-07-23 16:40:30 +02:00
Rhys Arkins
dcd90827a1
refactor(onboarding): don’t @ me
2018-07-23 11:27:14 +02:00
Rhys Arkins
1ada8b7913
feat: improved onboarding description
...
Adds description if onboarding PR is edited or conflicted. Removes config description if PR has been edited. Adds description of PR rate limiting.
Closes #1317 , Closes #1684 , Closes #1359
2018-07-23 11:11:27 +02:00
Rhys Arkins
bd249c8a86
refactor(onboarding): simplify update text
...
De-dupplicates text in the onboarding PR and makes it closer to what the theoretical commit message would be.
Closes #1315 , Closes #2211
2018-07-22 22:38:59 +02:00
Rhys Arkins
945353376b
feat(onboarding): use <details><summary>
...
Closes #2304
2018-07-22 22:26:45 +02:00
Rhys Arkins
adf5b0d13a
fix(onboarding): use platform getPrBody
2018-07-22 22:05:53 +02:00
Rhys Arkins
30334c2722
refactor(onboarding): consistent header depth
2018-07-22 22:05:39 +02:00
Rhys Arkins
6f868c83f2
refactor(lookup): return warnings object
2018-07-22 11:43:47 +02:00
Rhys Arkins
11d85f1ad5
fix(pr): remove double vv versions from pr body
...
Fixes #2283 , Fixes #2119
2018-07-22 10:26:00 +02:00
Rhys Arkins
fa6e23f414
fix: deduplicate file matches
...
Closes #2299
2018-07-22 09:37:10 +02:00
Rhys Arkins
efa5edbdf3
fix(onboarding): delete onboarding PR branch if pr not found
2018-07-22 09:07:31 +02:00
Rhys Arkins
bb28ae27a2
fix: check for valid fromVersion before pinning
2018-07-22 08:05:21 +02:00
Rhys Arkins
981d5a1cce
feat: set prBody formatting per-platform
...
Pushes “getPrBody” logic into platform level to allow platforms to individually do things like text replacements and body length limiting.
Closes #2267
2018-07-22 07:47:23 +02:00
Rhys Arkins
14cbd68d42
feat: rollbackPrs
...
Adds new config option `rollbackPrs` which defaults to `true` (current behaviour). Setting to false will disable creation of rollback PRs - configurable globally, per-language, per-package, etc.
2018-07-22 06:49:04 +02:00
Rhys Arkins
cffef4f1b4
logs: debug rollback versions, not info
2018-07-22 06:32:17 +02:00
Rhys Arkins
a0e2a18e7a
refactor(docker): rename docker manager to dockerfile ( #2298 )
...
"docker" in config now refers to the Docker "language", which is the parent of dockerfile, docker-compose and circleci managers.
2018-07-21 19:40:50 +02:00
Rhys Arkins
7066a5dd99
fix(docker): use tag suffix when looking up new digest
2018-07-21 10:47:29 +02:00
Rhys Arkins
2af433094c
fix(github): treat 401 Bad Credentials as platform failure
2018-07-21 08:38:13 +02:00
Rhys Arkins
482892042a
fix(docker): filter out failed digest lookups
2018-07-20 18:59:30 +02:00
Rhys Arkins
2635b234c7
refactor: don’t warn if no versions found
2018-07-20 10:03:18 +02:00
Rhys Arkins
7254b5f16c
feat: use generic lookup for docker ( #2280 )
...
Removes custom Docker lookup code and instead integrates it with the generic lookup routine used by other package managers. Logic for digest support was added but is used by Docker-only for now.
Closes #2081 , Closes #2276
2018-07-20 09:09:01 +02:00
Rhys Arkins
c4389cb11b
feat(composer): composer.lock support ( #2255 )
...
Adds logic to support updating the accompanying `composer.lock` file whenever `composer.json` is updated.
Closes #2098
2018-07-19 09:14:34 +02:00
Rhys Arkins
449f72131b
fix: better enabled/disabled/onboarding/unknown status
2018-07-19 08:54:15 +02:00
Rhys Arkins
b52620f68f
refactor: getUpdatedPackageFiles
2018-07-18 20:18:40 +02:00
Rhys Arkins
997904cc63
refactor: branch files plus tests
2018-07-18 20:10:50 +02:00
Rhys Arkins
5cb03c94ae
fix: log stack trace for unknown errors
2018-07-17 12:18:28 +02:00
Rhys Arkins
b77fbeaec9
fix: replace vv in commitMessage
2018-07-17 08:24:43 +02:00
Rhys Arkins
cddd9cd858
feat: raise prs with lock file warning
...
Raises PRs and includes warning if lock file updates fail and release timestamp is greater than a day old.
Closes #2233
2018-07-14 08:14:02 +02:00
Rhys Arkins
e83cb0a9c2
feat: skip schedule for pin dependencies PRs
...
Pin dependencies PRs can hold up other PRs, so should not be restricted by configured schedules.
Relevant to https://github.com/renovatebot/config-help/issues/64
2018-07-13 06:58:39 +02:00
Rhys Arkins
ca23927735
feat: pin PRs should only block necessary PRs
...
Previously if there were any “pin” updates then that would block all non-pin updates until the pin one was merged. However, this doesn’t make sense if the other PR is for an unrelated dependency.
Closes https://github.com/renovatebot/config-help/issues/64
2018-07-13 06:48:52 +02:00
Rhys Arkins
ee4132fd14
refactor: if/else with return
2018-07-09 11:28:42 +02:00
Rhys Arkins
11c4741271
refactor: fix import order
2018-07-09 11:15:06 +02:00
Rhys Arkins
ae7aecac95
fix: setNpmrc after resolveConfig
2018-07-06 17:04:40 +02:00
Rhys Arkins
42145e60fc
refactor: log npmrc
2018-07-06 16:56:29 +02:00
Ayoub Kaanich
219950399e
feat: endpoints credentials handling
2018-07-06 07:26:52 +02:00
Rhys Arkins
9616fab1af
fix: delete bloat from updateConfig
2018-07-06 07:14:26 +02:00
Rhys Arkins
80c6ca1e72
fix: don’t discard updateTypes rules before they’re applied
2018-07-06 06:43:02 +02:00
Rhys Arkins
2d4aa131a3
fix: empty packageRules after applying to update
2018-07-05 22:23:48 +02:00
Rhys Arkins
9521b08b03
refactor: use isSingleVersion in template instead of isRage
...
Refactors template logic to test for isSingleVersion instead of the negative of isRange. This means that new values like `==1.2.0` in python will be presented as v1.2.0
2018-07-05 21:11:58 +02:00
Rhys Arkins
d4f2572651
fix: assign config.force after every mergeChildConfig
2018-07-05 18:55:00 +02:00
Rhys Arkins
16d88aee4c
feat: ignoreDeprecated
...
Renovate now ignores any upgrades that are marked as deprecated, unless the current version is itself also deprecated. The new config option `ignoreDeprecated` can be set to false to disable this if necessary.
Closes #1988
2018-07-05 15:10:50 +02:00
Rhys Arkins
7c0a17e9d0
feat: group together deprecation warnings
...
Previously, deprecation warnings were done as part of dependency lookups, which were run concurrently. This meant the chance of duplicate issues was high, due to race conditions. Instead, raising the issues is done once all package are looked up, to ensure only one issue per manager/dependency. It also means we can list all of the affected package files, in case of a monorepo.
Closes #2224 , Closes #2225
2018-07-05 14:23:28 +02:00
Rhys Arkins
0144bac228
fix: force config after each package rules apply
2018-07-05 12:37:46 +02:00
Rhys Arkins
5ea6955aac
fix: don’t reuse lock files in branch if any updates are lock file maintenance
2018-07-05 12:06:55 +02:00
Rhys Arkins
24a89a775b
feat(npm): deprecation warnings ( #2222 )
...
Raises a deprecation warning issue per-dependency. Uses logic that if latest version is deprecated then the package is deprecated.
Closes #1592
2018-07-05 09:16:53 +02:00
Rhys Arkins
8a8890f82f
feat: support updateType=bump
...
Refactors updateType logic so that a type of “bump” is returned when bumping versions within existing ranges, instead of minor or major. Updates that fall *outside* the existing range will continue to be labeled as minor or major as appropriate.
This value can now be used within packageRules, e.g.
```
“updateTypes”: [“bump”],
“labels”: [“bumped version only”]
```
Closes #1942
2018-07-04 10:26:31 +02:00
Rhys Arkins
ebbd417e47
chore: prettier
2018-07-04 10:21:41 +02:00
Rhys Arkins
fb6271e4f7
refactor: rename update.type -> update.updateType
2018-07-04 10:11:53 +02:00
Rhys Arkins
d8667619d8
fix(npm): move ignoreNpmrcFile logic out of mirror mode
...
Logic to automatically ignoreNpmrcFile=true when npmrc found was in the wrong location.
2018-07-03 13:51:59 +02:00
Rhys Arkins
b2cecc38da
logs: print versions when rolling back
2018-07-03 11:49:19 +02:00
Rhys Arkins
7c99089b6a
logs: debug ignoring npmrc files
2018-07-02 20:26:11 +02:00
Rhys Arkins
068ff16ec4
fix: Revert "feat: endpoint credentials handling ( #2146 )"
...
This reverts commit 04e0ca1f80
.
2018-07-02 13:18:37 +02:00
Ayoub Kaanich
04e0ca1f80
feat: endpoint credentials handling ( #2146 )
...
Refactors credentials/token handling to rely less on env variables and instead use an endpoints middleware for credentials handling.
First step towards #2105
2018-07-02 10:01:42 +02:00
Rhys Arkins
8b633f1d2b
fix: don’t try branch automerge on first run
...
Fixes #2201
2018-07-02 09:33:45 +02:00
Rhys Arkins
83bf162949
fix: automerge only if every upgrade in branch is automerge
...
When generating a branch’s config, iterate through all upgrades and set automerge=true for the branch only if all upgrades have automerge=true. Similarly, set canBeUnpublished=true if ANY upgrade can be unPublished.
Closes #1999
2018-07-02 07:43:21 +02:00
Rhys Arkins
c1bd2197e2
refactor: use res object for lookup
2018-07-01 07:53:26 +02:00
Rhys Arkins
01ccb03b94
feat: massage docker Node.js branches
...
Manually finds and massages node updates in Docker, Docker Compose and Circle CI so that they should take on the same “renovate/node-8.x” style branch naming. The goal is to unify all node updates into a single branch.
2018-06-29 06:55:42 +02:00
Rhys Arkins
b4f7ed2e0d
refactor: simplify mergeBranch
2018-06-28 13:56:08 +02:00
Rhys Arkins
645ec7f171
fix: add releaseTimestamp to update
2018-06-28 10:52:56 +02:00
Rhys Arkins
6e0c6affdc
logs: setMeta repository before handling error
2018-06-28 10:38:25 +02:00
Rhys Arkins
a3043c47ec
feat: log warning if lock file error persists for 1 day
...
Raises an additional log file warning whenever lock file errors persist for a day or longer. The idea of this is that temporary errors - e.g. caused by npmjs itself - should not disturb the user. 1 day seems like a reasonable time for multiple attemps to be made first, assuming it has been scheduled. Once this is tested in production for a little while and no unexpected problems, it will be converted to actually raise a config warning issue in the repo to get user attention.
2018-06-28 10:17:17 +02:00
Rhys Arkins
edb67e6083
refactor: add latest releaseTimestamp to config
2018-06-28 09:54:31 +02:00
Rhys Arkins
40962940a0
refactor: harmonize release timestamp ( #2189 )
...
Renames "date" and "time" values from datasources to instead be "releaseTimestamp".
2018-06-28 09:07:28 +02:00
Rhys Arkins
57249e105b
feat: pass gitAuthor to platform during init ( #2183 )
...
Refactors platforms to take the admin-only `gitAuthor` and `gitPrivateKey` values during repository initialisation instead of during file commits.
2018-06-27 18:40:54 +02:00
Rhys Arkins
74d567897c
fix: apply packageRules after merging upgrade type settings
...
Fixes #2180
2018-06-27 07:14:41 +02:00
Rhys Arkins
65c1075bd7
fix: reduce embedded changelogs to last 15
2018-06-26 14:45:13 +02:00
Rhys Arkins
88a13f3ab9
fix: loosen default github endpoint check
2018-06-26 14:44:54 +02:00
Rhys Arkins
8da5888ef6
feat: combine branch automergeTypes
...
This deprecates branch-push and branch-merge-commit automergeTypes and replaces with “branch”, which has the same behaviour as the previous branch-push.
BREAKING CHANGE: branch-merge-commit automergeType behaviour is no longer supported, all branch automerges now use branch push approach.
2018-06-26 14:01:13 +02:00
Rhys Arkins
46fae9473a
fix: abort renovation if branch’s PR has been closed or merged
...
This fixes a race condition where if someone merged multiple PRs in a row then a renovation-in-progress would get confused and post a “PR has been edited” message to an already-merged PR.
Closes #2115
2018-06-26 11:20:26 +02:00
Rhys Arkins
a08adb4291
fix: don’t replace github token if endpoint is api.github.com
2018-06-25 20:01:22 +02:00
Rhys Arkins
47305b975e
refactor: add pro pr footer
2018-06-25 11:55:12 +02:00
Rhys Arkins
53b6050017
feat: force, forceCli ( #2145 )
...
Adds config options force and forceCli. These cover the use case where a certain setting is desired to be forced by the bot admin, regardless of repository config, for example removing all configured schedules in order to force PR creation.
Closes #1731
2018-06-21 10:23:59 +02:00
Rhys Arkins
163bad03c9
fix: catch JSON.parse error for renovate config
2018-06-20 19:11:57 +02:00
Rhys Arkins
eb21abf118
feat: flatten nested packageRules after resolving
...
This solves the problem of nested packageRules, such as when a paths-based rule is used to extend a preset that itself includes packageRules.
Closes https://github.com/renovatebot/config-help/issues/58
2018-06-20 14:57:05 +02:00
Rhys Arkins
bdfc1145df
fix: add back from/to versions to cache key
2018-06-20 13:54:47 +02:00
Rhys Arkins
eddd5e4748
refactor: changelog lookup key
...
Closes #2151
2018-06-20 12:26:32 +02:00
Rhys Arkins
90782ccfe8
logs: warn whenever creating rollback PRs
2018-06-20 07:38:21 +02:00
Rhys Arkins
ccb7bd5cd8
fix: typo
2018-06-19 15:45:04 +02:00
Rhys Arkins
068e6daa01
fix: pass Bad credentials error up from ensurePr
2018-06-19 15:34:37 +02:00
Rhys Arkins
93d8b72e9a
fix: throw error for getTags bad credentials
2018-06-19 15:32:26 +02:00
Rhys Arkins
7651029064
feat: strip Reviewable content before comparing existing PR body
...
Closes #2141
2018-06-19 15:15:13 +02:00
Rhys Arkins
3ca84399d6
fix(changelog): use upgrade for lookups
2018-06-16 19:45:16 +02:00
Rhys Arkins
b23a61b890
fix: use manager in changelog cache lookup key
2018-06-16 19:45:16 +02:00
Rhys Arkins
ddf479dec3
fix(onboarding): Correct onboarding “merged or closed” statement
2018-06-16 09:58:14 +02:00
Rhys Arkins
4ccbc20bc1
fix: match current version ( #2135 )
...
fix: match current version
2018-06-16 09:28:11 +02:00
Rhys Arkins
52309282b1
refactor: log changelog cache expiry
2018-06-15 08:07:05 +02:00
Rhys Arkins
124807974a
feat(nuget): support changelogs
...
Refactors nuget lookups to use generatic logic and fill in repositoryUrl to enable changelogs.
2018-06-14 15:52:37 +02:00
Rhys Arkins
cca41dc2fa
fix: add changelog json check
2018-06-14 10:50:18 +02:00
Rhys Arkins
bcd708fd7c
feat: cache full changelog
2018-06-14 09:54:00 +02:00
Rhys Arkins
26f23eb50e
feat: expire changelog cache after 1 hour
2018-06-14 09:48:00 +02:00
Rhys Arkins
f8a9ebf9bd
fix: changeloge cache expiry 1 hour
2018-06-14 09:42:38 +02:00
Rhys Arkins
466cb07d02
refactor: changelog filename
2018-06-14 09:39:23 +02:00
Rhys Arkins
373b9d8a0a
refactor: simplify githubBaseURL/opts
2018-06-14 09:32:59 +02:00
Ayoub Kaanich
4bcfabd2c3
feat: manager-agnostic changelog ( #2109 )
...
Closes #2101 #2092
2018-06-13 11:00:58 +02:00
Rhys Arkins
c9f7b74bc7
refactor: add releases to lookupUpdates return
2018-06-12 06:53:56 +02:00
Rhys Arkins
db45e5cc71
refactor: push repositoryUrl down
2018-06-12 06:47:43 +02:00
Rhys Arkins
5166b86a1b
refactor: lookupUpdates return object not array
2018-06-12 06:45:57 +02:00
Rhys Arkins
c47019ff57
Revert "fix: refactor changelog npm to work with new datasource"
...
This reverts commit 7bc9a2db8e
.
2018-06-11 16:29:06 +02:00
Rhys Arkins
7bc9a2db8e
fix: refactor changelog npm to work with new datasource
2018-06-11 15:06:53 +02:00
Rhys Arkins
688ec14b6a
refactor: datasource return array of releases
2018-06-11 14:28:50 +02:00
Rhys Arkins
819acba06a
refactor: Revert "refactor: use gitRef instead of gitHead"
...
This reverts commit 29d00aa477
.
2018-06-11 10:30:40 +02:00
Rhys Arkins
29d00aa477
refactor: use gitRef instead of gitHead
2018-06-11 10:21:55 +02:00
Rhys Arkins
45d0dcf492
fix: pass auto’d rangeStrategy to getNewValue
...
Closes #2111
2018-06-11 05:52:46 +02:00
Rhys Arkins
01d2fb3bca
feat: datasource wrapper ( #2100 )
...
Adds a wrapper to all datasources to provide a generic purl-based interface.
2018-06-08 10:49:08 +02:00
Ayoub Kaanich
697b80aaf0
feat: composer exact semver support (without lockfile updates) ( #1993 )
...
This PR adds the packagist datasource plus basic exact semver Composer support. Composer lockfile updating is not yet supported.
2018-06-08 06:15:13 +02:00
Dragomir Țurcanu
aa84074d76
feat: comment in PR when branch automerge fails ( #2058 )
...
This PR adds the feature of commenting on a failed automerge. It's done by adding a conditional in `lib/workers/branch/automerge.js` which, in case of receiving `failure` or `error` from the `getBranchStatus` function, returns the "branch status error" value. Another modification is in `lib/workers/branch/index.js`, which is an adition to the failure response of the `tryBranchAutomerge` function. The added functionality is the ability to add a comment to the PR which had a failure automerging. In case of receiving the aforementioned "branch status error" value, to the comment is appended a note which emphasize the fact that there're multiple failed status checks.
Closes #1934
2018-06-07 14:42:51 +02:00
Rhys Arkins
5fd996c9cc
refactor: use isSingleVersion not isRange
2018-06-06 12:25:10 +02:00
Rhys Arkins
603b77799b
feat: refactor unpublishSafe for multiple package managers ( #2090 )
2018-06-06 11:04:54 +02:00
Ayoub Kaanich
f283104988
feat: use purl for pip requirements ( #2067 )
2018-06-05 11:26:08 +02:00
Rhys Arkins
96b4788697
tests: fix coverage
2018-06-05 11:22:21 +02:00
Rhys Arkins
bc652673ba
fix: properly handle null rollback
2018-06-05 10:48:38 +02:00
Rhys Arkins
05260a5b16
refactor: remove semver dependency from github datasource
...
Instead, perform isVersion filter in lookup
2018-06-05 08:15:11 +02:00
Rhys Arkins
98e9198c8e
refactor: replace indexOfs
2018-06-04 20:44:32 +02:00
Connor Brathwaite
398303235b
(refactor): delegate generic predicate checking to @sindresorhus/is ( #2021 )
...
Closes #1764
2018-06-04 20:07:22 +02:00
Rhys Arkins
9fbaf9a3ca
fix: unpublishable / unpublishSafe
...
Corrected logic mistake and renamed unpublishable (internal) to canBeUnpublished to make it easier to follow logic.
Closes #2080
2018-06-04 14:56:47 +02:00
Rhys Arkins
0aaee7bd82
refactor: simplify lookup
2018-06-04 12:23:21 +02:00
Rhys Arkins
c21029ecbb
refactor: rename some versioning interface ( #2078 )
...
isPinnedVersion -> isVersion
rangify -> getNewValue
2018-06-04 06:03:21 +02:00
Rhys Arkins
d8cb261ecb
refactor: rename version -> value ( #2076 )
...
Renames currentVersion to currentValue, newVersion to newValue, newVersionMajor to newMajor, and newVersionMinor to newMinor.
2018-06-04 05:48:20 +02:00
Ayoub Kaanich
549b12529f
feat: use versionScheme for changelog
2018-06-03 19:32:34 +02:00
Ayoub Kaanich
ec53ef78e9
refactor: lookup use versioning wrapper
2018-06-03 18:08:32 +02:00
Rhys Arkins
0523a6ef99
refactor: simplify filterVersions
2018-06-03 16:45:34 +02:00
Rhys Arkins
527c355b48
refactor: move getRangeStrategy to manager ( #2072 )
2018-06-03 14:25:05 +02:00
Rhys Arkins
dd09707c20
refactor: default versionScheme to ‘semver’
2018-06-03 07:43:09 +02:00
Rhys Arkins
a8786a1714
logs: don’t log full pr in branch
2018-06-01 19:33:52 +02:00
Rhys Arkins
5a8c9f57f6
logs: info not warn for no rollback
2018-06-01 17:51:14 +02:00
Rhys Arkins
784a0598b9
refactor: use options for github datasource
2018-06-01 15:32:17 +02:00
Rhys Arkins
bc7728f1d2
refactor: use purl.parse
2018-06-01 14:48:49 +02:00
Rhys Arkins
d02914fd3b
tests: update test for repositoryUrl
2018-06-01 10:11:42 +02:00
Rhys Arkins
e39cc9a584
feat: use purl for package lookups ( #2041 )
2018-06-01 09:02:51 +02:00
Rhys Arkins
54e4733ca5
refactor: fetch return if skipReason present
2018-05-31 21:02:07 +02:00
Rhys Arkins
d6132ff634
fix: flatten only if updates are present
2018-05-31 20:53:29 +02:00
Rhys Arkins
a8bcd004dd
logs: fix fileCount
2018-05-31 13:07:09 +02:00
Rhys Arkins
f347e500a0
fix: use getBranchPr for finding open PR for rebase check
2018-05-30 11:03:30 +02:00
Rhys Arkins
d71639bbf8
refactor: fetch array or object
2018-05-29 10:27:41 +02:00
Rhys Arkins
7b149df595
logs: less debug
2018-05-28 22:25:33 +02:00
Rhys Arkins
f211ebedaa
fix: limit embedded changelogs to last 20 releases
2018-05-28 17:11:55 +02:00
Rhys Arkins
b43f51dac7
fix: embed release notes for at most first 50 releases
...
Closes #2032
2018-05-28 10:13:50 +02:00
Rhys Arkins
941d06172d
fix: fortify get changelog to not error
...
Adds check for res before res.project and wraps in try/catch so that any future errors are ignored and don’t stop the PR.
Fixes #2023
2018-05-26 06:58:02 +02:00
Rhys Arkins
2610015467
fix: abort repository when lockfile error
2018-05-24 16:28:36 +02:00
Rhys Arkins
7f8dd25a97
refactor: matchesSemver -> matches
2018-05-21 17:40:15 +02:00
Rhys Arkins
63f2669153
refactor: semverSort -> sortVersions
2018-05-21 17:35:50 +02:00
Rhys Arkins
7a1d30c8b6
refactor: move semver to lib/versioning
2018-05-21 17:30:55 +02:00
Rhys Arkins
d45f957cfd
refactor: defer isX upgrade classifications
2018-05-21 17:20:41 +02:00
Rhys Arkins
2f1e1a979a
fix: Revert "feat: permission check in initRepo ( #1983 )"
...
This reverts commit 09978ae8dd
.
2018-05-19 09:15:10 +02:00
Dragomir Țurcanu
09978ae8dd
feat: permission check in initRepo ( #1983 )
...
Added permission checking on `initRepo` which, in case of an error, throws a clear message (`The token doesn't have the write permissions to the repository`)
Closes #509
2018-05-19 08:33:41 +02:00
Rhys Arkins
c89929d3e2
fix: rename changelog cache file
2018-05-19 08:22:37 +02:00
Marco Massarotto
929231b46c
Feat/allow ghe changelog ( #1981 )
...
This PR follows up and fixes #1968
The previous PR didn't behave correctly as it was expecting Github Enterprise to ALWAYS been configured and that the github.com token was available in the `GITHUB_COM_TOKEN` env variable.
But for non GHE project `GITHUB_COM_TOKEN` is not defined and github.com token is available at the `GITHUB_TOKEN` env variable instead.
This updated PR fix this issue and avoid further problems by prioritising `github.com` over GHE.
Now the code is NOOP if no `GITHUB_ENDPOINT` is configured.
If it's configured, instead, now the codes assumes that, by DEFAULT, a dependency is hosted on `github.com` so it removes `GITHUB_ENDPOINT` and use `GITHUB_COM_TOKEN` as Github token immediately.
They are restored only if needed, when a dependency is hosted on the provided GithubEnterprise.
2018-05-19 07:44:56 +02:00
Rhys Arkins
702ccee67a
refactor: rename changelog fields
2018-05-18 17:20:20 +02:00
Rhys Arkins
7f4cb4aa57
feat: rangeStrategy ( #1954 )
...
This PR replaces the existing `pinVersions`, `upgradeInRange` and `versionStrategy` settings with a single one: `rangeStrategy`.
Previously:
- `pinVersions` could be `true` or `false`, but defaulted to `null`, which meant that Renovate would decide. `true` meant that Renovate would replace existing ranges like `^1.0.0` with an exact/pinned version such as `1.2.0`.
- `upgradeInRange` could be true or false, default to false. If `true`, it would mean Renovate would replace an existing range like `^1.0.0` with something like `^1.2.0`
- `versionStrategy` could be `replace` or `widen` and was mainly used for `peerDependencies` to widen existing ranges, e.g. from `^1.0.0` to `^1.0.0 || ^2.0.0`
It was possible to set conflicting settings, e.g. configuring `pinVersions=true` and `upgradeInRange=true`.
Now, we combine them into a single setting: `rangeStrategy`:
- `auto` = Renovate decides (this will be done on a manager-by-manager basis)
- `pin` = convert ranges to exact versions
- `bump` = same as `upgradeInRange` previously, e.g. bump the range even if the new version satisifies the existing range
- `replace` = Same as pinVersions === false && upgradeInRange === false, i.e. only replace the range if the new version falls outside it
- `widen` = Same as previous versionStrategy==='widen'
2018-05-17 07:16:13 +02:00
Rhys Arkins
407b302cfe
logs: info not warn for no packageFile content
2018-05-16 08:50:30 +02:00
Rhys Arkins
6dbf9c52ad
fix: Revert "feat: support retrieving changelog from ghe hosted repositories ( #1968 )"
...
This reverts commit f2fb2e6bda
.
2018-05-16 07:04:59 +02:00
Rhys Arkins
c4d3b3dfb4
refactor: pass bad credentials error from branch to repo
2018-05-16 07:03:27 +02:00
Marco Massarotto
f2fb2e6bda
feat: support retrieving changelog from ghe hosted repositories ( #1968 )
2018-05-16 06:38:14 +02:00
Rhys Arkins
791f31b9ac
fix: handle null content returned for package file
2018-05-16 06:37:26 +02:00
Rhys Arkins
4f5896c908
refactor: monorepo -> internal-package
2018-05-15 13:46:41 +02:00
Rhys Arkins
409cd4adde
refactor: monorepoPackages -> internalPackages
2018-05-15 07:21:10 +02:00
Rhys Arkins
2b2b1d92ab
logs: packageFiles -> config
2018-05-14 07:56:17 +02:00
Rhys Arkins
69b264cf01
fix(npm): don’t read npmrc files if ignoreNpmrcFiles=true
2018-05-13 23:06:27 +02:00
Rhys Arkins
ebe9607d79
fix(npm): npmrc/ignoreNpmrc logic
2018-05-13 22:04:06 +02:00
Rhys Arkins
49bbcd48e8
fix(onboarding): rebase existing content
...
# Conflicts:
# lib/workers/repository/onboarding/branch/rebase.js
2018-05-13 14:43:07 +02:00
Rhys Arkins
8a2818db8e
fix(automerge): default to pr, not pr-comment
2018-05-13 08:01:58 +02:00
Rhys Arkins
8ca30e5b92
fix: use getBranchPr not findPr for onboarding
...
This allows for the case where the user renames the PR.
2018-05-11 17:59:30 +02:00
Rhys Arkins
6f583ab0e6
fix(presets): set npmrc after first decrypt
...
In case the renovate config has a npmrc in it that is used to decrypt a preset.
2018-05-11 15:43:14 +02:00
Rhys Arkins
680a0bc193
fix: don’t fetch .npmrc in initApis
...
It will be fetched if there is a package.json anyway
2018-05-10 21:03:25 +02:00
Rhys Arkins
916e258bbd
fix: spoil github autolinking even for private repos
...
Closes #1931
2018-05-09 20:09:34 +02:00
Rhys Arkins
4babdd989e
fix: delete branch if PR fails with 502 error
2018-05-09 19:53:46 +02:00
Rhys Arkins
16de6a2912
logs: less changelog
2018-05-09 18:42:47 +02:00
Rhys Arkins
e7a9c0fe44
logs: don’t log changelog headings
2018-05-09 18:38:32 +02:00
Rhys Arkins
eccef72b52
fix(npm): restore autodetect pinVersions
2018-05-09 18:17:11 +02:00
Rhys Arkins
4791742060
fix: close configuration issue
2018-05-09 18:03:48 +02:00
Rhys Arkins
3989d47f76
fix: re-enable semantic commit detection
2018-05-09 14:38:17 +02:00
Rhys Arkins
407f8fc576
refactor: drop key after decrypt
2018-05-09 13:43:23 +02:00
Rhys Arkins
43ac21778f
logs: decrease debugging
2018-05-09 13:31:04 +02:00
Rhys Arkins
66804bf211
logs: drop excessive debug
2018-05-09 13:26:16 +02:00
Rhys Arkins
d4de9108af
feat: skip PR generation if lock file generation fails
2018-05-09 12:10:45 +02:00
Rhys Arkins
d75a220008
fix: filter out disabled updates
2018-05-09 11:37:35 +02:00
Rhys Arkins
9fe651bca9
logs: drop unnecessary flatten debugs
2018-05-09 10:14:35 +02:00
Rhys Arkins
ecdcd9df4f
feat: refactor dependency extraction ( #1912 )
...
Rewrite of dependency extraction, particularly for npm. Paves way for easier addition of new package managers.
Closes #1882
2018-05-09 08:03:59 +02:00
Ayoub Kaanich
38a4397feb
feat: changelog for pip ( #1927 )
...
This PR adds support for pip changelog,
unlike npm, I couldn't find a mapping between github and pip other than github being used as the homepage of some projects, if there are other ways of mapping it would be helpful.
Closes #1911
2018-05-08 04:55:16 +02:00
Rhys Arkins
9ffd0abda1
refactor: replace stringify/parse with fast-clone
2018-05-07 21:50:40 +02:00
Rhys Arkins
812fe227b8
fix(onboarding): adjust packageFiles check when filtering
2018-05-07 20:14:00 +02:00
Rhys Arkins
ad16528fa0
fix: don’t debug branches when sorting
2018-05-07 13:21:46 +02:00
Rhys Arkins
2517c9f1d9
refactor: renovateRepository split ( #1928 )
2018-05-07 12:59:32 +02:00
Rhys Arkins
6431cf6861
refactor: move sortBranches
2018-05-07 07:59:53 +02:00
Rhys Arkins
c0c935963e
refactor: remove null onboarding case
2018-05-07 07:55:49 +02:00
Rhys Arkins
4a4feb35ab
refactor: pass branches explicitly to repo onboarding
2018-05-07 07:02:08 +02:00
Rhys Arkins
7189f4682f
refactor: simplify repo init
2018-05-07 06:47:17 +02:00
Rhys Arkins
3dbd470f61
refactor: move repo processResult
2018-05-07 06:33:49 +02:00
Rhys Arkins
1eb37c4373
refactor: move repo finalise logic to own directory
2018-05-07 06:26:07 +02:00
Ayoub Kaanich
edfcfc3838
feat: decouple npm and github logic in changelog ( #1926 )
...
This PR splits the logic behind changelog into manager (npm) and source (github)
the manager provides the repo url + versions
the source consumes the manager info and generates changelog info
Closes #1911
2018-05-07 04:49:26 +02:00
Rhys Arkins
ac2bc0decb
refactor: rename upgrades to updates in branchify
2018-05-06 20:12:01 +02:00
teppeis
abebabb91d
fix: remove a useless param
2018-05-06 18:02:54 +02:00
Rhys Arkins
4c72978e29
fix: strip git suffix from changelog repository
2018-05-06 12:33:58 +02:00
Rhys Arkins
93547f12df
refactor: simplify stale lock file maintenance deletion
2018-05-06 12:28:37 +02:00
Rhys Arkins
1762ee68a0
feat: automergeComment ( #1906 )
...
Adds new option “pr-comment” for `automergeType` and a new option `automergeComment` to use in such a case.
2018-05-04 06:55:01 +02:00
Rhys Arkins
7a6bcfcf0e
fix: handle undefined depType in onboarding PR
2018-05-03 18:35:57 +02:00
Rhys Arkins
19e35ffee0
refactor: return object from extract ( #1914 )
2018-05-03 18:09:18 +02:00
Rhys Arkins
45f3c4c765
refactor: move package rules logic to separate file
2018-05-03 14:41:04 +02:00
Rhys Arkins
16c1fe85a4
refactor: remove unused dep type merge config
2018-05-01 20:04:44 +02:00
Rhys Arkins
89b4401b5f
chore: log source repo with tag failure
2018-05-01 17:55:05 +02:00
Rhys Arkins
a20376d336
refactor: info not warn when missing tags
2018-05-01 17:27:53 +02:00
Rhys Arkins
6199b88ac5
fix: rename cachePath for changelog commits
2018-05-01 12:39:46 +02:00
Ayoub Kaanich
0b64cfac3e
feat: refactor commits retrieval ( #1886 )
...
Refactor changelog (commits) logic to separate sources, and remove the `changelog` dependency. Instead of a full copy/paste of commits, a link is now provided to the source repo.
Closes #381
2018-05-01 11:55:40 +02:00
Rhys Arkins
2606219485
fix(packageRules): get packageFile from depTypeConfig
2018-04-28 15:47:09 +02:00
Rhys Arkins
757154ded4
feat: add paths selector to packageRules ( #1879 )
2018-04-28 08:56:15 +02:00
Rhys Arkins
3257bf73df
refactor: simplify packageRule logic
2018-04-28 08:16:35 +02:00
Țurcanu Dragomir
305f094bd4
Added matchCurrentVersion selector to packageRules ( #1835 )
...
The matchCurrentVersion option sets a range of versions that a package update can be in. If the package's current version doesn't satisfy the matchCurrentVersion range, it won't match the rule.
Closes #1771
2018-04-27 05:45:22 +02:00
Rhys Arkins
5e3339aacb
feat: support commit prefix in onboarding commit ( #1868 )
...
This PR adds the capability so that the onboarding commit message (“Add renovate.json”) will have a prefix if semanticCommits is explicitly set to true by the bot administrator.
e.g. “renovate a/b —semantic-commits=true —semantic-commit-type=foo” will result in the onboarding commit being “foobar: add renovate.json”.
Closes #1867
2018-04-26 14:06:36 +02:00
Rhys Arkins
6415833a4b
refactor: renovateapp.com -> renovatebot.com
2018-04-24 13:59:42 +02:00
Rhys Arkins
1564150d9f
refactor: streamline debug logging
2018-04-18 21:19:00 +02:00
Rhys Arkins
da06af8489
logs: log finish
2018-04-18 06:31:55 +02:00
Rhys Arkins
4bec798521
fix: lower case only if the commitType has no uppercase
2018-04-17 14:28:04 +02:00
Rhys Arkins
8fc005b15e
fix: group based on commitMessageExtra
2018-04-17 11:47:22 +02:00
Rhys Arkins
96d8eb321d
refactor: print branchName when pr title changes
2018-04-17 10:25:48 +02:00
Rhys Arkins
f042c8dbe0
fix: keep version in commitMessage/prTitle when grouping with types
2018-04-17 10:06:02 +02:00
Rhys Arkins
13484c6f98
fix: skip validating bot config to avoid unnecessary deprecation warnings
2018-04-17 09:23:41 +02:00
Rhys Arkins
9753f9dcba
feat: modular branchName/prTitle/commitMessage templating ( #1760 )
...
This PR refactors `branchName`, `commitMessage` and `prTitle` so that they are more easily editable and hopefully more understandable. By breaking each up into subsections, users can modify one part without needing to copy/paste the entire string.
Directly editing any of these fields will now be deprecated and a warning issued.
2018-04-17 08:39:26 +02:00
Rhys Arkins
8352d7e661
logs: info message for pr title change
2018-04-17 08:29:25 +02:00
Rhys Arkins
c90f2252a2
fix: don't check packageRules selector for default config
...
Closes #1829
2018-04-12 18:47:14 +02:00
Rhys Arkins
70ae459890
Add 'not-found' to errors
2018-04-12 17:03:14 +02:00
Rhys Arkins
2dfae8337d
refactor: enhance repository result details
...
renovateRepository now returns “res” - the result of the current renovation, and “status” - the overall status of the repository.
2018-04-12 14:02:10 +02:00
Rhys Arkins
bb9eae28b1
logs: lower rule debug to trace
2018-04-11 21:04:31 +02:00
Rhys Arkins
f634812636
logs: improve merge status/result debug
2018-04-11 09:39:35 +02:00
Rhys Arkins
f874ab53e7
refactor: remove try/catch/finally from repository worker
2018-04-10 09:19:24 +02:00
Rhys Arkins
813dd1be79
logs: log err and message for unknown errors
2018-04-10 09:18:39 +02:00
Rhys Arkins
a0e8cdcbf0
refactor: combine package and dep-type workers into package-file ( #1819 )
...
* refactor: move workers/package to workers/dep-type
* refactor: move dep-type to package-file
2018-04-10 06:47:38 +02:00
Rhys Arkins
523b02fbc8
refactor: npm and semver ( #1817 )
2018-04-10 05:20:46 +02:00
Rhys Arkins
ea447cfa0d
feat: depTypeList in packageRules ( #1815 )
...
Adds a field `depTypeList` to `packageRules`, enabling rules for packages to be applied for any `depType`. Config objects `dependencies`, `devDependencies` and `peerDependencies` will be deprecated in favour of this new approach.
Closes #1807
2018-04-09 16:10:34 +02:00
Rhys Arkins
a81da6edf7
refactor: simplify packageRules var names
2018-04-09 06:21:15 +02:00
Ayoub Kaanich
eb3c55b125
refactor: set token in config before renovation
2018-04-09 06:08:43 +02:00
Rhys Arkins
79bdfbea3e
fix: don’t skip lockfilemaintenance branch creation due to unpublishsafe
...
Closes #1809
2018-04-08 06:59:34 +02:00
Rhys Arkins
990767fa38
fix: await handleError
2018-04-05 07:37:26 +02:00
Rhys Arkins
d0af557ade
fix: no warn when deleting lock file maintenance branch
...
Closes #1797
2018-04-05 07:04:02 +02:00
Rhys Arkins
0dd604f53d
tests: fix automerge tests
2018-04-04 19:35:01 +02:00
Rhys Arkins
27db9cfbf8
refactor: remove automerge recursion
2018-04-04 19:23:45 +02:00
Rhys Arkins
b6cf7360e2
fix: clean repo at end of every repo run ( #1787 )
...
Closes #1786
2018-04-04 14:16:36 +02:00
Rhys Arkins
394bc931bd
refactor: simply global mergeconfig
2018-04-04 13:47:56 +02:00
Țurcanu Dragomir
101226db97
fix: add 5s sleep after automerge or restart ( #1761 )
...
This hopefully gives a better chance of GitHub being able to finish computing the new mergeability status, and reduces the chance of a race condition.
Closes #1617
2018-04-03 11:28:51 +02:00
Ayoub Kaanich
3b8f3c5c16
fix: use sha instead of ref for PRs when possible. ( #1772 )
...
Resolves #1658
2018-04-02 22:49:34 +02:00
Rhys Arkins
d9bfa0cd28
fix: await platform.ensureIssueClosing
2018-04-02 18:47:04 +02:00
Ayoub Kaanich
57ffec14cb
feat: autodetect changelog file name ( #1770 )
...
Improves changelog detection algorithm to look for different upper/lower case options as well as alternative filenames like `History.md`.
Resolves #1754
2018-04-01 21:41:26 +02:00
Ayoub Kaanich
74dde919f1
fix: use markdown-it to sectionize changelog files ( #1767 )
...
Resolves #1709
2018-04-01 15:51:20 +02:00
Rhys Arkins
ffbf332a32
fix: prune past latest versions earlier
2018-03-30 09:38:17 +02:00
Rhys Arkins
70ae736988
fix: abort if renovate config returns null
2018-03-28 21:01:38 +02:00
Rhys Arkins
94a5240858
feat: CircleCI docker image support ( #1732 )
...
Adds support for renovating docker image definitions in CircleCI 2 config files (`.circleci/config.yml`).
Closes #1714
2018-03-28 20:12:56 +02:00
Rhys Arkins
3b2d8d2dd4
fix: consider newFrom when evaluating group logic
2018-03-28 19:54:42 +02:00
Rhys Arkins
b89f448946
feat: validate packageRule selectors ( #1728 )
...
Validates that each packageRule must contain at least one selector. Resolves the rule first to allow for presets.
Closes #1345 , Closes #1693
2018-03-28 10:04:07 +02:00
Rhys Arkins
797c35edf9
fix: packageRule match anything only if there is a negating config
2018-03-28 09:29:27 +02:00
Rhys Arkins
39aa1fdf64
fix: pass through migratedConfig warnings
2018-03-28 09:24:54 +02:00
Steven Hargrove
6b67ffa5ff
fix: enforce valid git branch names ( #1725 )
...
Adds proper enforcement of branch name rules.
Fixes #1724
2018-03-28 05:18:42 +02:00
Rhys Arkins
9ab4e55bc5
chore: reduce logger.debug volume
2018-03-27 21:57:02 +02:00
Rhys Arkins
ccf0d4ad3d
fix ensure pr error ordering
2018-03-27 17:44:05 +02:00
Rhys Arkins
08f1739e15
fix: ignore npmrc in repository if user has configured one manually
2018-03-27 16:22:26 +02:00
Rhys Arkins
7379d7d1da
logs: downgrade resolved config to trace
2018-03-27 15:37:09 +02:00
Rhys Arkins
223722ad4c
fix: pass rate limit exceeded errors up from ensurePr
2018-03-27 15:33:05 +02:00
Rhys Arkins
e03c2c267f
fix: add commit signing to onboarding PR
2018-03-27 06:22:58 +02:00
Rhys Arkins
259312bb97
fix: catch Host key verification error for all lock file types
2018-03-26 13:19:06 +02:00
Rhys Arkins
d5c8c300d6
fix: sklp branch creation for “Host key verification failed” install error
2018-03-26 11:21:06 +02:00
Rhys Arkins
02da88e350
fix(pr validation): skip branch status when it’s a fork
2018-03-26 07:11:11 +02:00
Rhys Arkins
a9b99e779a
fix: write npmrc for lerna subdirs too
2018-03-25 22:53:45 +02:00
Rhys Arkins
09c7980566
fix: improve debugging of npmrc
2018-03-25 22:14:40 +02:00
Rhys Arkins
fb230a7b29
fix: perform additional decrypt after preset resolve
...
To catch the use case where encrypted npmToken or npmrc is in the preset itself
2018-03-25 21:29:37 +02:00
Rhys Arkins
ee6c6bda2c
chore: lighten debug logging
2018-03-24 06:31:01 +01:00
Rhys Arkins
83e7b5f0ef
fix: pass up rate limit exceeded error when ensuring PR
2018-03-23 07:56:21 +01:00
Steven Hargrove
52721b8c14
fix: use only one yarn mutex type ( #1706 )
...
Closes #1705
2018-03-23 05:36:02 +01:00
Rhys Arkins
2fce3220e7
chore: downgrade duplicate lerna failure warn
2018-03-22 20:49:15 +01:00
Rhys Arkins
f0cd0cb8b8
feat: raise config action issue if failing to look up locked dependency ( #1704 )
...
If an npm dependency can’t be found, and the package.json has a lock file, then Renovate will encounter lock file errors every time *any* dependency in that package.json has an update. Instead of raising PRs with an error, we instead now stop raising PRs and instead raise a config warning issue. Users can “dismiss” this by setting config option `updateLockFiles` to false.
Closes #1697
2018-03-22 11:55:58 +01:00
Rhys Arkins
3a4a0cb029
feat: updateLockFiles ( #1703 )
...
Adds an option “updateLockFiles” which defaults to true. Setting to false means that updating lock files (e.g. package-lock.json, yarn.lock and shrinkwrap.yaml) will be skipped. The main reason for doing this is for repositories that use a dependency we can’t resolve, so that they can keep updating the package.json without lock file.
2018-03-22 10:41:26 +01:00
Rhys Arkins
0462f91e7a
fix: expand github errors for better debugging
...
Try to get message and body in all errors we log
2018-03-22 09:51:19 +01:00
Rhys Arkins
c1a7bff4a1
refactor: allow 10 loops instead of 5
2018-03-22 09:34:00 +01:00
Rhys Arkins
363a2cc2e5
fix: abort renovation if rate limit exceeded (github)
2018-03-22 09:26:20 +01:00
Rhys Arkins
5e898467d2
tests: fix coverage
2018-03-22 09:24:59 +01:00
Rhys Arkins
d83164691b
fix: adjust onboarding PR based on requireConfig setting
2018-03-22 05:33:09 +01:00
Rhys Arkins
6354f3d07a
fix: try delete lock file maintenance branch only if it exists
2018-03-21 15:53:48 +01:00
Rhys Arkins
27ee7687d9
fix: skip branch creation if unpublishable pr not ready for creating
...
Don’t create a branch until its unpublishable.
Fixes #1580
2018-03-21 11:40:28 +01:00
Rhys Arkins
52ad9d8277
fix: skip branch creation if the updated dependency fails to lock ( #1696 )
...
There are times when an npm dependency has an update available yet the “npm/yarn/pnpm install” fails to find it, and the lock file can’t be generated. We check for this any time there’s a lock file error and abort the branch creation, hoping it fixes itself on the next run.
Closes #1666
2018-03-21 11:17:54 +01:00
Rhys Arkins
ee3240908b
feat: requireConfig ( #1695 )
...
Adds option to bot owners to require a renovate config be in place.
Closes #1694
2018-03-21 10:08:55 +01:00
Rhys Arkins
85d697c649
chore: remove unused json-stringify-safe
2018-03-20 21:15:24 +01:00
Rhys Arkins
d77a3b2b92
fix: log error response body if present
2018-03-20 18:03:14 +01:00
Rhys Arkins
6c677cbc92
fix: use onboarding status to determine mirror mode config branch
2018-03-20 13:29:08 +01:00
Rhys Arkins
dd93c1c194
fix: search changelogs down to fourth heading deep
...
Closes #1687
2018-03-20 10:07:50 +01:00
Rhys Arkins
3eaa75f3e4
fix: use looser changelog heading matching
2018-03-20 10:07:21 +01:00
Rhys Arkins
203930d2d6
fix: unescape issue number inside backticks
2018-03-20 09:59:58 +01:00
Rhys Arkins
a913a50715
fix: hard code public github api for release lookups
2018-03-20 09:24:22 +01:00
Rhys Arkins
e8fdf130c9
fix: handle unstable releases with upgradeInRange
...
Fixes when a ranged version had a semver release part (e.g. 1.2.3-rc.5).
Closes #1689
2018-03-20 07:20:14 +01:00
Rhys Arkins
b4bfb35418
chore: lower debug to trace for packagePatterns
2018-03-20 07:11:56 +01:00
Rhys Arkins
2364efdb39
fix: improve lockfile maintenance deletion logic
...
Set lock file branches to always rebase stale, and delete if there’s no work to do.
2018-03-20 06:48:27 +01:00
Rhys Arkins
0cfba9d014
chore: lessen debugging - move to trace
2018-03-20 06:39:37 +01:00
Rhys Arkins
ec34d136cf
fix: don’t have blocking pin PRs when in mirror mode
2018-03-17 15:32:43 +01:00
Rhys Arkins
d86891cf81
fix: prTitle compilation with nested templates
...
Closes #1652
2018-03-17 10:58:42 +01:00
Rhys Arkins
13609b735d
fix: improve try/catch for mirrorMode config
2018-03-17 07:02:38 +01:00
Rhys Arkins
e50d9c1f05
feat: mirrorMode
...
adds feature mirrorMode, aimed for “shadowing” a target repository.
2018-03-17 06:07:39 +01:00
Rhys Arkins
fa2bda45fe
fix: delete lockFileMaintenance branch if no longer necessary
...
If a lockFileMaintenance branch returns no updated lockfiles then we should delete it.
Closes #1655
2018-03-16 10:51:10 +01:00
Rhys Arkins
ef26aa7ea4
fix: rebase lock file maintenance PRs if configured
...
Fixes so we skip lock file generation for lock file maintenance branches only if it *doesn’t* need rebasing.
Helps #1655
2018-03-16 06:28:46 +01:00
Rhys Arkins
23d0290384
fix: raise PR immediately if there are lock file errors ( #1664 )
...
fix: raise PR immediately if there are lock file errors
2018-03-15 07:06:18 +01:00
Rhys Arkins
3a8f73adaa
chore: better debugging for timezone/schedule
2018-03-15 06:22:25 +01:00
Rhys Arkins
dbe9fd9dec
fix: compile handlebars multiple times to catch nested templates
...
Closes #1652
2018-03-13 07:44:50 +01:00
Rhys Arkins
e62aa89a6c
feat: customisable prFooter ( #1648 )
2018-03-12 13:35:15 +01:00
Rhys Arkins
68117f08d3
fix: remove redundant handlebars compilations ( #1637 )
2018-03-12 05:23:00 +01:00
ikisialeu
c0f87172fa
fix: validate timezones ( #1638 )
...
`Adds a config validation check for timezone, checking it against the list in moment-timezome.js`. Configs with invalid timezones will raise a configuration error.
Closes #1483
2018-03-12 04:24:45 +01:00
Rhys Arkins
09b8989b2e
chore: error not warn when repository not found
2018-03-09 11:50:04 +01:00
Rhys Arkins
cd97792e7c
fix: allow rebaseStalePrs=false to take priority over repo settings ( #1624 )
...
fix: allow rebaseStalePrs=false to take priority over repo settings
2018-03-09 06:58:40 +01:00
eMerzh
088279abbd
fix: return shrinkwrapdir to avoid crash ( #1621 )
2018-03-08 15:59:52 +01:00
Rhys Arkins
c2f0a46d9a
feat: npm shrinkwrap
...
Adds support for npm-shrinkwrap.json files.
Closes #67
2018-03-08 09:46:08 +01:00
Rhys Arkins
862998c2b4
fix: don’t validate empty config
2018-03-08 08:00:12 +01:00
Rhys Arkins
ef828be054
refactor: log content before validation
2018-03-08 07:32:09 +01:00
Rhys Arkins
c3db85c74e
fix: correct setMeta for validatePrs()
2018-03-07 15:06:57 +01:00
Rhys Arkins
308ed432db
feat: upgradeInRange ( #1608 )
...
Upgrade ranges to latest version even if latest version satisfies existing range.
| name | value |
| ------- | ------- |
| type | boolean |
| default | false |
By default, Renovate assumes that if you are using ranges then it's because you want them to be wide/open. As such, Renovate won't deliberately "narrow" the range by increasing the semver value inside.
For example, if your `package.json` specifies a value for `left-pad` of `^1.0.0` and the latest version on npmjs is `1.2.0`, then Renovate won't change anything. If instead you'd prefer to be updated to `^1.2.0` in cases like this, then set `upgradeInRange` to `true` in your Renovate config.
This feature supports simple caret (`^`) and tilde (`~`) ranges only, like `^1.0.0` and `~1.0.0`. It is not compatible with `pinVersions=true`.
Closes #1607
2018-03-07 07:41:10 +01:00
Rhys Arkins
d237c6c670
feat: add comment to PRs if config validation fails
2018-03-06 20:00:10 +01:00
Rhys Arkins
e7c325e6f0
fix: validate based on branchPrefix, not branchName
2018-03-06 16:12:59 +01:00
Rhys Arkins
453ce13278
fix: Revert "refactor: array concatenation ( #1601 )"
...
This reverts commit dd26a018c5
.
2018-03-06 15:54:39 +01:00
Rhys Arkins
96835410d8
feat: validate renovate config PRs ( #1602 )
...
feat: validate renovate config PRs
2018-03-06 15:21:17 +01:00
AndreiMargineanu
dd26a018c5
refactor: array concatenation ( #1601 )
...
Refactors all instances of .concat() to use array spread operators instead
Closes #1459
2018-03-06 12:34:39 +01:00
Rhys Arkins
46e2e95b32
fix: pr dep filter use manager in duplicate key
...
To ensure we list both nvm and engines when upgrading node
2018-03-06 11:14:32 +01:00
Rhys Arkins
e2f067faba
Revert "fix: skip pruning for multiple baseBranches"
...
This reverts commit 81c722473f
.
2018-03-05 13:53:37 +01:00
Rhys Arkins
3877b87c36
fix: delete branchList if repository has looped
2018-03-05 13:53:04 +01:00
Rhys Arkins
81c722473f
fix: skip pruning for multiple baseBranches
2018-03-05 13:19:39 +01:00
Rhys Arkins
7021a073aa
fix: clean up multiple baseBranches correctly
...
Re-enables branch cleanup for multiple baseBranches
2018-03-05 12:27:10 +01:00
Rhys Arkins
3d65e3a48e
fix: disable branch pruning when multiple basebranches in use
2018-03-05 12:12:46 +01:00
Rhys Arkins
dde5756488
feat: .nvmrc files ( #1582 )
...
Adds initial support for `.nvmrc` renovation. If the existing value is a fully-specified semver version then it will be upgraded, otherwise left alone.
Closes #1270
2018-03-04 15:52:06 +01:00
Rhys Arkins
a2c4ecefda
fix: delete empty errors and warnings from migrated config
2018-03-04 07:12:02 +01:00
Rhys Arkins
faa4cc6171
fix: travis metadata and formatting
...
Updates travis config and logic to use same variables as for other managers. This fixes the onboarding PR.
Fixes #1551
2018-03-03 20:53:54 +01:00
Rhys Arkins
3c56f8aeb6
refactor: move manager-specific code under lib/manager ( #1573 )
...
Refactors all non-npm code to live inside lib/manager/*
2018-03-03 14:39:39 +01:00
Rhys Arkins
7f9d73a318
feat: allowedVersions
...
A semver range defining allowed versions for dependencies
| name | value |
| ---- | ------ |
| type | string |
Use this - usually within a packageRule - to limit how far to upgrade a dependency. For example, if you wish to upgrade to angular v1.5 but not to `angular` v1.6 or higher, you could defined this to be `<= 1.5` or `< 1.6.0`:
```
"packageRules": [{
"packageNames": ["angular"],
"allowedVersions": "<=1.5"
}]
```
2018-03-03 06:35:11 +01:00
Rhys Arkins
7db4951722
fix: use commonConfig branchPrefix only if set
2018-03-01 21:58:34 +01:00
Rhys Arkins
e9eba859ea
fix: use original branchPrefix when pruning baseBranches
2018-03-01 21:34:27 +01:00
Rhys Arkins
a3bd0a0e95
Revert "logs: log configs when baseBranches in use"
...
This reverts commit c4cdfe8989
.
2018-03-01 21:08:01 +01:00
Rhys Arkins
3fd090f3ef
feat: prBanner
...
Enables a “banner” at the top of PRs. Must be set inside a config.js to work.
2018-03-01 17:35:11 +01:00
Rhys Arkins
bb2fc1b7ca
refactor: move npm extract from workers to manager
2018-03-01 10:21:26 +01:00
Rhys Arkins
cf336a0b21
refactor: use manager not packageFile
2018-02-28 19:01:35 +01:00
Rhys Arkins
c4cdfe8989
logs: log configs when baseBranches in use
2018-02-28 19:00:40 +01:00
Rhys Arkins
9119568fe4
fix: add checks if pr branch still exists (gitlab)
...
in GitLab, a PR may be open while the branch itself has been removed. We cant just assume that the branch exists because the PR does, even if it’s an edge case.
2018-02-28 04:43:30 +01:00
Rhys Arkins
d0fa221ae3
fix: only rebase if pr is dirty (github)
2018-02-27 19:50:16 +01:00
Rhys Arkins
5c6139f030
fix: throw error if lerna out of disk space
2018-02-27 19:05:00 +01:00
Rhys Arkins
bc684c7b29
fix: implicit patch-only upgrade
...
Use type ‘patch’ only when patch automerge is true AND minor automerge is not true.
2018-02-27 14:50:09 +01:00
Rhys Arkins
f95058d66b
refactor: move npm registry to datasource
2018-02-27 10:49:24 +01:00
Rhys Arkins
ff1a75b42d
fix: throw error if yarn out of disk space
...
Closes #1548
2018-02-26 17:03:12 +01:00
Rhys Arkins
9263fd36b3
fix: don’t overwrite edited onboarding configs
...
Before, we were attempting to rebase edited branches if renovate.json was the only modified file. This “lost” the committer information - which seemed ok - but it also meant that on the subsequent run it then assumed Renovate was the only committer. Now we don’t rebase edited onboarding branches anymore.
Closes #1360
2018-02-22 19:46:57 +01:00
Rhys Arkins
352ac76640
chore: add debugging to semantic commit detection
2018-02-22 08:58:44 +01:00
Rhys Arkins
b00af3022a
fix: re-enable package-lock-only for npm
...
Closes #1531
2018-02-22 07:42:59 +01:00
Rhys Arkins
1fd83139ed
feat: configurable onboarding config ( #1543 )
...
Adds configuration option `onboardingConfig` that allows the default onboarding config to be extended or replaced via `config.js` or env configuration.
Closes #1521
2018-02-21 19:50:58 +01:00
Rhys Arkins
182d1c7348
fix: don't use --package-lock-only for npm install ( #1544 )
...
* Revert "fix: disable reusing existing package-lock.json when upgrading (#1530 )"
This reverts commit 2728e39963
.
* switch from —package-lock-only to —ignore-scripts
Removing `--package-lock-only` option from npm installs due to https://github.com/npm/npm/issues/19852
Pretty sure this fixes #1495
2018-02-21 08:12:25 +01:00
Rhys Arkins
e057e11823
fix: warn if missing lock file during lerna bootstrap
2018-02-20 09:26:47 +01:00
Rhys Arkins
c949778ab7
fix: harmonize to pr.branchName
2018-02-19 20:01:10 +01:00
Rhys Arkins
116939ffb5
feat: renovate node engine in package.json ( #1519 )
...
Adds support for upgrading `node` version in `package.json` > `engines` if the current version is pinned.
- Does not convert from range to pin
- Ignores ranges
- Does not upgrade major versions
2018-02-19 14:21:45 +01:00
Rhys Arkins
dd08477360
fix: don’t reuse branch yarn.lock when rebasing
...
This has been causing undesirable side-effects with sub-dependencies “rolling back” in long-running PRs.
Fixes #1532
2018-02-19 06:52:32 +01:00
Rhys Arkins
2728e39963
fix: disable reusing existing package-lock.json when upgrading ( #1530 )
...
Skip writing package-lock.json locally before `npm install —package-lock-only` to work around https://github.com/npm/npm/issues/19852
Workaround to fix #1528
2018-02-18 21:16:04 +01:00
Rhys Arkins
576f38efdc
fix: use isUmergeable instead of mergeable
2018-02-16 16:19:26 +01:00
Rhys Arkins
dfc768b571
fix: correct unpublish safe url
...
Fixes #1517
2018-02-15 08:31:58 +01:00
Rhys Arkins
a8acdb31ac
chore: add existingPr debug log
2018-02-15 08:30:21 +01:00
Rhys Arkins
848eb0dafb
fix: delete GITHUB_ENDPOINT before changelog
2018-02-12 21:55:45 +01:00
Rhys Arkins
9cd579ddb3
feat: support separate GHE and github.com tokens
...
Instead of deleting the GITHUB_TOKEN when we find GHE configured, replace it with GITHUB_COM_TOKEN for the purposes of retrieving release notes and commit history.
Workaround for #1500 but does not close it.
2018-02-12 07:10:50 +01:00
Rhys Arkins
17472879f4
chore: add debugging to packageRules matching
2018-02-11 21:09:33 +01:00
Rhys Arkins
9766a94fbf
fix: check for truthy arrays before checking length
2018-02-11 19:58:59 +01:00
Rhys Arkins
c69e215613
fix: updatedPackageFile typo
2018-02-11 17:38:06 +01:00
Rhys Arkins
d88fbc9bf2
fix: add config.updatedPackageFiles check
2018-02-11 17:11:20 +01:00
Adam Moss
69f77c01da
fix(semanticCommitScope): compile with handlebars
...
Compile the semanticCommitScope with handlebars to ensure any
substitutions such as {{depName}} are correctly parsed and replaced.
Closes #1504
Signed-off-by: Adam Moss <adam.moss@bcs.org.uk>
2018-02-11 07:38:10 +01:00
Rhys Arkins
54bb8256dd
fix: automerge pr even if automerge type was branch
2018-02-09 14:13:36 +01:00
Rhys Arkins
b1da837da1
fix: create Pr if prNotPending hours exceeded for branch automerge
2018-02-09 13:29:47 +01:00
Rhys Arkins
6478f3c53d
fix: don’t log config with ever lock file remove
2018-02-09 12:44:24 +01:00
Rhys Arkins
f7f0ad14e7
chore: set type=lerna when generating lock files
2018-02-09 10:38:36 +01:00
Rhys Arkins
8c772348c6
chore: downgrade changed from warn to info
2018-02-09 08:27:24 +01:00
Rhys Arkins
58f3c02ecc
fix: log repository when getReleaseList errors
2018-02-09 08:22:51 +01:00
Rhys Arkins
c7f4be1748
fix: add extra check for manual github url
2018-02-09 07:04:27 +01:00
Rhys Arkins
aa84766136
fix: don’t delete lock files when non-npm package files exist
...
Fixes #1320
2018-02-09 06:55:47 +01:00
Rhys Arkins
5e767472ee
fix: check for prHourlyLimitReached before generating lockfiles
2018-02-08 20:07:32 +01:00
Rhys Arkins
a05c33b2ed
fix: Revert "fix: add try/catch to lock file read"
...
This reverts commit a28cef0aa9
.
2018-02-08 16:26:07 +01:00
Rhys Arkins
a28cef0aa9
fix: add try/catch to lock file read
2018-02-08 16:16:30 +01:00
Rhys Arkins
3bed325e26
fix: improve release note title detection
2018-02-08 16:04:41 +01:00
Rhys Arkins
b1ad1bb058
fix: detect renamed repositories and skip
2018-02-08 16:04:25 +01:00
Rhys Arkins
8d74ae5e7a
fix: loosen # escaping
2018-02-08 13:48:17 +01:00
Rhys Arkins
206aaf63a7
chore: downgrade releaseList error to warn
2018-02-08 13:36:12 +01:00
Rhys Arkins
e795dc5a86
fix: check that repositoryUrl starts with github.com
2018-02-08 13:32:27 +01:00
Rhys Arkins
82ec20d35d
fix: test if changelog.md heading ends with version
2018-02-08 13:25:28 +01:00
Rhys Arkins
f07a7a33c0
fix: strip trailing #something from manual repository url
2018-02-08 13:22:39 +01:00
Rhys Arkins
5794e008ce
feat: look up missing dep repository manually if changelog fails
2018-02-08 13:00:22 +01:00
Rhys Arkins
cbd748efe6
fix: addReleaseNotes should check for valid input
2018-02-08 12:10:36 +01:00
Rhys Arkins
85d9607f12
fix: better escape all # chars in PR bodies
2018-02-08 10:44:58 +01:00
Rhys Arkins
1610752547
fix: add check for version.time (npmjs)
2018-02-08 06:50:10 +01:00
Rhys Arkins
4c6e3f7932
fix: use existing lock files when rebasing
...
Check if a lock file already exists in the current *branch* and if so then use it as the base for generating the new lock file and not the master one. Ensures that simple rebases result in same result.
Closes #1481
2018-02-07 16:23:41 +01:00
Rhys Arkins
dc1bcee68e
chore: downgrade closed PR warning to info
2018-02-07 12:03:49 +01:00
Rhys Arkins
430b8237c3
chore: fix lint
2018-02-07 11:03:26 +01:00
Rhys Arkins
c7efe253da
fix: massage changelog release note bodies
2018-02-07 11:01:43 +01:00
Rhys Arkins
5609767748
chore: downgrade release note logs to trace
2018-02-07 11:01:32 +01:00
Rhys Arkins
465849cac5
fix: add url to release notes
2018-02-07 11:00:47 +01:00
Rhys Arkins
7785b6df48
fix: decrease release note heading sizes
2018-02-07 10:59:37 +01:00
Rhys Arkins
545218468f
fix: Better summary/details substitution for gitlab pr bodies
2018-02-07 10:53:44 +01:00
Rhys Arkins
4555dcf38a
chore: downgrade CHANGELOG no entry found log
2018-02-07 09:44:44 +01:00
Rhys Arkins
8b4f116ad6
refactor: log when no entry found in CHANGELOG.md
2018-02-07 08:32:55 +01:00
Rhys Arkins
2deb4a90f7
fix: support parsing [x.y.z] changelog headings
2018-02-07 08:25:30 +01:00
Rhys Arkins
4a7f493ec4
fix: delete branch if create pr returns “validation failed”
2018-02-07 08:05:32 +01:00
Rhys Arkins
19f04bee69
fix: log message when failing to create PR
2018-02-07 07:16:32 +01:00
Rhys Arkins
85a09fffe5
fix: return err.stderr not stderr when npm install fails
2018-02-07 06:30:06 +01:00
Rhys Arkins
40859b10e2
feat: use yarn mutex to ensure only one install at a time
2018-02-07 06:21:25 +01:00
Rhys Arkins
df69c9e3a2
fix: escape links to GitHub usernames
2018-02-06 19:21:22 +01:00
Rhys Arkins
f6e2627774
feat: parse CHANGELOG.md in source repositories ( #1491 )
...
Parses `CHANGELOG.md` for first or second-level markdown headings matching versions. Supports GitHub-only source repositories for now.
Closes #1470
2018-02-06 18:53:36 +01:00
Rhys Arkins
4663967379
fix: better lerna version detection
2018-02-06 15:49:21 +01:00
Rhys Arkins
34ccbe38a3
fix: de-dupe release notes in each PR
2018-02-06 14:24:14 +01:00
Rhys Arkins
f721573e94
fix: escape github pull not pulls
2018-02-06 14:01:29 +01:00
Rhys Arkins
29cae7725b
fix: show newDigest for docker digest pinning in onboarding PR
2018-02-06 11:14:55 +01:00
Rhys Arkins
6d7bbaefcc
fix: detect lerna version in dependencies or devDependencies
2018-02-06 10:56:21 +01:00
Hutson Betts
f7bd7c37d9
fix(yarn): support upgrading windows-only modules
2018-02-06 07:03:47 +01:00
Rhys Arkins
a79222b777
fix: catch initRepo 403 (github)
2018-02-05 22:23:50 +01:00
Rhys Arkins
9c89629183
fix: re-enable lerna bootstrap ( #1487 )
...
* Revert "fix: Revert "feat: lerna bootstrap support (#1486 )""
This reverts commit 4e592d601d
.
* fix: fix lerna.json detection
2018-02-05 20:06:24 +01:00
Rhys Arkins
4e592d601d
fix: Revert "feat: lerna bootstrap support ( #1486 )"
...
This reverts commit 3cab59d2fe
.
2018-02-05 19:40:54 +01:00
Rhys Arkins
3cab59d2fe
feat: lerna bootstrap support ( #1486 )
...
Adds support for running `lerna bootstrap` instead of `npm install` or `yarn install` (without Workspaces), hence allowing support of internally-linked dependencies.
Closes #1441 , Closes #1443
2018-02-05 19:30:07 +01:00
Rhys Arkins
4a427adcac
fix: don’t clean branches if repository is not found or blocked
2018-02-04 21:57:43 +01:00
Rhys Arkins
4c267b210b
fix: handle archived repos gracefully
2018-02-04 21:20:28 +01:00
Rhys Arkins
5a11596960
chore: add logging to onboarding pr logic
2018-02-04 13:35:43 +01:00
Rhys Arkins
021242a7bf
fix: use json-stringify-safe on unknown errors
2018-02-03 15:58:14 +01:00
Rhys Arkins
e306f707db
fix: abort renovation if repository has changed during run
...
If attempting to create a branch and it already exists, or attempting to update a branch and it no longer exists, then we abort.
2018-02-03 15:45:43 +01:00
Rhys Arkins
720b46696a
feat: gitlab branch cleanup ( #1475 )
...
Removes the GitHub-only check when cleaning/pruning branches.
2018-02-03 12:06:25 +01:00
Rhys Arkins
03bdfe191f
fix: drop unnecessary changelog debug
2018-02-03 07:53:02 +01:00
Rhys Arkins
fbc46f6c70
fix: unset github token prior to changelog
2018-02-03 07:48:32 +01:00
Rhys Arkins
4d8510246d
Revert "fix: unset ghe token before calling changelog ( #1472 )"
...
This reverts commit fb1c291b39
.
2018-02-03 07:42:08 +01:00
Rhys Arkins
85de185896
chore: remove excess release notes debugging
2018-02-02 23:08:34 +01:00
Rhys Arkins
fb1c291b39
fix: unset ghe token before calling changelog ( #1472 )
...
fix: unset ghe token before calling changelog
2018-02-02 20:32:00 +01:00
Rhys Arkins
40072e2707
refactor: downgrade 5 loops from error to warn
2018-02-02 18:04:26 +01:00
Rhys Arkins
6fc39d75a5
fix: check for null release notes body
2018-02-02 13:08:00 +01:00
Rhys Arkins
c70c72f14b
feat: release notes in pull requests (sourced from github releases) ( #1465 )
...
Detects and embeds release notes found on GitHub when an npm dependency specifies a GitHub repository as its source and that repository has made use of the "Releases" feature.
2018-02-02 12:37:16 +01:00
Rhys Arkins
7afb693151
fix: update all pr body templates to use h1 headings
2018-02-02 10:56:40 +01:00
Rhys Arkins
139d6b237e
fix: include release headings in pr body only if it has commits
2018-02-02 10:41:33 +01:00
Rhys Arkins
42cb6fe853
fix: improve issue de-linking for public GitHub repos
2018-02-02 06:01:32 +01:00
Rhys Arkins
9195adc58a
refactor: sort versions and commits from oldest to newest
...
List versions and their commits in PR bodies in the order they were made (oldest to newest).
2018-02-02 05:42:22 +01:00
Rhys Arkins
f856b364c6
refactor: downgrade yarn parsing error from warning to info
2018-02-01 16:23:47 +01:00
Rhys Arkins
a708005886
fix: massage issues/pulls links in public repos to be non-linking
2018-02-01 11:36:30 +01:00
Rhys Arkins
cadb4b796f
fix: massage updated less than/greater than to match existing format
2018-02-01 08:25:52 +01:00
Rhys Arkins
6fc1f94936
feat: list package files in onboarding PR
...
Closes #1461
2018-01-31 13:20:55 +01:00
Rhys Arkins
335844e6b7
feat: strip docker-only descriptions from onboarding PR if no Dockerfiles
2018-01-31 13:10:09 +01:00
Rhys Arkins
ad4b9feb92
feat: prConcurrentLimit
...
Adds a new feature to limit the number of concurrent branches/PRs to have open at any one time. Defaults to 0 (disabled), set it to a positive integer to enforce that limit.
2018-01-30 11:43:16 +01:00
Rhys Arkins
5800230cc2
fix: packageRules without packageNames or packagePatterns should match
...
If a packageRule is missing packageNames AND missing packagePatterns, then we should match by default. This allows users to define a single “exclude” rule without needing to add a catchall include rule (e.g. `packagePatterns”: [“.*”]`)
2018-01-30 09:34:42 +01:00
Rhys Arkins
5a02a35afb
chore: log branchList before pruning
2018-01-30 09:23:38 +01:00
Rhys Arkins
b32b7447da
refactor: Revert "refactor: add YARN_CACHE_FOLDER to env"
...
This reverts commit f0111101c9
.
2018-01-29 09:54:49 +01:00
Rhys Arkins
37d83cf61a
refactor: check that workspaces has yarn.lock committed
...
Closes #1451
2018-01-29 09:51:16 +01:00
Rhys Arkins
f5b1c00d8f
refactor: log old/new pr details if updating
2018-01-28 21:46:27 +01:00
Rhys Arkins
64cf41e76e
refactor: sort PRs by type and then title
2018-01-28 16:14:04 +01:00
Rhys Arkins
f64204b992
fix: pin PRs should be sorted before digest ones
2018-01-28 15:57:20 +01:00
Rhys Arkins
f621e93519
chore: add better metadata to packge-file and package logging
2018-01-28 14:51:55 +01:00
Rhys Arkins
b2b0e42492
fix: do not jump unstable majors unless configured to do so
2018-01-27 16:18:18 +01:00
Rhys Arkins
6743e5b489
refactor: downgrade yarn.lock parsing error logs to info
2018-01-27 08:30:14 +01:00
Rhys Arkins
8dcc83a4a3
feat: support yarn mutex file
...
Adds yarn mutex file flag to cmd line if set in env
2018-01-27 07:25:08 +01:00
Rhys Arkins
f0111101c9
refactor: add YARN_CACHE_FOLDER to env
2018-01-27 06:41:23 +01:00
Rhys Arkins
a378bbbac3
fix: massage invalid Regex pattern ‘^*$’
2018-01-26 19:30:57 +01:00
Rhys Arkins
f3c8fd23c9
feat: stringify unknown errors for better visibility ( #1449 )
...
feat: stringify unknown errors for better visibility
2018-01-26 19:08:13 +01:00
Rhys Arkins
6c57c5f45b
refactor: lower lock file warning to debug
2018-01-26 16:26:42 +01:00
Rhys Arkins
fda9fcc289
fix: only use lockedVersion when pinning
2018-01-26 12:31:52 +01:00
Rhys Arkins
9e0a798a6b
fix: trace lock files, not info
2018-01-26 12:25:53 +01:00
Rhys Arkins
2830a33aab
fix: check for valid lockedVersion
...
When pinning, check that the “version” in a lock file is a valid semver, and ignore it if not.
2018-01-26 11:49:44 +01:00
Rhys Arkins
79e9ce6d8f
feat: pin npm dependencies using lock files
...
When package-lock.json or yarn.lock files are present, and Renovate needs to “pin” any dependencies (e.g. after onboarding), it will use whatever version is in the lockfile rather than the latest version on npm js that satisfies the semver range. This should increase the chance that Pin Dependencies PRs pass tests, as it should use as close as possible dependencies as the previous time the lock file was committed to master. Thanks to @alexeagle for first suggesting this.
Closes #1362
2018-01-26 10:18:40 +01:00
Rhys Arkins
d66dea7ec3
feat: verify status check (GitHub) ( #1444 )
...
Adds a `renovate/verify` status check for those migrating and looking for familiarity. Better to check the GPG verified commit, as mentioned in the associated doc.
2018-01-25 13:36:21 +01:00
Rhys Arkins
9363fd8acf
refactor: pass object to platform.initRepo
...
Also renames repoName to repository
2018-01-25 12:24:13 +01:00
ctaepper
280e74fa9f
feat: expose env to npmrc and npm/yarn/pnpm ( #1407 )
...
Adds a config option to bot administrators called `exposeEnv`, for cases where repositories are trusted. If set to true, the bot's full `process.env` can be used for `.npmrc` variable substitution and is passed to child processes when generating lock files. Disabled by default, including in the App.
2018-01-25 10:38:30 +01:00
Rhys Arkins
0925f59262
feat: versionStrategy ( #1439 )
...
Adds new config option `versionStrategy` that allows config to override Renovate’s autodetection of when to “widen” an existing semver range, and when to “replace”.
2018-01-24 15:26:37 +01:00
Rhys Arkins
1b535af43e
feat: hyphen range support ( #1437 )
...
Adds support for ranges, such as `”1.x - 2.x”`. Adds support for widening .x ranges, e.g. `”1.x || 2.x”` becomes updated to `”1.x || 2.x || 3.x”`.
Closes #687
2018-01-24 11:23:59 +01:00
Rhys Arkins
f943d6b27c
feat: widen semver || ranges ( #1436 )
...
When an “or” semver (e.g. “react”: “^14.4.0 || ^15.0.0”) is found, we now widen it. e.g. the result will be “^14.4.0 || ^15.0.0”.
2018-01-24 09:44:38 +01:00
Rhys Arkins
bf64d62dc8
feat: advanced semver "less than (and equal to)" support ( #1435 )
...
Adds support for "less than" semver, and for complex semver values that end in "less than" e.g. ">= 1.0.0 < 2.0.0". Also supports complex semver values that end in "less than or equal to", although they make a lot less sense, e.g. ">= 1.0.0 <= 2.0.0".
Closes #1433
2018-01-24 08:43:27 +01:00
Rhys Arkins
9504fb8abb
refactor: use handlebars triple escapes in templates ( #1434 )
...
This stops HTML substitution from occurring
2018-01-24 07:18:11 +01:00
Rhys Arkins
ef17430d7a
refactor: lower bazel and semver warnings to info logs
2018-01-23 13:00:05 +01:00
Rhys Arkins
516142b687
feat: import existing greenkeeper config when onboarding ( #1431 )
...
Detects any greenkeeper configuration fields and migrates them to Renovate’s config during onboarding.
Closes #1429
2018-01-23 11:59:32 +01:00
Rhys Arkins
a7083c5688
refactor: Recommend blocking PRs be renamed and not reopened
2018-01-23 10:50:05 +01:00
Rhys Arkins
0b7deb546c
feat: apply package.json renovate config to whole repository ( #1419 )
...
Changes the way Renovate treats renovate config inside `package.json` files. Before, config used to be applied only to that particular file, meaning that it was not applied for the rest of a monorepo, or for other package managers like Docker. Now, any `renovate` section inside the repository’s root `package.json` will be applied globally, just the sams as if it were contained within a `renovate.json` file. This means there is no longer any case where you *must* have a `renovate.json` file instead of `package.json`.
Closes #1323
BREAKING CHANGE: renovate config in `./package.json` is now applied to whole repository, and renovate config inside non-root `package.json` files is now ignored.
2018-01-23 06:59:01 +01:00
Rhys Arkins
032f104b2c
Revert "fix: make sure lock file maintenance branch is not stale before skipping ( #1265 )"
...
This reverts commit 1aba7c79af
.
Fixes #1425
2018-01-22 13:34:55 +01:00
Rhys Arkins
fa68a5a216
refactor: skip ignore notification comment if PR was merged
2018-01-20 15:09:23 +01:00
Rhys Arkins
93521cac74
fix: check for not-pending only if no existing PR exists
...
Closes #1408
2018-01-19 05:46:28 +01:00
Rhys Arkins
85dfa819c1
fix: skip newlines at start of Dockerfile ( #1402 )
...
Allow for both comment lines or empty lines prior to FROM in Dockerfile
2018-01-17 17:58:28 +01:00
Rhys Arkins
bb46281c2c
tests: update tests after code removal
2018-01-17 16:26:58 +01:00
Rhys Arkins
68f0da5ade
refactor: remove legacy code detecting mistakenly closed PRs
2018-01-17 15:34:08 +01:00
Rhys Arkins
fd813964b3
fix: rename legacy pr titles
2018-01-17 15:33:41 +01:00
Rhys Arkins
b72be53fba
fix: ensure monorepo packages are ignored in workspaces root too
...
Adds an extra check to ensure that monorepo package names are ignored in the workspaces root too.
Closes #1398
2018-01-17 06:32:07 +01:00
Rhys Arkins
23e217991c
feat: pnpm shrinkwrap support ( #1392 )
...
This feature adds support for pnpm shrinkwrap.yaml files.
Closes #1391
2018-01-15 16:55:33 +01:00
Rhys Arkins
ac09b9d7cd
feat: cache npm results in memory per-run
...
We currently use got’s inbuilt caching for npmjs, however it still results in a roundtrip/304 even when cached. The when using presets is that a package like renovate-config-default gets looked up 10+ times unnecessarily. With this feature we assume that npm lookups don’t change for the duration of a run, and even if they did then we’d prefer the reliability of using the first lookup.
Closes #1389
2018-01-15 11:53:02 +01:00
Rhys Arkins
b5db28b242
fix: propagate registry-failure errors to avoid config validation warnings
...
We don’t want npmjs 5xx errors to cause config validation Issues in repositories.
Closes #1388
2018-01-14 18:58:49 +01:00
Rhys Arkins
2a5f189573
fix: ignore onboarding branch when calculating pr hourly limit
2018-01-12 10:02:36 +01:00
Rhys Arkins
dba574950b
feat: baseBranches (multi-branch) support ( #1379 )
...
This PR adds the capability to renovate more than one base branch at a time. For instance, a project may have their released `3.x` version on `master`, while an upcoming `4.x` is being prepared using branch `next`. `4.x` might have a quite different set of dependencies (e.g. some removed or some added) so it's not appropriate to only target `master` and keep rebasing, as it will get messy. Instead, it's necessary to target both `master` and `next` to keep both updated.
Closes #1279
2018-01-12 07:47:18 +01:00
Rhys Arkins
2dcb2a70d8
feat: prHourlyLimit
...
Adds a feature to enforce an hourly limit on PR creations.
Closes #1363
2018-01-11 11:56:16 +01:00
Matt R. Wilson
d0d62e6e7b
Allow --renovate-fork Cli flag for onboarding.
...
Fixes https://github.com/renovateapp/renovate/issues/1371 .
2018-01-10 22:52:36 +01:00
Rhys Arkins
2925c0d9a7
feat: automatically group @types companion packages
...
By stripping ‘types/ from the branch name, package x and @types/x then become automatically combined in the same PR. We then massage it a little to ensure the decription for the non-types package is used, and a note added saying that types is included.
Closes #1365
2018-01-10 15:35:14 +01:00
Rhys Arkins
21a6b1acea
fix: delete blocking branch if it still exists
2018-01-10 10:26:57 +01:00
Rhys Arkins
2e2f53b677
fix: move debug statement to fix tests
2018-01-10 09:38:42 +01:00
Rhys Arkins
a2b3ca440d
refactor: debug if repoIsOnboarded
2018-01-10 09:09:17 +01:00
Rhys Arkins
228b823e45
fix: ignore branchPrefix for onboarding branch
2018-01-09 17:24:09 +01:00
Rhys Arkins
910793e5f2
fix: check onboarding pr when handling config error
...
Instead of checking for config.repoIsOnboarded, just check for the onboarding PR and reverse the logic.
Closes #1339
2018-01-08 15:53:52 +01:00
Rhys Arkins
28518a4f77
feat: massage ‘*’ packagePattern to ‘.*’
...
‘*’ is actually an invalid regex so fails, however many people might make this mistake so it’s easier to just allow it.
2018-01-06 10:41:10 +01:00
Rhys Arkins
1bbf0c1692
fix: don’t apply custom branchPrefix when onboarding
2018-01-06 10:19:00 +01:00
Rhys Arkins
b711e0c3aa
fix: handle 404 repos gracefully
2017-12-31 20:47:46 +01:00
Rhys Arkins
24b94765ff
feat: skip over archived repositories (github)
2017-12-31 20:28:22 +01:00
Rhys Arkins
8684ff8a6b
fix: don’t debug log the open pr twice
2017-12-30 06:29:40 +01:00
Rhys Arkins
1cb920fa4b
fix: set/reset npmrc during init
...
Detect npmrc in root of repo and make sure it’s set early. Also ensure npmrc is reset at start of each run if necessary.
Helps #1335
2017-12-30 06:11:04 +01:00
Rhys Arkins
45d7c8f257
fix: check pr state for open or opened
2017-12-30 06:03:57 +01:00
Rhys Arkins
002de288c7
refactor: log pr if not
2017-12-29 17:03:27 +01:00
Rhys Arkins
e735ed9eb0
feat: restart renovation if any pr has changed from open to closed
2017-12-28 17:21:06 +01:00
Rhys Arkins
97fc3e6135
fix: pr should be ensured if branch automerge previously failed
...
If branch automerge *previously* failed, then still make sure we are keeping the PR up to date.
Closes #1336
2017-12-28 17:19:59 +01:00
Rhys Arkins
1a3b0b61ea
refactor: remove edited PR comment and log warn instead
2017-12-28 16:29:03 +01:00
Rhys Arkins
6b91b87dee
feat: stop updating PR if edited
...
Previously, Renovate would attempt to keep a branch up to date even if users had edited it. e.g. adding commits on top of the existing branch if newer versions were released. Now, Renovate adds a warning comment if a user has edited a branch, making it clear that responsibility for the branch is over to them and how they can undo this.
Closes #653
2017-12-27 15:20:32 +01:00
Rhys Arkins
976f2ac57e
feat: deduplicate changelogs
...
Deduplicate changelogs in monorepo PRs. i.e. the same monorepo won’t be included more than once.
2017-12-26 20:38:09 +01:00
Rhys Arkins
e0e0b9defe
fix: Revert "feat: restart renovation after github error"
...
This reverts commit eb579ff388
.
For some reason it seems to be causing a reduction in throughput per hour in the app once deployed.
2017-12-26 19:45:17 +01:00
Rhys Arkins
eb579ff388
feat: restart renovation after github error
...
When 404 or 422 errors are encountered writing updates, Renovate will now restart in an attempt to fix it. Usually this is because branches/PRs have been edited or closed while Renovate is running.
Closes #1299
2017-12-26 06:26:33 +01:00
Rhys Arkins
2720688f4c
feat: commit body
...
This PR adds the configuration option “commitMessageBody”. The contents of this will be appended to the commitMessage, separated by two line returns.
2017-12-25 20:37:14 +01:00
Rhys Arkins
4ec85ad818
feat: use version in pr title for synchronised groups ( #1333 )
...
Now, if every upgrade in a group has the same new version, then the PR title will include this version.
Closes #1332
2017-12-24 11:14:34 +01:00
Rhys Arkins
b850985926
refactor: add ls to npm install to view files in logs
2017-12-23 08:55:47 +01:00
Rhys Arkins
146e8f6982
feat: skip onboarding if renovate config detected in root package.json ( #1322 )
...
Renovate will now detect if renovate config already exists within the project’s ‘package.json’ root, and skip onboarding if so.
Closes #1159
2017-12-22 19:14:26 +01:00
Rhys Arkins
f4364ccc44
fix: isOnboarded should return true if onboarding is skipped
2017-12-22 18:50:41 +01:00
Rhys Arkins
2c6a2dd43b
feat: better semantic commit detection
...
Limit to looking at last 10 commit messages and only use semantic commits if angular type is found.
2017-12-19 19:45:34 +01:00
Rhys Arkins
eeefc3c8f3
feat: stop and raise error if repository is misconfigured ( #1302 )
...
This PR updates Renovate to detect config validation problems and (1) stop processing, and (2) either raise an Issue if already onboarded, or (2) update the onboarding PR to reflect the error if still onboarding.
Closes #1300
2017-12-18 09:39:52 +01:00
Rhys Arkins
cfd02be920
refactor: log renovateConfig when warning of validation errors
2017-12-16 07:09:54 +01:00
Rhys Arkins
b2f3626578
fix: strip leading equals sign from currentVersion
...
e.g. =0.22.0 is treated as 0.22.0
2017-12-16 06:50:18 +01:00
Rhys Arkins
bf6d774cfc
refactor: simplify duplicate removal of dependency names
2017-12-15 21:33:54 +01:00
Rhys Arkins
72dbe58ade
chore: add path details to npmrc and yarnrc log
2017-12-15 09:10:35 +01:00
Rhys Arkins
b5b714d4b5
fix: writeToken -> forkToken ( #1295 )
...
Rename writeToken to forkToken to make it clearer. This enables GitHub API to use one token for all reads, and another token just for writing to the forked repository.
2017-12-14 11:47:00 +01:00
Rhys Arkins
d3c0559c21
chore: log when setting npmrc
2017-12-14 10:56:54 +01:00
Rhys Arkins
bbb700c54d
feat: add github writeToken capability in github wrapper
2017-12-12 14:54:09 +01:00
Rhys Arkins
cb8fd6b4ed
feat: fork mode ( #1287 )
...
This PR adds the capability to run Renovate in a new "fork mode". This new mode must be configured by the Renovate admin, and cannot be configured within repositories themselves (for now). Example use: `renovate --autodiscover --fork-mode`
In this mode:
* Renovate will fork the repository if necessary (first run only)
* If the fork already existed, Renovate will ensure that its base branch is up to date with the source repository's
* Branches will be created within the fork, PRs will be created in the source
2017-12-11 19:14:51 +01:00
Rhys Arkins
5036360658
feat: gitPrivateKey for signed git commits ( #1282 )
...
This feature enables signing of git commits on GitHub. To achieve this, Renovate must be configured with a gitPrivateKey in format supported by openpgp. There must also be a gitAuthor configured to enable this feature.
Closes #897
2017-12-09 17:56:23 +01:00
Rhys Arkins
70c95add5a
feat: custom git commit author ( #1280 )
...
This PR adds the capability to specify a custom author for git commits on GitHub. Setting this field will mean GitHub uses this value for author and commit instead of the token’s identity. For instance if you are running hosted mode you may set the gitAuthor to “Renovate Bot <bot@renovate.com>” to have commits appear as coming from the renovate-bot account.
2017-12-09 17:09:31 +01:00
Rhys Arkins
61b1c7f25c
refactor: sort branches
...
This makes the onboarding PR easier to understand by putting pin first, then minor, then major.
2017-12-08 11:03:45 +01:00
Rhys Arkins
494dc08897
refactor: unsatisfied range warn -> info ( #1278 )
...
* refactor: unsatisfied range warn -> info
* refactor: downgrade setNewValue warn -> info
2017-12-08 09:39:40 +01:00
Rhys Arkins
696aaa38af
refactor: slim down onboarding PR description ( #1274 )
2017-12-07 13:32:56 +01:00
Rhys Arkins
987891ba2e
feat: bazel WORKSPACE support ( #1268 )
...
This PR adds support for bazel WORKSPACE package files, as suggested https://github.com/alexeagle/angular-bazel-example/issues/17#issuecomment-349167982
Renovate will:
1. Detect `WORKSPACE` files anywhere in the repository
2. Look for all `git_repository()` sections in the file
3. Extract any dependencies with name, remote and tag values
4. Look up any dependencies that (a) have a github https remote, and (b) a valid semver as tag
5. Update the tag to the latest available
2017-12-07 09:22:10 +01:00
Rhys Arkins
04e505d483
fix: handle existing range with no matching versions ( #1273 )
2017-12-06 18:53:55 +01:00
Rhys Arkins
b5ef020e76
refactor: log npmDep.name when determining upgrades
2017-12-06 17:40:18 +01:00
renovate[bot]
73506f9043
chore(deps): update dependency prettier to v1.9.0 ( #1267 )
...
* chore(deps): update dependency prettier to v1.9.0
* run prettier
2017-12-05 11:50:16 +01:00
Rhys Arkins
b8dadb718d
feat: travis.yml node_js versions support ( #1243 )
...
This PR adds support for renovating the `node_js` versions in `.travis.yml` configuration files. Important notes:
- Functionality is disabled by default and hence opt-in via configuration
- Added a new manager type `node` because it is anticipated to support more than just Travis in future, with mostly unified logic
- Added the config option "policy" with supported values: lts, active, current, lts_latest and lts_active
- Policy is actually an array, to allow additive combining, e.g. `["lts_latest", "current"]`
- Actual node versions are *hardcoded*. There is no perfect metadata source for this and they change infrequently enough that it is definitely not a problem for now (next change will be in April 2018)
- If node versions need updating, they are listed from newest to oldest
- Replacing function attempts to detect the indention (spacing) in file and use that
To enable, configure `node.enabled=true` and optionally `node.policy=["<policy>"]` if you want something other than `lts`.
Closes #1208
2017-12-05 07:50:16 +01:00
Rhys Arkins
1aba7c79af
fix: make sure lock file maintenance branch is not stale before skipping ( #1265 )
2017-12-05 06:17:27 +01:00
Rhys Arkins
d56654cd88
fix: don’t exception if no rollback versions found ( #1263 )
2017-12-04 15:07:35 +01:00
JYC
ab3372d33c
feat: copy local packages ( #1244 )
...
If we have in a package.json links to some local lib file:../path/to/folder
Then the local lib package.json will be copied to the tmp folder to be able to generate the right yarn lock file. This is not working with tgz files, only folder reference.
Closes #1215
2017-11-30 06:43:56 +01:00
Rhys Arkins
958f8b5314
fix(deps): Update npm to v5.6.0 ( #1255 )
2017-11-29 06:05:57 +01:00
Rhys Arkins
8e136c7143
fix: do not delete branches if PR creation fails ( #1252 )
...
GitHub’s API is behaving too flakily and this can end up with closing PRs by accident, which then block future PRs. See https://github.com/ikatyang/emoji-cheat-sheet/pull/110 for example problem
2017-11-28 17:11:52 +01:00
Rhys Arkins
15dfad63b5
refactor: return ‘onboarding’ from ensureOnboardingPr ( #1250 )
2017-11-28 14:58:18 +01:00
Rhys Arkins
4a57cfd3cd
fix: only return no-work if branch doesn’t exist ( #1245 )
2017-11-28 09:00:59 +01:00
Rhys Arkins
eabff37a15
fix: exit gracefully if no files to commit ( #1242 )
...
This handles case where checking for lock file maintenance but lock file is up-to-date.
2017-11-27 08:25:07 +01:00
Rhys Arkins
e54eafcbd1
chore: log info messages when creating and updating PRs ( #1240 )
2017-11-26 07:27:33 +01:00
Rhys Arkins
57eb471afa
fix: escaping @ mentions should be replace all ( #1239 )
...
Fixes #1238
2017-11-26 07:09:10 +01:00
Rhys Arkins
72d46c20e2
refactor: remove label and assignees description from onboarding pr ( #1235 )
...
These can now be described via presets instead
2017-11-24 12:03:57 +01:00
JYC
7a63342ddd
fix: path joins on windows ( #1216 )
...
Use `upath` for windows-friendly path joins.
Closes #1203
2017-11-24 07:50:49 +01:00
Rhys Arkins
7e6befe4a8
fix: merged PRs should not block new PRs in monorepos ( #1230 )
...
Only block if it was closed unmerged.
Fixes #1205
* check for closed only for monorepos
2017-11-24 07:31:20 +01:00
Rhys Arkins
65a5e90bb7
feat: split semanticPrefix into type and scope
2017-11-24 07:14:58 +01:00
Rhys Arkins
7675f3a9f1
fix: replace singapore/renovate references with renovateapp/renovate ( #1229 )
2017-11-23 14:08:31 +01:00
Rhys Arkins
0f80e7d501
fix: use RENOVATE_TMPDIR ( #1202 )
2017-11-20 07:08:30 +01:00
JYC
b272b4aab7
fix: VSTS - canRebase ( #1197 )
...
* deleteBranch like gitlab
* changes in single commit
* prettier lint and tests
2017-11-19 11:23:30 +01:00
Rhys Arkins
d3d9b2be02
refactor: packageFile log debug -> trace ( #1191 )
2017-11-17 15:10:59 +01:00
Rhys Arkins
804d7ba955
refactor: don't cache lock files ( #1190 )
...
* refactor: don’t store yarn.lock content in packageFile
* chore: don’t log full lockfile
* refactor: don’t save package-lock.json
* update tests
2017-11-17 14:53:29 +01:00
Rhys Arkins
0e81a88a54
fix: drop branchExists check after create ( #1188 )
2017-11-16 23:51:47 +01:00
Rhys Arkins
4c4d5cfdac
refactor: check unpublishsafe only if configured ( #1186 )
2017-11-16 22:34:49 +01:00
Rhys Arkins
d3955f1a32
fix: only remove lock file warning comment when successfully updating… ( #1184 )
2017-11-16 21:54:13 +01:00
Rhys Arkins
414fb7d4d7
chore: add debugging to checkOnboardingBranch
2017-11-16 14:16:24 +01:00
Rhys Arkins
d5f58fcb6e
feat: allow configurable tmpdir for caching ( #1176 )
2017-11-16 10:26:04 +01:00
Rhys Arkins
c89b957b8a
refactor: defer branch protection check ( #1173 )
2017-11-15 15:31:20 +01:00
Rhys Arkins
7c72156562
refactor: move semantic commit detection from init to later updates ( #1170 )
2017-11-15 13:39:44 +01:00
Rhys Arkins
b3ec1c0156
fix: set npmrc at repository level ( #1169 )
2017-11-15 12:30:39 +01:00
Rhys Arkins
59d3be4d1c
fix: replace h4 with ** (gitlab) ( #1167 )
...
Helps #954
2017-11-14 20:44:32 +01:00
Rhys Arkins
d2cd755f37
feat: persistent disk cache for changelog data ( #1163 )
...
Use `cacache` to persist changelog results between runs.
2017-11-13 17:44:09 +01:00
JYC
c9335d5bf6
Add VSTS support ( #1049 )
...
This PR adds support for Microsoft's [Visual Studio Team Services](https://www.visualstudio.com/team-services/ ) platform (in addition to existing GitHub and GitLab support).
Closes #571
2017-11-12 10:26:53 +01:00
Rhys Arkins
6d17d4a58d
fix: only ignore monorepo packages if matching glob ( #1153 )
...
Previously, packages within a workspace or lerna project were ignores across the entire repo. Now, they are only ignored within package files that exist in the same lerna project or yarn workspace.
Closes #1147
2017-11-12 10:16:46 +01:00
Rhys Arkins
c3d84d4767
fix: find .renovaterc.json when onboarding ( #1145 )
2017-11-11 05:18:24 +01:00
Rhys Arkins
36dc55b894
fix: remove release.date conversion ( #1144 )
2017-11-10 16:04:25 +01:00
Rhys Arkins
3e34d52819
feat: cache changelog responses ( #1143 )
...
Returns cached value if from the to versions are an exact match. No expiry.
Closes #262
2017-11-10 14:48:14 +01:00
Rhys Arkins
ede1a59527
feat: support .renovaterc json configuration file ( #1142 )
...
Renovate will now check for `renovate.json`, `.renovaterc`, and `.renovaterc.json` in that order. JSON-only supported (no YAML).
Closes #969
2017-11-10 14:10:16 +01:00
Rhys Arkins
ca5b080aac
refactor: check blocked PR before checking schedule ( #1140 )
...
Instead of checking schedule first, now we check first if the PR is blocked by a closed PR. This provides more consistent feedback.
Closes #1100
2017-11-10 13:32:33 +01:00
Rhys Arkins
8a87bcd918
feat: rebase onboarding branch ( #1139 )
...
Previously, Renovate's "Configure Renovate" onboarding branch would never get rebased after it was created. Now, it will be rebased every time the base branch is updated, unless the list of modified files is more than `renovate.json` alone.
Closes #1111
2017-11-10 13:07:06 +01:00
Rhys Arkins
f9e9351409
fix: use gitlab iid consistently in all pr-related functions ( #1135 )
2017-11-10 09:29:24 +01:00
Rhys Arkins
30b82c06a7
fix: gitlab MR bodies should use html ( #1134 )
2017-11-10 09:15:51 +01:00
Rhys Arkins
51cde5d03f
feat: multipleMajorPrs ( #1129 )
...
With this PR, Renovate will default to raising only one major PR at a time. e.g. if you have Webpack 1.x then you will get only one major PR for webpack v3 and not also for v2. set multipleMajorPrs=true to get multiple.
Closes #1101
2017-11-10 04:57:07 +01:00
Rhys Arkins
0bc2953113
fix: lock file stderr was not being included in pr comments ( #1122 )
2017-11-08 13:26:55 +01:00
Rhys Arkins
f044aca321
refactor: streamline platform file operations ( #1121 )
...
Remove original getFile, getFileContent, and getFileJson and replace with getFile (which used to be getFileContent.. shortened now for convenience). Also remove unused getSubdirectories functions.
2017-11-08 12:23:32 +01:00
Rhys Arkins
00e7821fcb
feat: use mostly markdown for pr bodies ( #1118 )
...
Existing solution uses HTML bodies for PR descriptions, as that was the easiest way to get consistency between GitHub and GitLab. However, VSTS supports only markdown so we needed to refactor how this is done. Now, GitHub PR bodies uses only minimal HTML (for summary/details) while GitLab PR bodies are converted to HTML using GitHub flavoured markdown for maximum compatibility. VSTS will be able to strip out the minimal markdown.
Closes #1018
2017-11-08 11:09:26 +01:00
Rhys Arkins
89e13d05fe
fix: refactor logger addStream and depType logging ( #1117 )
...
* fix: refactor logger addstream
* remove depTyp setMeta
2017-11-08 09:59:32 +01:00
Rhys Arkins
8c479071fd
refactor: use global logger ( #1116 )
2017-11-08 06:44:03 +01:00
Rhys Arkins
602752f9fe
refactor: use platform global ( #1115 )
2017-11-07 13:31:34 +01:00
renovate[bot]
c1df1b2cb8
chore(deps): update dependency prettier to v1.8.0 ( #1113 )
...
* chore(deps): update dependency prettier to v1.8.0
* reformat
2017-11-07 11:52:15 +01:00
Rhys Arkins
f8be45055a
refactor: remove config.api and use platform dispatcher ( #1114 )
2017-11-07 11:46:10 +01:00
Rhys Arkins
5a852baa61
fix: do not clean uninitiated repository ( #1102 )
2017-11-05 06:27:46 +01:00
Rhys Arkins
80bed05146
feat: return result from renovateRepository
...
Repository logic code has been rearranged for better logic and file separation.
Closes #654
2017-11-05 05:45:49 +01:00
Rhys Arkins
d5462049a6
chore: implement require-await eslint rule ( #1095 )
2017-11-03 11:56:25 +01:00
Rhys Arkins
dcdfc0d004
fix: refactor pin dependencies first using array.some ( #1094 )
2017-11-03 11:50:57 +01:00
Rhys Arkins
935a70e88c
refactor: use plain markdown for onboarding pr body ( #1093 )
...
This PR refactors the onboarding PR logic into its own subdirectory and redesigns it to use plain markdown instead of html. Plain markdown in PR bodies is a requirement for adding VSTS Support ( #1049 ).
2017-11-03 10:01:54 +01:00
Rhys Arkins
9769f5a5db
refactor: detectPackageFiles returns packageFiles not config ( #1092 )
2017-11-03 09:25:18 +01:00
Rhys Arkins
9c1b7d78cd
refactor: move monorepos logic to npm manager ( #1091 )
...
* refactor: move monorepos logic to npm manager
* fix test
2017-11-03 09:06:42 +01:00
Rhys Arkins
543d93c520
refactor: move migrate-validate to config/ ( #1090 )
2017-11-03 08:25:51 +01:00
Rhys Arkins
11d7f26cc1
refactor: perform decrypt as part of merge renovate.json ( #1086 )
...
Also clarify docs that encrypted config must be contained in renovate.json (i.e. not package.json).
2017-11-03 07:51:44 +01:00
Rhys Arkins
9dd3fd968c
feat: rename mistakenly closed PRs ( #1085 )
...
Renovate already detects PRs mistakenly closed during a certain time period when a bug was present. Now, it will rename those so that they are no longer detected and the ignore code does not have to remain indefinitely.
2017-11-03 06:29:29 +01:00
Rhys Arkins
9c43d74162
fix: escape every @ in pr body with zero width space ( #1084 )
2017-11-03 05:29:46 +01:00
Rhys Arkins
143044ed64
fix: set contentBranch to undefined instead of null ( #1077 )
...
This allows parameter substitution to work correctly (undefined is replace, null is not).
Closes #1076
2017-11-02 04:59:31 +01:00
Rhys Arkins
90c3b1cdbd
fix: add gitlab MR labels at time of creation ( #1006 )
...
This refactor means that createPr now takes `labels` as a new parameter so that the GitLab API can include them with the MR creation request, so save one API call. This also fixes #985 as a result.
2017-11-01 13:55:36 +01:00
Rhys Arkins
58784fc958
feat: add renovateFork option
...
99% of the time we should not Renovate forked repositories. Previously, we skipped onboarding them unless a renovate.json was present. However, that meant that if someone forked a repository where the source was using Renovate, then the fork gets renovated automatically too. After this change, forked repositories need to set renovateFork=true in their renovate.json
Closes #940
BREAKING CHANGE: Forked repositories now need to configure renovateFork=true in renovate.json
2017-11-01 13:13:55 +01:00
Rhys Arkins
6a511e6b3b
chore: remove v10 TODO comments from source code
2017-11-01 13:13:55 +01:00
Rhys Arkins
2cd741d1df
feat: deprecate ignoreFuture configuration option ( #1063 )
...
Drop support for (unused) ignoreFuture option.
Closes #588
BREAKING CHANGE: Support is removed for ignoreFuture configuration option
2017-11-01 13:13:55 +01:00
Rhys Arkins
56e6bd32b5
refactor: log if repository is a configured fork ( #1071 )
2017-11-01 11:42:20 +01:00
Rhys Arkins
caa8c20b1f
fix: prune branches if repo is a fork ( #1060 )
2017-11-01 06:33:21 +01:00
Rhys Arkins
780b3f3175
feat: autodetect js type during runtime ( #1053 )
...
This is instead of autodetecting lib or app during onbiarding. This means some package files might be all pinned while others in the same monorepo can be not. This also simplifies the onboarding logic.
2017-10-29 05:15:59 +01:00
Rhys Arkins
f582181504
fix: check day of month in schedule ( #1048 )
...
Fixes #1047
2017-10-25 11:37:05 +02:00
Rhys Arkins
0427604de6
refactor: move language extraction logic to manager ( #1046 )
...
* refactor: move docker and meteor extraction to manager
* refactor: move resolve docker logic to manager
* refactor extract config
2017-10-25 10:11:11 +02:00
Rhys Arkins
31e7c8a881
refactor: move languages from branch worker to manager ( #1044 )
2017-10-25 06:48:08 +02:00
Rhys Arkins
7d06bebe2e
refactor: push detect dockerfiles to manager ( #1043 )
...
* refactor platform
* refactor detect package files
* fix
* refactor npm detect
* refactor meteor detect
* refactor: move detect package files completely to manager
* update snapshots
2017-10-25 06:00:07 +02:00
Rhys Arkins
da1ded5344
refactor: move more package worker logic to manager
2017-10-24 15:46:47 +02:00
Rhys Arkins
3b180aa679
refactor: move workers/package/npm to manager/npm/package
2017-10-24 15:46:47 +02:00
Rhys Arkins
d134d8b38e
refactor: move workers/package/docker to manager/docker/package
2017-10-24 15:46:47 +02:00
Rhys Arkins
3960da6e38
refactor: use manager subdirectory for grouping ( #1040 )
2017-10-24 13:12:44 +02:00
Rhys Arkins
a2bdcde8fb
fix: check for dockerfile content before processing ( #1039 )
2017-10-24 12:11:37 +02:00
Rhys Arkins
fbf0824dd8
refactor: rename lib/api to lib/registry ( #1038 )
...
docker and npm
2017-10-24 10:40:47 +02:00
Rhys Arkins
01fedc7e0c
refactor: move github and gitlab api to platform ( #1037 )
2017-10-24 10:27:17 +02:00
Rhys Arkins
435478864e
feat: renovate docker tag major/minor versions ( #1029 )
...
This feature enables docker tag "upgrading". Examples:
- From `node:6` to `node:8`
- From `node:6.10` to `node:6.11`
- From `node:6.11.1` to `node:6.11.3`
- From `node:6.10-onbuild` to `node:6.11-onbuild`
Currently these are disabled by default so they are opt-in, you can enable them by setting e.g. `{ docker: { minor: { enabled: true }, major: { enabled: true }}`
Closes #930
2017-10-24 06:36:52 +02:00
Rhys Arkins
7dd8bf13be
refactor: add pinDigests configuration option for docker ( #1033 )
2017-10-24 05:33:03 +02:00
Rhys Arkins
9c16565a2d
feat: enable docker by default ( #1026 )
...
Docker does now not need to be explicitly enabled.
Closes #942
2017-10-23 13:59:33 +02:00
Rhys Arkins
b2f35fef44
fix: do not delete semantic commits when migrating ( #1025 )
2017-10-23 13:06:09 +02:00
Rhys Arkins
9bac600caf
refactor: filter pinned dependencies first ( #1023 )
2017-10-23 12:45:32 +02:00
Rhys Arkins
a65a149b8d
fix: try/catch dockerfile replace ( #1022 )
2017-10-23 11:28:46 +02:00
Rhys Arkins
9c9da3f6de
fix: error and exit if cannot parse renovate.json ( #1019 )
2017-10-22 07:47:18 +02:00
Rhys Arkins
2fa50b3771
feat: rebase branch whenever versions need updating ( #1018 )
2017-10-21 16:42:40 +02:00
Rhys Arkins
636c7d17de
feat: skip group name if all depNames are the same ( #1015 )
...
This commonly applies to monorepos where the same dependency may be present in multiple.json files. Instead of using the group name to describe the PR, it uses the dependency name.
Closes #848
2017-10-21 07:46:47 +02:00
Rhys Arkins
d3df597aa7
fix: only detect meteor files that include json Npm.depends ( #1009 )
2017-10-20 14:29:12 +02:00
Rhys Arkins
34a7a459da
fix: disabled types should be filtered out by package worker ( #1005 )
...
Closes #1004
2017-10-20 09:58:09 +02:00
Rhys Arkins
aba27eb757
feat: enable meteor by default ( #1002 )
...
Renovate will now check for and update meteor package.js files unless explicitly *disabled*.
2017-10-20 07:04:04 +02:00
Rhys Arkins
76ddde1cb5
fix: ignored digest pr comment ( #1001 )
2017-10-20 06:55:52 +02:00
Rhys Arkins
9732f3c717
refactor: log assignees and reviewers success after completion ( #999 )
2017-10-20 06:04:46 +02:00
Rhys Arkins
00dabb5dc1
feat: raise pr with warning if lock file generation fails ( #994 )
...
Previously, upgrades with failing lock files were not raised as PRs. Usually this is because of missing private module configuration. Now, Renovate will raise a PR but add a comment warning of the error, with the error log. It's raised as a comment because we now won't need to regenerate the lock file error every run, and we don't want to "lose" it if the PR description gets updated.
Closes #600
2017-10-19 14:05:10 +02:00
Rhys Arkins
fa48a7fdef
feat: rename open prs before autoclosing ( #990 )
...
This is a failsafe against Renovate bugs and potentially also mistakes on the user’s part. Before deleting/pruning any branches, Renovate will rename the PR’s title so that it should not block future PRs.
Closes #989
2017-10-19 07:36:09 +02:00
Rhys Arkins
c93c761d27
refactor: log addReviewers and add empty team reviewers ( #988 )
...
See if this helps #782
2017-10-19 06:35:21 +02:00
Rhys Arkins
0552900d06
fix: add missing await to getBranchPr call ( #986 )
...
Closes #983
2017-10-19 06:12:14 +02:00
Rhys Arkins
01211f119f
fix: strip duplicates from dependencies log
...
* fix: strip duplicates from dependencies log
* chore: update prAlreadyExisted log messages
2017-10-18 21:39:10 +02:00
Rhys Arkins
f980fea6ca
feat: comment in closed PR when it is blocking an update (github) ( #981 )
...
This feature adds a new behaviour to Renovate, where it will now add a comment to any existing closed PRs that are "blocking" currently valid updates. A new API function "ensureComment" has been added, its purpose is so we can ensure there exists only one comment with a certain subject/heading. This lets us prevent duplicates as well as update existing, without having to keep state about it. ensureComment needs porting to gitlab, but should be quite easy.
2017-10-18 15:28:51 +02:00
Rhys Arkins
a4a14861b9
fix: replace some file sync functions with await ( #980 )
...
* refactor: await fs.readFile instead of sync version
* fix: replace fs and tmpDir sync with promises
2017-10-18 13:26:56 +02:00
Rhys Arkins
7a1d08eaab
fix: refactor out remaining do-while loops ( #978 )
...
* fix: convert prBody trimming from do-while to recursive
* fix: convert gitlab projects do-while to use pagination
2017-10-18 11:40:48 +02:00
Rhys Arkins
5639f4b601
fix: move renovate repository inner inside outer function ( #977 )
...
This solves the missing config.api problem introduced when moving to recursion
2017-10-18 11:18:48 +02:00
Rhys Arkins
dd43fb3237
fix: replace repository do-while loop with recursion ( #976 )
2017-10-18 10:29:49 +02:00
Rhys Arkins
11b1b0ea51
fix: add missing await after findPr ( #965 )
2017-10-17 13:22:53 +02:00
Rhys Arkins
e310887f36
refactor: remove checkForClosedPr
...
replace with findPr
2017-10-17 11:09:03 +02:00
Rhys Arkins
3d84c22cf0
feat: skip regenerating lock file maintenance if branch exists ( #956 )
2017-10-16 21:57:48 +02:00
singapore
c96f24a82c
chore: remove unnecessary log.info from check-existing
2017-10-16 15:22:48 +02:00
Rhys Arkins
652b910d81
fix: only detect meteor package.js files containing Npm.depends ( #953 )
...
Closes #952
2017-10-16 14:21:45 +02:00
Rhys Arkins
7c410c1283
feat: ignore mistakenly closed PRs and recreated closed ( #951 )
2017-10-16 13:13:31 +02:00
Rhys Arkins
ee44d1c3ba
feat: reimplement findFilePaths using trees ( #950 )
...
* refactor: replace github code search with getTree/manual search (#944 )
Previously Renovate was using the GitHub code search API once for each filename we are looking for. Instead, we now retrieve a list of files in the repository and cache it so it can be reused for filename matches.
Closes #939
* fix: use recursive=true
* fix: reset fileList for every repo (github)
* feat: implement findFilePaths on gitlab (#945 )
* refactor: do not check manually for root package.json
* fix: reset fileList for every repo (gitlab)
* fix tests
2017-10-16 11:59:59 +02:00
Rhys Arkins
3c1415844a
fix: rename and delete erroneous onboarding PRs if found ( #948 )
2017-10-16 07:59:42 +02:00
Rhys Arkins
74a590ae8e
fix: revert findFilePath changes ( #947 )
...
* Revert "feat: implement findFilePaths on gitlab (#945 )"
This reverts commit 2820b5eef3
.
* Revert "refactor: replace github code search with getTree/manual search (#944 )"
This reverts commit 33851a5aea
.
2017-10-16 07:33:47 +02:00
Rhys Arkins
33851a5aea
refactor: replace github code search with getTree/manual search ( #944 )
...
Previously Renovate was using the GitHub code search API once for each filename we are looking for. Instead, we now retrieve a list of files in the repository and cache it so it can be reused for filename matches.
Closes #939
2017-10-15 17:38:45 +02:00
Rhys Arkins
8fc61e35bc
feat: add assignees and reviewers whenever status checks fail ( #928 )
...
This feature means that you can configure branches/PRs to automerge, but if status checks fail (preventing automerge) then you can still get assigneed the PR to take action. Previously such PRs remained unassigned because we do not assign automerging PRs by default, to reduce noise.
Closes #722
2017-10-13 10:56:18 +02:00
Rhys Arkins
1a174226ed
feat: keep branches/PRs updated when out of schedule ( #926 )
...
By default, Renovate will now continue *updating* - but not creating - branches even if off-schedule. This applies to features such as (a) rebasing branches if master changes, (b) updating if new version comes, (c) creating PRs if tests pass, (d) automerging. It is planned that (b) will be configurable in a future feature. To disable this behaviour altogether, set updateNotScheduled to false.
Closes #879
2017-10-13 06:42:17 +02:00
Rhys Arkins
c15cfb6406
fix: refactor package file detection to not modify deep state ( #923 )
2017-10-12 20:02:04 +02:00
Rhys Arkins
ad3f8d945f
fix: wrap meteor parsing in try/catch ( #921 )
2017-10-12 18:25:26 +02:00
Rhys Arkins
393c24c652
fix: stop attempting branch merge if pr exists ( #920 )
2017-10-12 17:39:10 +02:00
Rhys Arkins
8b99ce5294
feat: detect languages during onboarding ( #919 )
...
* refactor: simplify onboarding logic
* docker meteor tests
* handle no package files case
* fix coverage
2017-10-12 16:29:20 +02:00
Rhys Arkins
97ebf27382
refactor: getOnboardingStatus returns config object ( #918 )
2017-10-12 10:58:16 +02:00
Rhys Arkins
e9ee8002df
fix: revert docker/meteor onboarding code ( #916 )
...
* Revert "feat: support docker and meteor onboarding without npm"
This reverts commit 437145b901
.
# Conflicts:
# test/workers/repository/onboarding.spec.js
* chore: downgrade npm cache message from debug to trace
2017-10-11 19:25:25 +02:00
Rhys Arkins
68bcb5e726
fix: convert for loop to for..of ( #915 )
...
* fix: convert for loop to for..of
* chore: lessen preset debugging
* chore: set detectPackageFiles to debug
* fix lint
2017-10-11 18:54:09 +02:00
Rhys Arkins
bf2491bfc1
fix: don’t automerge pinned dependencies ( #914 )
2017-10-11 16:20:17 +02:00
Rhys Arkins
1696244ca0
feat: warn in onboarding if package.json missing or failed to parse ( #911 )
...
* chore: downgrade json parsing warning from warn to debug
* feat: warn in onboarding if package.json missing or failed to parse
Closes #891
2017-10-11 14:38:40 +02:00
Rhys Arkins
a60748c5ec
feat: improve onboarding help
...
Adds mention of app author + how to recreate PR.
2017-10-11 12:46:30 +02:00
Rhys Arkins
ce178f96bc
chore: improve meteor and docker info log
2017-10-11 12:10:31 +02:00
Rhys Arkins
437145b901
feat: support docker and meteor onboarding without npm
2017-10-11 12:10:31 +02:00
Rhys Arkins
ff906bd832
fix: rename javascript types to npm
2017-10-11 12:10:31 +02:00
Rhys Arkins
a1941e309b
fix: only check package.json file types for isPrivate
2017-10-11 12:10:31 +02:00
Rhys Arkins
eacd2b258a
refactor: check if npm enabled before detecting files
2017-10-11 12:10:31 +02:00
Rhys Arkins
7c17c666f4
fix: better pin description in oboarding
2017-10-11 12:10:31 +02:00
Rhys Arkins
039ff55b88
refactor: rename depType docker to Dockerfile
2017-10-11 12:10:31 +02:00
Rhys Arkins
343814d467
fix: use presets js-app and js-lib ( #906 )
2017-10-10 12:34:35 +02:00
renovate[bot]
8866603a46
fix(deps): update dependency get-installed-path to v4 ( #892 )
...
* fix(deps): update dependency get-installed-path to v4.0.3
* fix
2017-10-08 06:30:01 +02:00
Rhys Arkins
28a18b18da
feat: write existing lockfile before regenerating ( #881 )
...
It appears that writing the existing lockfile before regenerating a new one can help speed some resolutions up.
Closes #815
2017-10-08 05:52:58 +02:00
Rhys Arkins
913d0cf208
feat: create PRs if branch automerge failed ( #888 )
2017-10-05 09:31:10 +02:00
Rhys Arkins
5dab080ef7
fix: info message if automerge branch fails ( #886 )
...
* fix: info message if automerge branch fails
* fix snapshot
2017-10-04 16:52:50 +02:00
Rhys Arkins
88e6406e77
fix: dont log full upgrade object ( #876 )
2017-10-02 20:34:51 +02:00
Rhys Arkins
853a43937a
fix: check if depName exists before replacing ( #873 )
2017-10-02 14:14:24 +02:00
Rhys Arkins
e42b4034eb
feat: sanitize branch names ( #872 )
...
Previously, you might see branch names like `renovate/@types/jquery-3.x`. Now, such branches will instead be like `renovate/types-jquery-3.x`.
2017-10-02 11:38:42 +02:00
Rhys Arkins
d392efc36c
chore: add filename to Renovating package.json log ( #869 )
2017-10-01 15:25:05 +02:00
Rhys Arkins
1c42140475
fix: write npmrc to subdirectories with lock file ( #858 )
...
* fix: write npmrc to subdirectories with lock file
* fix lint
2017-09-29 10:42:16 +02:00
Rhys Arkins
6969ff3a36
fix: only massage package name if name exists ( #859 )
2017-09-29 10:37:02 +02:00
Rhys Arkins
d5f11ad9bd
feat: remove {} template strings from package.json name ( #855 )
2017-09-29 09:18:59 +02:00
Rhys Arkins
8125c772ae
feat: ignoreNpmrcFile ( #853 )
...
This feature adds support for ignoring .npmrc files in a repository. Set config option to true if you wish to ignore.
Closes #851
2017-09-29 08:22:22 +02:00
Rhys Arkins
23f8467d1e
feat: support non-root yarn workspaces ( #852 )
...
Previously, Renovate assumed that any yarn workspaces configuration would be in the root of the repository. Now, workspaces can be located within a subdirectory, e.g. `frontend/`. Note: Renovate still supports only one workspace per repository, please file an issue if you require more than one.
Closes #842
2017-09-29 08:08:52 +02:00
singapore
7ef9e65052
chore: downgrade rebase warning to info
2017-09-28 15:04:27 +02:00
Rhys Arkins
636b5fd82a
fix: log npm version when generating lockfile ( #836 )
...
Now adds `stdout` and `stderr` from `npm` and `yarn` installs to the "Generated lockfile" log message, so that the exact versions of npm and yarn can be known in the default logs.
Closes #827
2017-09-24 16:53:47 +02:00
Rhys Arkins
fe61fe2e7f
fix: add —ignore-engines to yarn install ( #831 )
2017-09-23 08:05:43 +02:00
Rhys Arkins
9aad365032
feat: improve logging visibility ( #828 )
...
* fix: add upgrade and branch timings to log
Adds timing logs for upgrade detection + branch updating stages.
Closes #821
* improve request retry logging
2017-09-22 07:04:41 +02:00
Rhys Arkins
9ff555c74b
fix: promisify lockfiles ( #826 )
...
`npm` and `yarn` lockfile generation use promisified child process `exec` now instead of `spawnSync`.
2017-09-20 22:56:57 +02:00
Rhys Arkins
d7025f25d6
fix: Detect npm & yarn when globally installed ( #825 )
...
This fix improves the way Renovate detects embedded/installed npm and yarn. It tries:
- locally installed npm or yarn
- npm or yarn embedded inside globally installed renovate
- globally installed npm or yarn
- global `yarn` or `npm` commands as fallback
Fixes #824
2017-09-20 07:52:44 +02:00
Rhys Arkins
710d0262e2
fix: logger.info not warn when failing to look up dep ( #819 )
2017-09-16 08:25:31 +02:00
Rhys Arkins
450b16b459
fix: downgrade dep not found error to warning ( #818 )
2017-09-16 07:39:27 +02:00
renovate[bot]
cfc6c5ccdf
fix: update dependency eslint-config-airbnb-base to v12 ( #771 )
...
* chore(deps): update dependency eslint-config-airbnb-base to v12.0.0
* fix lint
2017-09-15 19:46:25 +02:00
Rhys Arkins
f9b12dbb3e
fix: don’t massage packagefile name ( #814 )
2017-09-15 13:34:53 +02:00
Rhys Arkins
3956877288
fix: use replace rather than full substitution for invalid package file name ( #813 )
2017-09-15 12:58:06 +02:00
Rhys Arkins
2e40724856
fix: pass PATH to lockfile scripts ( #812 )
2017-09-15 11:48:12 +02:00
Rhys Arkins
a4490add1e
fix: log lock file generation times ( #811 )
2017-09-15 09:10:50 +02:00
Rhys Arkins
20542e7529
fix: write only updated package.json files when checking for lock files ( #810 )
2017-09-14 22:10:51 +02:00
Rhys Arkins
6f60289782
feat: install npm as dependency ( #808 )
...
* install npm from npm
* use embedded npm and remove versions checking
2017-09-14 18:24:14 +02:00
Rhys Arkins
e4b62a32b2
fix: pass empty env to lock file scripts ( #807 )
2017-09-14 18:05:38 +02:00
Rhys Arkins
a8126a383f
feat: use yarn as a dependency ( #806 )
...
Renovate will now depend on yarn like any other dependency and call this version directly, instead of having an embedded version. This will allow us to "renovate" the yarn version we use too.
2017-09-14 17:57:17 +02:00
singapore
75c9203ae0
fix: more check package.json name
2017-09-14 13:57:28 +02:00
Rhys Arkins
60f54f8a5a
fix: Check for package.json name first ( #805 )
2017-09-14 13:56:09 +02:00
Rhys Arkins
760b128b3e
feat: massage package.json files before lock file generation ( #804 )
...
- Any package names not matching valid pattern will be rewritten to “dummy”
- “engines” and “scripts” fields will be completely removed
Closes #801 , Closes #784
2017-09-14 10:54:41 +02:00
Rhys Arkins
a88ba0d16a
feat: Dockerfile digest support ( #788 )
...
This feature adds initial support for renovating Dockerfiles. Renovate now:
- Detects all `Dockerfile`s in repo
- Searches for `FROM x` in first non-comment line, breaks x into image, tag, digest
- Queries public Docker registry for image:tag combination to find latest digest
- Patches Dockerfile if necessary
- Creates branches/PRs as like with npm
Closes #795
2017-09-14 09:31:36 +02:00
Rhys Arkins
9c56d6f51c
fix: nrefactor config.logger -> logger ( #794 )
2017-09-14 07:21:22 +02:00
Rhys Arkins
d546f30a8f
chore: fix eslint ( #793 )
...
* fix eslint configuration
* run eslint fix
2017-09-13 21:43:52 +02:00
Rhys Arkins
31b1ee4ef7
refactor: separate npm specifics from package worker ( #792 )
2017-09-13 21:20:07 +02:00
Rhys Arkins
dd6f3630b6
refactor: move pin config to definitions ( #791 )
2017-09-13 20:52:07 +02:00
Rhys Arkins
d765b34c33
feat: renovate meteor package.js dependencies ( #786 )
...
This feature adds support for renovating Meteor's `package.js` files. Meteor config is disabled by default so must be manually enabled to work. If enabled, Renovate uses GitHub's search API to look for any files named `package.js` that include the text `Npm.depends`. If so then the file is parsed using Regex to extract its dependencies and check them for updates.
Closes #785
2017-09-12 09:33:41 +02:00
Rhys Arkins
8fa94141a1
feat: use package names for ignoring when lerna or workspaces ( #787 )
...
* add minimatch
* feat: use package names for ignoring when lerna or workspaces
Renovate will now:
- Find all package.json files matching lerna or yarn workspaces glob pattern
- Retrieve package names from within those package.json files
- Implicitly ignore (not renvoate) any of those names
Closes #781
2017-09-12 07:49:56 +02:00
Rhys Arkins
e5654fc812
fix: convert only first line of commit message to lowercase ( #779 )
...
Helps #777
2017-09-07 21:18:50 +02:00
Rhys Arkins
1957bba62d
feat: update embedded yarn to v1.0.1 ( #778 )
2017-09-07 20:34:53 +02:00
Rhys Arkins
4e6c7e2ef5
feat: delete branch if PR creation fails ( #774 )
...
This will help “self heal” in cases where the branch becomes invalid and PR creation continually fails.
Closes #773
2017-09-03 10:02:48 +02:00
Rhys Arkins
33d58ce2a3
fix: log prTitle when creating pr ( #772 )
2017-09-03 06:59:51 +02:00
Rhys Arkins
bae9ae0595
feat: stop branch processing after lock file error or pin dependencies ( #768 )
...
If a repository has a lock file error (e.g. can’t look up a private module) then it will no longer attempt to create every branch. Instead, it will error/exit after the first branch. Additionally, “Pin Dependencies” has been sorted to be first and further branches won’t be added or updated until Pin Dependencies has been merged.
2017-09-02 08:51:49 +02:00
Rhys Arkins
47df66143b
fix: do not warn when lerna subdirectories not found ( #762 )
2017-09-01 11:40:12 +02:00
Rhys Arkins
6c0d50703f
feat: encrypted configuration strings ( #759 )
...
A new config object `encrypted` can be defined at any level and contain encrypted configuration strings. Initial use is for encrypting an npm token for use with the hosted renovate app.
Closes #650
2017-09-01 06:45:51 +02:00
Rhys Arkins
5f708c2297
fix: do not restart renovation if automerging failed ( #755 )
2017-08-31 07:15:53 +02:00
Rhys Arkins
16d36a15e2
feat: add npmToken, npmrc and yarnrc configuration support ( #753 )
...
Renovate config can now support the fields `npmToken`, `npmrc` and `yarnrc`. `npmrc` and `yarnrc` (note no `.` prefix) can be used as an alternative to checking the respective files into the repo and have the same effect. `npmToken` is a shorter alternative and allows for just the npm token to be added, defaulting to the public npm registry.
2017-08-29 09:25:44 +02:00
Rhys Arkins
6e9c73e35a
feat: restart repo renovate after automerge ( #751 )
...
Previously, the automerge feature was causing some undesirable behaviour when multiple branches were open at the same time. Example: #707 . The main problem is that other branches will still be calculated based on the original `package.json` contents and not the post-merge contents. The simplest solution seems to be:
- Stop all subsequent branch processing after any automerge
- Restart repository renovation
This continues until no branch has automerged in a cycle.
Closes #750
2017-08-28 15:50:11 +02:00
Rhys Arkins
deac76b015
feat: support timeout for pr creation = not-pending ( #748 )
...
We should not leave the PR unopened forever if the branch remains in not-pending state too long. Some status checks may leave the status as “pending” instead of “failed”. Defaults to 12 hours but is configurable.
Closes #747
2017-08-28 11:37:09 +02:00
Rhys Arkins
8ebb32cd87
feat: display extended error in onboarding if lookup fails ( #744 )
...
Closes #626
2017-08-27 13:55:41 +02:00
Rhys Arkins
7c3df0ba23
feat: yarn workspaces lock file support ( #743 )
...
This feature adds explicit support for correctly generating the yarn.lock file for workspaces. Specifically, it means that the yarn.lock in the root directory is regenerated whenever *any* package.json is modified. Previously lock files were only every updated if its corresponding package.json changes, but that is not the way yarn workspaces works.
Closes #473
2017-08-27 08:17:34 +02:00
Rhys Arkins
ec1eaa2dd0
feat: convet ignoreNodeModules to ignorePaths ( #741 )
...
The ignoreNodeModules feature is replaced with a generic ignorePaths one and allows any array of strings to be defined and package.json file matching them will be skipped/ignored. Also migrates any existing config/presets.
2017-08-26 21:28:29 +02:00
Rhys Arkins
b0715ba5c0
fix: info not error when lock file fails ( #739 )
2017-08-26 16:47:21 +02:00
Rhys Arkins
ea9ace2a76
feat: branch worker updates ( #736 )
...
This is a major refactor of branch code to prepare for Yarn workspaces plus creating PRs for branches with failing lockfiles. Marked as "feature" to cause a minor version bump due to the moderate chance of accidentally breaking something.
2017-08-26 16:10:18 +02:00
Rhys Arkins
b4dc6aedb2
fix: don’t throw error if failing to set new package.json value ( #737 )
2017-08-26 08:02:29 +02:00
Rhys Arkins
9fdd70232e
fix: debug current file content if inserting new value in package.json fails ( #735 )
2017-08-25 22:43:32 +02:00
Rhys Arkins
3917fc6bae
fix: explicitly check automerge = true ( #728 )
...
* fix: explicitly check automerge = true
* update presets fixtures and tests
* fix versions tests
* update tests
2017-08-24 12:39:23 +02:00
Rhys Arkins
963a35789e
fix: improve ensurePr logs and try/catch ( #726 )
2017-08-24 10:14:53 +02:00
Rhys Arkins
4bc7009db1
fix: improve schedule massage logic ( #725 )
...
- reuse suffix for any “before and after” splits
- move “on every weekday” massage to migrate
2017-08-24 07:04:04 +02:00
Rhys Arkins
5693b17ecf
fix: advanced schedules migration ( #723 )
...
- Split ‘x and y’ schedule into [x, y]
- Replace schedules like ’on mondays’ with ‘on monday’
2017-08-23 11:50:05 +02:00
Rhys Arkins
52b2de3bdb
fix: equalize carriage returns before comparing lock files ( #717 )
...
Eliminating one more possibility for #707
2017-08-22 10:46:27 +02:00
Rhys Arkins
21aa961264
feat: re-use node_modules per package file ( #704 )
...
tmpDir is now created once per-repository and package.json files are written and lockfiles generated based on the repo's directory structure. This way node_modules can be reused between branches in same run.
Closes #501
2017-08-22 06:28:46 +02:00
Rhys Arkins
b657d3c291
feat: support lock file maintenance automerge ( #712 )
...
Refactored the `automerge` field to change it to boolean. Existing string will be migrated to new config. Automerging lock files is now possible by adding `”lockFileMaintenance”: { ”automerge”: true}` to config.
Closes #706
2017-08-21 13:41:48 +02:00
Rhys Arkins
f598c5f899
fix: do not automerge pr if it has been modified ( #711 )
...
Add check for pr.canRebase. This will be false if the PR has been modified.
Fixes #790
2017-08-21 11:17:47 +02:00
Rhys Arkins
cffbc00f65
fix: resolve all presets before merge ( #710 )
...
Previously, preset resolution was being done last, after merges of renoate.json or package.json config. This caused wrong ordering of config in cases where both presets + regular config was in use. Instead, resolving of presets is now done at each stage before merging.
Fixes #708
2017-08-21 10:19:48 +02:00
Rhys Arkins
d6c5aa6663
fix: info not warn for scoped package 404s ( #701 )
2017-08-19 07:01:21 +02:00
Rhys Arkins
68033a7040
fix: imply lerna packages dir if not in config ( #700 )
2017-08-19 06:50:53 +02:00
Rhys Arkins
7187821416
fix: hand-craft onboarding config string for better formatting ( #694 )
2017-08-18 12:56:48 +02:00
Rhys Arkins
3265cbbb51
fix: onboarding packages should have : prefix ( #693 )
2017-08-18 10:29:27 +02:00
Rhys Arkins
ad40f0abd8
feat: shareable preset configs ( #658 )
...
This PR implements eslint-inspired shareable configs. With this feature, we:
- Add new config option "extends"
* This is an array of preset config names that the current config or preset extends/inherits from
- Add new config option "description"
* Each preset config should include a description of its functionality that is human-readable
- Provide a set of commonly use configs called "preset defaults"
- Provide two "full" preset configs: "app" and "library"
* Almost the same but app pins *all* version numbers while library only pins devdependencies
- Replace regular config in onboarding with one of these two presets
- Generate human-readable description of config in Onboarding PR
- Support npm for hosting configs (both scoped and non-scoped)
Closes #657 , Closes #671 , Closes #647
2017-08-18 06:10:19 +02:00
Rhys Arkins
c28176e879
refactor: use logger const in repository worker ( #685 )
2017-08-17 12:33:21 +02:00
Rhys Arkins
c44bd198c7
fix: cast groupName to string in case it’s not ( #684 )
2017-08-17 11:24:22 +02:00
Rhys Arkins
f2f15c0650
fix: invalid schedule should only warn in logs ( #683 )
2017-08-17 11:22:30 +02:00
Rhys Arkins
ddb1629d9a
fix: return massaged config from migrateAndValidate ( #681 )
...
* add massage test
* fix: return massaged config from migrateAndValidate
2017-08-15 13:26:05 +02:00
Rhys Arkins
3099bf9da1
fix: migrate last day of month schedule to first of month ( #680 )
2017-08-15 11:54:36 +02:00
Rhys Arkins
06358e32c7
fix: print schedule text along with error message ( #679 )
...
* fix: print schedule text along with error message
* update test
2017-08-15 09:13:25 +02:00
Rhys Arkins
26bafe8d7a
fix: massage “on every” to “every” in schedules ( #677 )
2017-08-15 07:18:45 +02:00
Rhys Arkins
c38e2cdcfe
fix: wrap and warn non-array schedule ( #676 )
2017-08-14 22:16:28 +02:00
Rhys Arkins
4a82b7379d
fix: better stringify yarn lock error message ( #675 )
2017-08-14 20:18:26 +02:00
Rhys Arkins
43660d51c4
feat: validate schedule ( #674 )
...
Also enables config errors to be shown in Configure Renovate PR.
Closes #550
2017-08-14 11:09:14 +02:00
Rhys Arkins
e9f672060e
fix: disable unpublish-safe default ( #672 )
...
It was a mistake to enable this feature by default, and should be disabled. A check has been made to set the status to “success” if it was previously “pending” and the setting is now false. This should also cover the case when someone enables it and then disables it.
Fixes #667
2017-08-14 06:27:00 +02:00
Rhys Arkins
99e68cddd3
feat: process all package rules in parent->child order ( #666 )
2017-08-11 08:03:18 +02:00
Rhys Arkins
d27d35e535
feat: allow strings instead of lists ( #665 )
...
Updates definitions for schedule and package rules to allow strings to be massaged to lists - instead of erroring.
Closes #662
2017-08-11 07:29:16 +02:00
Rhys Arkins
88aaaccfb9
fix: don't detect semantic commits if config set globally ( #664 )
...
Fixes #656
2017-08-10 22:35:05 +02:00
Rhys Arkins
117316c0b1
fix: check current status check before setting ( #655 )
...
Fixes #649
2017-08-08 23:03:52 +02:00
Rhys Arkins
ccb66310b1
feat: Pre-fetch all package.json files ( #642 )
...
Repository initialisation is refactored so that all package files and their content is retrieved up-front before an renovating begins. This allows us to know both how many package files as well as determine if there is renovate json in a package.json before triggering the onboarding PR.
Closes #634
2017-08-08 06:25:44 +02:00
Ika
126e2fdd49
docs(status-checks): fix typo in url ( #639 )
2017-08-07 05:21:00 +02:00
Rhys Arkins
d7a6bbe367
feat: unpublish-safe status check ( #635 )
...
Renovate now adds a status check renovate/unpublish-safe that has the following behaviour:
If any upgrade in the branch is < 24 hours old then the status check state is "pending"
If all upgrades in the branch are 24 hours or more old then the status check state is "success"
This is able to be disabled via a new option "unpublishSafe".
Closes #494
2017-08-06 15:38:10 +02:00
Rhys Arkins
ae38fd5d06
fix: return false after successful branch automerge ( #631 )
...
This prevents attempts to view the PR or check branch status again.
Fixes #499
2017-08-06 06:36:04 +02:00
Rhys Arkins
99ac394305
fix: lock file generation logger errors ( #623 )
2017-08-05 06:49:05 +02:00
Rhys Arkins
6d688412b4
fix: parse/stringify lockfile error messages ( #622 )
2017-08-05 06:20:54 +02:00
Rhys Arkins
a1e1b1770f
fix: log full package lock generation error ( #621 )
2017-08-05 05:53:24 +02:00
Rhys Arkins
ab7884008b
fix: always pass logger to getLockFile ( #617 )
2017-08-04 17:47:03 +02:00
Rhys Arkins
e913feb6ab
fix: npm and yarn use branch logger ( #615 )
...
Closes #506
2017-08-04 16:23:45 +02:00
Rhys Arkins
5d6652b4bc
fix: remove non-functioning yarn cache folder option ( #614 )
2017-08-04 16:12:24 +02:00
Rhys Arkins
f8ec742b3b
feat: Detect semantic commits every run ( #609 )
...
Now no need to detect at onboarding time. Also suggests removing setting in migration if it is already the same value.
Closes #528
2017-08-04 14:49:02 +02:00
Rhys Arkins
e7ce772e94
feat: Make semanticPrefix implicit in templates ( #608 )
...
No need for {{semanticPrefix}} to be specified in templates now - it will be implicitly added to start of commit message and PR titles if semanticCommits=true
2017-08-04 12:34:42 +02:00
Rhys Arkins
d14c64ad91
feat: Warn workspaces users ( #607 )
...
Links to open issue about workspaces.
Closes #601
2017-08-04 12:06:32 +02:00
Rhys Arkins
b51915912f
fix: check for legacy pr title format ( #606 )
...
Checks for legacy PR title format so we don't accidentally recreate any of those.
2017-08-04 11:55:49 +02:00
Rhys Arkins
134065c7c7
refactor: use branch prefix in templates ( #604 )
...
This allows for the easy overriding of our default `renovate/` branch naming.
Closes #586
2017-08-04 08:32:22 +02:00
Rhys Arkins
4a4016f232
fix: escape #issueNumber and backticks in prBody ( #602 )
...
Adds a zero width space between the # and first digit in issue numbers to prevent GitHub autolinking, also replaces escaped backticks with `<code></code>`
Closes #595
2017-08-04 07:34:11 +02:00
Rhys Arkins
6c1f27f905
fix: semantic commit messages should always be lower case ( #598 )
...
commitMessage and prTitle will be converted to lowercase after compilation if semanticCommits=true
Fixes #594
2017-08-03 21:49:44 +02:00
Rhys Arkins
3df264501f
chore: add warning if yarn workspaces found ( #599 )
2017-08-03 21:48:58 +02:00
Rhys Arkins
db2e6dd1b9
refactor: Convert Object.assign to spread ( #585 )
...
Closes #226
2017-08-03 08:01:20 +02:00
Rhys Arkins
c3b123a83d
feat: Advanced package rules ( #582 )
...
- Renames `packages` to `packageRules`
- Refactor `packageName` to `packageNames` array
- Refactor `packagePattern` to `packagePatterns` array
- Adds `excludePackageNames` array
- Adds `excludePackagePatterns` array
Closes #529
2017-08-03 07:55:59 +02:00
Rhys Arkins
8809861d3c
fix: Circular reference in depTypeConfig ( #581 )
2017-08-02 21:33:58 +02:00
Rhys Arkins
195988aa0b
fix: Incorrect variable used to resolve depTypeConfig ( #579 )
2017-08-02 16:19:52 +02:00
Rhys Arkins
8f8a4de69f
fix: Schedule should always be an array ( #580 )
...
Massaging of string to array is done in migration function.
2017-08-02 16:14:09 +02:00
Rhys Arkins
d2ad057a33
feat: Improve depTypes configuration ( #577 )
...
depTypes configuration is now refactored from being an array of strings/objects to having each type of dep (`dependencies`, `devDependencies`, `optionalDependencies`, `peerDependencies`) be a first class object in the namespace. The "old" way of configuring is still supported but is transformed using a migrateConfig script. Later, PRs will be raised to impacted repositories to suggest the new config.
2017-08-02 14:05:45 +02:00
Rhys Arkins
7f97424092
fix: Separate config migration check to own file ( #576 )
2017-08-02 08:54:42 +02:00
Rhys Arkins
d9d131de6c
feat: Full patch separation support ( #572 )
...
This PR adds explicit patch support. A user can set `separatePatchReleases` to true and receive not only major/minor updates but also patch updates separately. This functionality is also implicitly enabled if `automerge` is set to `patch`.
This PR also enables separate major/minor/patch configuration, e.g. config overrides for major versions, for patch versions, etc. `branchName` is currently overridden for patch branches using this technique.
Closes #390 , Closes #538
2017-08-01 17:10:53 +02:00
Rhys Arkins
f1d7330f2b
fix: Improve PR body fixes for scoped packages ( #569 )
...
Escape all scoped package mentions
Escape in group PR bodies too
Remove empty repositoryUrl links
2017-08-01 08:49:41 +02:00
Rhys Arkins
6cd398f0c5
fix: Escape scoped package names in PR bodies ( #568 )
...
GitHub attempts to autolink any @user mention and this causes problems when we use scoped npm modules like `@types/gulp`. This escapes such package names with a zero width space to fool GitHub’s parser.
Fixes #518
2017-08-01 07:22:43 +02:00
Rhys Arkins
8374ef6caa
fix: Allow ‘@user’ format for assignees and reviewers ( #567 )
...
Usernames can now be expressed as like either ‘rarkins’ or ‘@rarkins’
2017-08-01 06:58:13 +02:00
Rhys Arkins
6c7382df14
fix: Check for valid version before performing npm lookup ( #565 )
...
Closes #564
2017-07-31 16:03:19 +02:00
Rhys Arkins
023e520702
fix: Do not log warning when deprecated config options found ( #563 )
2017-07-31 14:50:44 +02:00
Rhys Arkins
8fc97af5c7
feat: Ignore forked repositories unless already configured ( #561 )
...
This feature is particularly useful in the case that renovate is enabled on all repositories a user/account has. Many of those might be forks, and it makes no sense to renovate those by default. Instead, Renovate will skip over forked repositories unless a renovate.json has been added to their root.
Also, Renovate will now prune branches after deciding to skip a repository, whether because of a fork or disablement.
Closes #541
2017-07-30 22:59:53 +02:00
Rhys Arkins
055cfaf73b
fix: Don’t warn for any getChangeLogJSON errors ( #557 )
2017-07-29 10:29:26 +02:00
Rhys Arkins
7d493a14bf
feat: Log warnings when unknown configuration options or option types found ( #554 )
...
This PR adds detection and log warnings for the following config validation errors:
- Unknown config option (e.g misspelling of a valid config option)
- Config option is a wrong type (e.g. string instead of boolean)
It does *not* propagate this warning to the user (i.e. in onboarding or PRs) yet due to the high chance that we'll find a false negative. I will watch logs for a week or so and then once happy with results will activate user-visible warnings via #556 .
Closes #548 , Closes #555
2017-07-28 21:15:27 +02:00
Ika
3c83075fb8
feat: add 'patch' option to automerge ( #539 )
...
* feat: add 'patch' option to automerge
* test: add tests for automerge = patch
* docs: add patch option to automerge
* refactor(isAutomergeEnabled): write code verbosely
* feat: export isAutomergeEnabled
* test(isAutomergeEnabled): add tests
2017-07-27 22:17:28 +02:00
Rhys Arkins
984b5a89b8
fix(lerna): Use packages path from lerna.json ( #542 )
2017-07-27 22:15:50 +02:00
Rhys Arkins
434def2bf4
fix(lerna): Return empty lerna packages if 404 for packages/* ( #540 )
2017-07-27 14:58:26 +02:00
Rhys Arkins
feffa774d8
feat(lerna): Add lerna support ( #535 )
...
If a `lerna.json` is present in the root of the repository, then Renovate will automatically ignore (i.e. not renovate) all package names found in the `packages/*` path. It does not require an explicit configuration to work.
2017-07-27 09:36:36 +02:00
Rhys Arkins
f866f54a14
fix(github): Return repoForceRebase to main config ( #533 )
2017-07-26 10:56:11 +02:00
Rhys Arkins
c4e8b6bf94
fix(npm): Log correct package name when 404 ( #531 )
...
Because we are running Promise.all on package lookups, we were getting some incorrect package names in our log messages.
2017-07-26 08:15:28 +02:00
Rhys Arkins
2331d6e840
feat(branch): Check for rebase if repo branch protection is strict ( #527 )
...
We now check branch protection configuration for the repository's base branch to see if branches must be kept up-to-date. If so then we check Renovate branches for rebasing even if rebaseStalePrs is not set to true.
Closes #524
2017-07-25 18:18:19 +02:00
Rhys Arkins
c22fc69785
fix(branch): Add check before rebasing stale PRs ( #526 )
...
We should not rebase stale PRs if they have been edited any anyone. This adds a check from the PR to see if it can be rebased. If no PR then we assume we can - nobody should be editing our branches directly without PR.
Closes #525
2017-07-25 15:07:53 +02:00
Rhys Arkins
beb37bc128
feat(lockFile): Support lockFileMaintenance disabling in env
...
It’s now possible to set `RENOVATE_LOCK_FILE_MAINTENANCE={}` in env to disable lock file maintenance.
Closes #515
2017-07-24 20:56:15 +02:00
Rhys Arkins
d48ba65528
fix(npm): Pass npm version and logger to getLockFile
2017-07-24 08:38:45 +02:00
Rhys Arkins
9af6117386
fix(lockFiles): Pass NODE_ENV=dev to npm and yarn installs
...
Without this setting, it can result in an incomplete `package-lock.json` if renovate is run on a system with NODE_ENV=production set.
Fixes #517
2017-07-24 08:10:42 +02:00
Rhys Arkins
2bd452281f
fix(npm): Run npm install with —ignore-scripts
2017-07-24 06:54:13 +02:00
Rhys Arkins
cd762c7bc6
fix(onboarding): Don’t hyperlink package name if undefined repository URL
2017-07-23 14:25:37 +02:00
Rhys Arkins
ee2a344013
fix(onboarding): Escape scoped npm repos in PR body
...
Uses a zero length space
2017-07-23 14:25:13 +02:00
Rhys Arkins
a39a86c6ba
fix(yarn): Filter out pure-lockfile option from yarnrc
...
A repository with .yarnrc specifying pure-lockfile was preventing our yarn from saving a lockfile too! Now filter it out before writing the yarnrc to our tmp directory.
Closes #507
2017-07-21 10:58:11 +02:00
Rhys Arkins
47044a11e1
feat(yarn): Use embedded yarn version ( #510 )
...
Renovate now uses an embedded yarn binary. This way, the version of yarn used can be known + there is no requirement for Renovate admins to install yarn separately.
2017-07-21 08:47:05 +02:00
Rhys Arkins
89200842f1
fix(yarn): Add —ignore-scripts when generating yarn.lock
...
This should avoid us accidentally trying to “build” anything post-install.
2017-07-20 20:24:11 +02:00
Rhys Arkins
27b443c4a1
fix(onboarding): De-duplicate onboarding branch commits ( #504 )
...
Now checks in case `renovate.json` content is identical and if so then doesn’t unnecessarily re-commit the same file each run.
2017-07-19 17:47:45 +02:00
Rhys Arkins
cadc148cd0
fix(changelog): Check that err.message exists
2017-07-19 08:46:00 +02:00
Rhys Arkins
8e48d97392
feat(logs): Support custom log detail fields
...
This removes the need to JSON.stringify() objects in logs. Default bunyan fields plus our custom meta fields are stripped out, and everything else is stringified in the details field.
Closes #498
2017-07-19 08:05:26 +02:00
Rhys Arkins
8e7fe1d37b
chore(logger): Reduce some log.warn to debug
2017-07-19 05:55:21 +02:00
Rhys Arkins
475e548e9c
feat(versions): Roll back if current version missing/unpublished ( #497 )
...
If the current version is not in the version list on the npm registry, we assume it has been unpublished and we raise a roll back PR.
Closes #493
2017-07-18 20:01:00 +02:00
Rhys Arkins
8666835bc8
fix(repository): Ignore uninitiated repositories
...
Closes #379
2017-07-18 14:31:48 +02:00
Rhys Arkins
f6980b51f2
fix(cleanup): Add pr exists check
2017-07-18 07:48:24 +02:00
Rhys Arkins
4eb20e0e57
refactor(repositoryWorker): Separate token from config
2017-07-18 07:41:19 +02:00
Rhys Arkins
fdaa88efb1
feat(cleanup): Add specific lock file maintenance cleanup
...
Now cleans up lock file maintenance branch - which is usually scheduled - if it has become unmergeable or pointless.
2017-07-17 16:13:59 +02:00
Rhys Arkins
c73a6c3ce6
fix(cleanup): Call cleanup only once
2017-07-17 16:00:48 +02:00
Rhys Arkins
d59911127b
fix(lockFileMaintenance): Add missing await to branchExists
...
A call to api.branchExists() was missing an await, as a result we were causing errors when yarn lock maintenance had no files to commit.
2017-07-17 15:33:16 +02:00
Rhys Arkins
73df88c473
fix(pr): Prevent accidental hyperlinks in PR body ( #490 )
...
GitHub incorrect assumes these #12345 issue numbers refer to the *local* repo, not the source. Adding ` ` should prevent that auto-hyperlinking.
Closes #489
2017-07-16 18:37:17 +02:00
Rhys Arkins
5f02c91823
refactor(config): Warn instead of error when no repositories found
2017-07-15 06:47:20 +02:00
Rhys Arkins
95f7eab826
feat(onboarding): simplify default config ( #486 )
...
Onboarding PRs now include much less default configuration options than before.
Closes #484
2017-07-14 07:34:01 +02:00
Rhys Arkins
64e91eed0f
fix(github): Hyperlink issues on GitHub only if private repo ( #479 )
...
Adding hyperlinks to all #12345 issues/PRs in upstream dependencies causes undesirable noise for maintainers of those repositories.
Now, such hyperlinking is done only for private repos as that won’t result in the same GitHub annotations.
Closes #478
2017-07-09 15:13:03 +02:00
Rhys Arkins
93b13b55db
feat(onboarding): Allow branch cleanup after onboarding ( #477 )
...
Refactored location of branch cleanup so that it can be run even if onboarding is enabled.
This means someone can “undo” a closed Configure Renovate and all other PRs would get cleaned up.
2017-07-09 05:35:41 +02:00
Rhys Arkins
b55ba07b47
feat(repository): Ignore package files discovered inside node_modules
...
Renovate will now ignore any package.json files found within node_modules folders, with the option to disable this functionality by setting config.ignoreNodeModules=false.
2017-07-08 07:00:58 +02:00
Rhys Arkins
7a841de7e6
feat(onboarding): dependencies.pinVersions=true for private repos ( #475 )
...
Closes #369
2017-07-08 06:01:02 +02:00
Rhys Arkins
3fa4d9236e
refactor(workers): Rename core function names for readability
2017-07-07 19:44:49 +02:00
Rhys Arkins
1395187ccc
feat(npm): Support packagelock.json maintenance ( #471 )
...
Renovate will now "maintain" npm@5's `package-lock.json` files on the same schedule as existing `yarn.lock` maintenance.
Closes #470
2017-07-07 13:57:43 +02:00
Rhys Arkins
4897d2721f
fix(onboarding): fix typo in description
2017-07-07 12:53:24 +02:00
Rhys Arkins
6bd74c979d
refactor: send config to ensurePr
2017-07-07 12:37:33 +02:00
Rhys Arkins
0e00dc3f83
fix(templates): Set semanticPrefix for Pin Dependencies
2017-07-07 11:16:03 +02:00
Rhys Arkins
d8a054410b
feat(onboarding): Allow update of renovate.json if it’s unmodified ( #469 )
...
This allows for improvements to renovate’s default renovate.json to be passed on to users who haven’t merged or modified their Configure Renovate PR.
Closes #465
2017-07-07 11:09:52 +02:00
Rhys Arkins
fd33996f0f
refactor(onboarding): Update onboarding description ( #468 )
...
Better describe renovate.json and if/when it needs to be added.
2017-07-07 09:53:22 +02:00
Rhys Arkins
06504b4abe
feat(onboarding): conventional commits detection ( #463 )
...
When onboarding, retrieve the most recent commits from the repository and use https://github.com/conventional-changelog/conventional-commits-detector to parse the commit messages to detect if any conventional commit approach is being used.
Closes #462
2017-07-07 07:54:09 +02:00
Rhys Arkins
04e20dce8e
feat: Prune all orphan branches ( #461 )
...
Schedule logic has been refactored to enable the pruning of all orphan branches.
Now, schedules aren't checked at package-time, instead package upgrades are queued regardless of schedule.
At branch time, it is checked whether the *branch* is scheduled and then the branch is not created/updated if it's off-schedule.
This enables the repository worker to know all possible branches and hence be able to determine which remaining branches in the repository are "orphans" to be deleted.
Closes #428 , Closes #426
2017-07-07 06:25:38 +02:00
Rhys Arkins
44de0886a0
feat: Skip schedules when onboarding ( #456 )
...
All PRs/branches will be shown in onboarding even if they have been scheduled for another day or time, providing a "full view" in the onboarding.
Closes #429
2017-07-06 14:31:39 +02:00
Rhys Arkins
997c4efac2
feat: baseBranch onboarding ( #453 )
...
baseBranch is now used when computing the onboarding description in 'Configure Renovate' PR.
2017-07-06 14:12:52 +02:00
Rhys Arkins
3f35ba73d0
feat: Detect duplicate keys in renovate.json ( #455 )
...
Closes #450
2017-07-06 14:09:35 +02:00
Rhys Arkins
80e4fd91fc
fix: Use res.upgrades when returning from branchify
2017-07-06 11:05:03 +02:00
Rhys Arkins
1122f76e98
fix: branchifyUpgrades should return an object ( #451 )
2017-07-06 10:59:25 +02:00
Rhys Arkins
48c960b841
refactor: Move generateConfig code from branchWorker to repositoryWorker ( #449 )
...
This allows the onboarding PR to share the grouping logic and not have to duplicate it.
2017-07-06 10:35:27 +02:00
Rhys Arkins
dc5773c2e5
feat: Configurable base branch for PRs ( #448 )
...
Collaborator
rarkins commented 14 hours ago
Base branch for Pull Requests is now configurable via a new baseBranch configuration option. To take effect, this much be present in the default branch (e.g. master in most cases) so that it can be discovered and used. See FAQ for more details.
Closes #443
2017-07-06 10:26:18 +02:00
Rhys Arkins
ea4e370d3f
feat: Prune stale branches ( #441 )
...
A separate routine is run after branch creation to detect any branches that should be deleted. A branch will be removed if:
- It was not created by renovate in the last run, AND
- It has no PR, or its corresponding PR is not mergeable
Closes #426 , Closes #428
2017-07-05 11:57:22 +02:00
Rhys Arkins
1716e122cd
feat: expand PR errors ( #437 )
...
Errors in PRs are expanded to include:
- If renovate.json parsing fails
- If an empty or unparseable package.json was found
Closes #435
2017-07-05 07:12:25 +02:00
Rhys Arkins
c30472dd43
feat: Add ability to skip status checks for automerge ( #438 )
...
This starts off [#359 ](https://github.com/singapore/renovate/issues/359 ) (configurable status checks) but only implements one sub-feature of it: disabling status checks to allow automerge if tests fail or if no tests are present.
2017-07-05 07:02:25 +02:00
Rhys Arkins
e0e0b259c3
feat: Show warnings and errors in regular PRs ( #433 )
...
If errors or warnings are present, they will be displayed in the PR body of all PRs now (not just onboarding).
Closes #431
2017-07-04 13:52:23 +02:00
Rhys Arkins
2f987a4037
feat: Show warnings and errors in Onboarding PR ( #432 )
...
Warnings and Errors are bubbled up when renovating a repository, together with the existing upgrades. The Onboarding PR ("Configure Renovate") now displays them and encourages the user to fix before merging/closing the PR.
Closes #414
2017-07-04 12:39:28 +02:00
Rhys Arkins
f2833c8275
refactor: Add 'package' stage to config definitions ( #421 )
...
* Add package phase
* Rename phase to stage
2017-07-03 10:31:36 +02:00
Rhys Arkins
1cf8330125
fix: group branchName handlebars error
...
Closes #410
2017-07-02 07:50:46 +02:00
Rhys Arkins
c608ac2e46
refactor: rename branchWorker.updateBranch -> processBranchUpgrades
2017-07-02 06:44:49 +02:00
Rhys Arkins
b58452620a
refactor: rename groupUpgradesByBranch to branchifyUpgrades
2017-07-02 06:40:40 +02:00
Rhys Arkins
3ec668225a
fix: use new config for pin.group.prTitle
2017-07-02 06:38:59 +02:00
Rhys Arkins
82357d81bd
refactor: logger.trace configs
2017-07-02 06:35:53 +02:00
Rhys Arkins
372b445260
refactor: set recreateClosed in group and lockFileMaintenance
2017-07-02 06:25:42 +02:00
Rhys Arkins
3d9cd11611
refactor: change group config structure
...
This changes how group are configured to align with the new lock file configuration.
BREAKING CHANGE: old group* template options are no longer supported but can be migrated into group object
2017-07-01 06:49:32 +02:00
Rhys Arkins
6f49927a45
feat: schedule support for lock file maintenance
...
This feature now allows a custom schedule to be defined for lock file maintenance. It is now enabled by default but runs only before 5m on Sundays. Closes #399
BREAKING CHANGE: lock file maintenance is enabled by default.
Rules will apply to both yarn and npm (npm is yet to be implemented however). Existing mainainYarn* variables are removed and replaced by new lockFileMaintenance object.
2017-07-01 06:46:11 +02:00
Rhys Arkins
3a68dafab2
fix: drop packageFile.fileName support
...
No longer massages packageFile.fileName -> packageFile.packageFile
BREAKING CHANGE: “fileName” notation no longer supported
2017-07-01 06:42:12 +02:00
Rhys Arkins
9209982b6d
fix: drop preformatted changelog
...
No longer supporting preformatted (markdown) changelog input for templates.
BREAKING CHANGE: Preformatted {{changeloge}} no longer supported in PR body template.
Generate changelog using handlebars as in the default templtaes.
2017-07-01 06:40:37 +02:00
Rhys Arkins
45c3124a8f
feat: support "enabled" config option at all configuration levels
2017-06-30 16:04:23 +02:00
Rhys Arkins
6664110c29
feat: schedules ( #397 )
...
This PR adds a scheduling feature, including timezone support.
It's described in detail in the FAQ, but the summary is:
* Timezones can be defined so that schedules are written in timezone of target repository
* Schedules can be written in "plain english"
* Multiple schedules allowed
* Schedules can be defined all the way down to package level
Closes #387
2017-06-30 14:04:46 +02:00
Rhys Arkins
0ac3625e4f
fix: more semanticCommitsEnabled -> semanticCommits
2017-06-30 06:04:15 +02:00
Rhys Arkins
4c79dae98c
feat: semantic commit support ( #389 )
...
Defaults to disabled. Included in onboarding.
Closes #303
2017-06-29 19:50:26 +02:00
Rhys Arkins
87967b4945
fix: Onboarding config should use repo config, not defaults ( #386 )
2017-06-29 15:38:18 +02:00
Rhys Arkins
552b5e68c5
Refactor helpers ( #382 )
...
* Move yarn and npm helpers into branch worker
* Fix name
* Move package-json helper
* Update name
* Move changelog
* Move github-app
* Remove unused platform
* Move logger
* Fix lint
2017-06-29 07:29:41 +02:00
Rhys Arkins
742060c8b5
Improve npm and yarn lock error messages ( #380 )
...
Closes #375
* Detect versions at startup
* Add meaningful error messages when problems with npm or yarn
* Test helpers
* Test global versions
2017-06-28 22:33:27 +02:00
Rhys Arkins
fe82c7ad7c
Skip repositories with no package.json ( #378 )
...
* Skip repositories with no package.json
Closes #376
* Fix await
* Refactor file file check
* Update tests
2017-06-28 19:37:08 +02:00
Rhys Arkins
c459ba66d6
Fix rebasing logic ( #372 )
...
* Add debug messages to API
* Fix rebase logic
* Fix tests
* Simplify logic
* Update branch.spec.js
2017-06-28 13:20:31 +02:00
Rhys Arkins
a8da588f13
Don’t warn if currentVersion is a known tag
...
Closes #333
2017-06-28 12:45:18 +02:00
Rhys Arkins
8bc3c00c32
Fix onboarded branchName
2017-06-28 12:35:07 +02:00
Rhys Arkins
9e5eb58b74
Remove duplicate log message
2017-06-28 12:33:58 +02:00
renovate[bot]
5a9a66bd2b
Update dependency prettier to version 1.5.2 ( #365 )
...
* Update dependency prettier to version 1.5.2
* lint fix
2017-06-28 12:23:57 +02:00
Rhys Arkins
285c977cf7
Use package.json renovate config when onboarding ( #370 )
...
* Store repoIsOnboarded in config
* Use package file renovate config for onboarding
Closes #368
2017-06-28 12:16:25 +02:00
Rhys Arkins
c472b7e6cc
Improve onboarding ( #367 )
...
* Add branchName to mergeRenovateJson
* Split onboarding into branch and PR
* Update onboarding description
* remove snapshot
* Update tests
* Update onboarding text
2017-06-28 11:23:40 +02:00
Rhys Arkins
a952506259
Perform gitlab terminology translation in api ( #366 )
2017-06-28 10:10:40 +02:00
Rhys Arkins
46a4d8ba9d
Refactor pin groups ( #364 )
...
* Group together pins
* Install github-url-from-git
* Get repositoryUrl from npm
* Don’t delete excess pins
* Update configuration.md
* Update tests
2017-06-27 17:46:11 +02:00
Rhys Arkins
6d99afb656
Get repository url from npm query ( #363 )
...
* Get repositoryUrl from npm
Closes #350
* Generate repository url from npm query
Closes #350
2017-06-27 17:35:23 +02:00
Rhys Arkins
6e12c35da5
Update docs
2017-06-27 15:36:53 +02:00
Rhys Arkins
1669cefbd3
Fix isGitHub
2017-06-27 14:54:07 +02:00
Rhys Arkins
463d2fc39d
Refactor worker code ( #362 )
...
* Move package-file worker
* rename to renovatePackageFile
* Move packageJson
* Add getDepTypeConfig
* Add
* Revert "Add"
This reverts commit d034e6149a
.
* Refactor versions
* rename findPackageFileUpgrades
* rename versions
* packageWorker
* Refactor promises
* move snapshots
* Rename
* Refactor versions
* Refactor
* Finish package worker
* Major refactor
* Remove worker tests
* package/versions
* Finish packageWorker tests
* package-json test
* Finish dep-type tests
* Add back package-json helper test
* Refactor package-file
* Add back branch and pr
* Add back remaining worker tests
* update tests
* remove snapshot
* Fix dep-type coverage
* Remove old tests
* Coverage
2017-06-27 13:44:03 +02:00
Rhys Arkins
ae73655c6e
Refactor repository worker ( #361 )
...
* Add subdirectory
* Move apis tests
* Move onboarding
* Move more apis functions
* Move upgrades
* Refactor index
* Renames
2017-06-26 14:26:49 +02:00
Rhys Arkins
1dd464cba5
Refactor config definitions and onboarding values ( #360 )
...
* Set levels in definitions
* Rename global worker
* getRepoConfig use options levels
* Refactor packageFileConfig
* Add onboarding configuration
2017-06-26 13:08:57 +02:00
Rhys Arkins
0801960ffb
Fix relative requires ( #353 )
...
Closes #352
* Update platform.js
* Update repository.js
2017-06-25 16:32:37 +02:00
Rhys Arkins
08f7a5ca91
Complete code coverage ( #347 )
2017-06-25 08:14:59 +02:00
Rhys Arkins
19f4b3b0bc
Refactor repository worker ( #344 )
...
* Move to subdir
* Downgrade eslint to 3
* Refactor api and config usage
* Refactor mergeRenovateJson
* Test mergeRenovateJson
* getOnboardingStatus tests
* Refactor repository structure
* Refactor config.logger
* Revert "Refactor config.logger"
This reverts commit 6d7f81af6e
.
* Refactor repository logging
* Refactor try/catch
* Refactor platform and onboarding
* Refactor setNpmrc
* Fix github logger
* npm api use config.logger
* Refactor repo worker logger
* Refactor repo worker
* Refactor branched upgrades
* Repository refactoring
* Move some debug logging to trace
* Deprecate fileName
* Refactor upgrades
* Refactor repository logs
* More repository log refactoring
* Refactor repository location
* Revert "Refactor repository location"
This reverts commit faecbf2951
.
* Fix tests
* mergeRenovateJson
* Recombine repository worker
* Add initApis tests
* add detectPackageFiles tests
* Add determineRepoUpgrades tests
* start groupUpgradesByBranch tests
* add test
* add test
* Finish groupUpgradesByBranch coverage
* Test updateBranchesSequentially
* Finish repo coverage
* Finish branch worker coverage
* Finish workers coverage
* Fix isPin
* Complete workers coverage
* Finish helpers coverage
* Add gitlab api tests
* getBranchStatus tests
* test createPr
* start getPr testing
* getPr
* update and merge PR tests
* getFile
* getFileContent tests
* getFileJson tests
* createFile
* updateFile
* createBranch
* commitFilesToBranch
* update yarn
* Update yarn
2017-06-25 07:36:13 +02:00
Rhys Arkins
53a316d1c3
Improve test coverage ( #338 )
...
* Fix github api coverage
* Fix npm api coverage
* Fix renovate init function coverage
* Start gitlab tests
* gitlab initRepo tests
* findFilePaths
* Add branchExists tests
* Fix branch worker coverage
* pr worker
* Refactor repository functions
* Refactor gitlab getRepos
2017-06-22 21:35:32 +02:00
Rhys Arkins
a3a3f88091
Fix gitlab markdown/html ( #337 )
...
* Add showdown
* Use showdown to convert pr body to html
Closes #334
* Update test
2017-06-22 15:14:42 +02:00
Rhys Arkins
24955fab77
Support GitLab merge conflict rebasing ( #335 )
...
Closes #132
* Add gitlab deleteBranch
* Add GitLab rebasing logic to branch worker
* Add GitLab getBranch
* Record user email during initRepo
* Add canRebase logic
* lint fix
* Add test
2017-06-22 11:56:23 +02:00
Rhys Arkins
10622a1811
Refactor to enable log context ( #331 )
...
Closes #317
* Install traverse
* Scrub api and logger in stringify config
* Use stringifyConfig
* Ignore logs
* Add meta to CLI logs
* Refactor repo structure
* rename repoWorker
* renamed worker
* Refactor logger location
* Refactor main worker
* Refactor getRepoConfig
* Refactor err
* Refactor repo logger
* Add config serializer and logger
* Refactor redact
* Remove stringifyConfig
* Refactor onboarding
* Set packageFile logger
* Refactor package file logic
* branch and pr logging
* Improve log context
* Fix tests part 1
* more test fixes
* Fix github init
* All tests passing
* Rename cli helper
* Refactor logger
* Add logger tests
* Add config serializer tests
* Add configParser tests
* Fix package file tests
* Expand package-file tests
* Use defaultConfig
* Add package-file tests
* Refactor
* Finish package-file tests
2017-06-22 09:03:36 +02:00
Rhys Arkins
34421a3837
Replace winston logging with bunyan ( #326 )
...
Closes #325
* Install bunyan
* Set log level for jest
* Replace winston requires with relative logger require
* Add cliHelper
* Strip unused
* Trim unused and update colors
* Update log messages
* Enable dynamic log level
* Update cli.js
2017-06-20 17:57:04 +02:00
Rhys Arkins
b9542217f8
Remove log-level verbose ( #324 )
...
Closes #318
2017-06-20 08:02:17 +02:00
Rhys Arkins
d477aa80e9
Fix branch push failure PR ( #316 )
...
* Fix GitLab branch status failed - failure
* Fix PR creation when branch automerge fails
Fixes #310
2017-06-16 15:24:59 +02:00
Rhys Arkins
7e43fce47b
Add check for logJSON ( #306 )
...
Fixes #305
2017-06-15 20:57:18 +02:00
Rhys Arkins
f36305da19
Suppress duplicates in PR changelogs ( #302 )
...
Closes #300
2017-06-13 16:49:27 +02:00
Rhys Arkins
03063f30b6
Hyperlink issue numbers in commit messages ( #299 )
...
* Add regex for hyperlinking issue numbers in commit messages
Closes #185
* Extend test
2017-06-13 12:22:21 +02:00
Rhys Arkins
91856cec7a
Refactor changelog logic to directly use JSON ( #296 )
...
Closes #264
* Basic refactor
* Refactor into module
* Further refactor
* Use json for group pr body
* Add commit links
* improve body
* Refactor names
* Add signature
* Refactor config
* Simplify non-group pr body template
* Fix Pull/Merge terminology
* Fix test
* Fix pr test
* Fix prettier
2017-06-13 11:08:37 +02:00
Rhys Arkins
112ff0b410
Support branch automerging ( #274 )
...
Add support for automerging without PR, Closes #177
* update definitions and docs
* Add mergeBranch api
* support merge commit
* set automergeType
* Update API
* Refactor merge commit
* branch-push working
* Refactor branch
* Add back base tree
* Fix failing tests
* Update definitions and docs
* Fix automerge logic
* Test isBranchStale
* start mergeBranch test
* test mergeBranch branch-push throws
* more tests
* test unknown commit type
* pr tests
* Detect automerge in versions helper
* update tests for new automergeEnabled flag
* refactor pr logic
* complete pr worker tests
* branch automerge tests
* Update docs
* refactor branch automerge check
2017-06-08 06:18:21 +02:00
Rhys Arkins
d234a0d9dd
Support changelogs for groups ( #257 )
...
Closes #202
* Externalise hbs templates
* Fix tests
* Move templates
* lint fix
* Pass all upgrades to ensurePr
* Group changelogs
* Fix lint
* Fix tests
2017-06-05 10:21:02 +02:00
Rhys Arkins
775a93172f
Add yarn cache support ( #239 )
...
* Add yarn cache support
Closes #237
* Fix prettier
2017-06-03 15:25:13 +02:00
Rhys Arkins
a663ecddef
Add npm5 package-lock.json support ( #224 )
...
* Add npm5 package-lock.json support
Closes #222
* Fix comment typo
* Add package-lock.json failure test cases
2017-06-02 08:29:36 +02:00
Rhys Arkins
d453f6cce7
Add try/catch around yarn.lock generation ( #225 )
...
* Add try/catch around yarn.lock calls
* Improve test structure
2017-06-02 08:06:44 +02:00
Renovate Bot
5ebff14931
Update dependency prettier to version 1.3.1 ( #199 )
...
* Update dependency prettier to version 1.3.1
* Run eslint-fix
2017-05-10 09:26:08 +02:00
Renovate Bot
c56c6d9bbe
Update dependency prettier to version 1.3.0 ( #198 )
...
* Update dependency prettier to version 1.3.0
* Run eslint-fix
2017-05-03 06:42:24 +02:00
Rhys Arkins
44e7bbf512
Use es5 trailing commas ( #183 )
2017-04-21 10:25:49 +02:00
Rhys Arkins
06f8d50f5e
Use Prettier ( #181 )
2017-04-21 10:12:41 +02:00
Rhys Arkins
8d516e3491
Feature: Don't assign/review automerge PRs ( #180 )
...
* Skip assignees and reviewers if automerging
* Add tests
2017-04-21 07:23:36 +02:00
Rhys Arkins
aa3309ffe1
PR Automerging ( #173 )
...
Closes #109
* Add automerge definition
* Add mergeMethod
* add mergePr for GitHub
* update definitions
* autodetect merge type
* Check mergeable state
* Don’t split majors if automerging any
* Update mergePr api commands
* fix initRepo tests
* Add tests
* Fix mergePr call
* Fix description
* Revert branchWorker changes
* revert comment
* Add test
* Add major/minor separation tests
* Add status-success tests
* Add not-pending tests
* Add automerge tests
* Check branch status before merge
2017-04-20 13:01:23 +02:00
Rhys Arkins
5f8711da39
Refactor yarn helper and add tests ( #174 )
...
Refactor yarn helper and increase coverage
2017-04-20 12:15:46 +02:00
Rhys Arkins
ca7b25825d
Add PR Creation stage configuration ( #168 )
...
* Add prCreation config option
* Support ‘status-success’ configuration
* Add option ‘not-pending’
2017-04-17 06:46:24 +02:00
Rhys Arkins
adcd152c3f
Fix monorepo yarn maintenance ( #167 )
...
Closes #166
* Support multiple yarn.lock files for maintenance
Closes #166
* Refactor maintainYarnLock logic
2017-04-17 04:54:42 +02:00
Rhys Arkins
a117a1787e
Decrease ensureBranch logging level
2017-04-15 22:06:15 +02:00
Rhys Arkins
96b21ece41
Refactor branch batching ( #163 )
...
Closes #134
* Refactor to combine upgrades in the same branch
* Fixing tests
* Fix config
* Fix more tests
* Fix newContent
* drop verbose
* Fix package file logic
2017-04-15 20:32:01 +02:00
Rhys Arkins
e959c492b9
Refactor change log versions ( #154 )
...
* Rename workingVersion to changeLogFromVersion
* Add changeLogToVersion
2017-04-13 12:44:34 +02:00
Rhys Arkins
88c600b85e
Fix yarn.lock detection ( #128 )
...
* Fix yarn.lock detection
Closes #110 , Closes #124
* Fix for tests :)
2017-03-13 06:33:28 +01:00
Rhys Arkins
ed132014e5
Refactor worker code for testing ( #102 )
...
Major refactor of worker code in order to add tests. Closes #99
2017-02-14 08:08:40 +01:00