Commit graph

8712 commits

Author SHA1 Message Date
renovate[bot]
b8ca737ed8 chore(deps): update dependency showdown to version 1.7.2 2017-08-05 01:53:50 +00:00
renovate[bot]
098ab9d962 chore(deps): update dependency jsonwebtoken to version 7.4.2 2017-08-04 17:58:22 +00:00
Rhys Arkins
cb3c4ece38 refactor: improve github retry logic ()
5 retries
use settimeout
retry on any 5xx error code
2017-08-04 18:13:49 +02:00
Rhys Arkins
ab7884008b fix: always pass logger to getLockFile () 2017-08-04 17:47:03 +02:00
singapore
86a05c5960 chore: Fix packageRules 2017-08-04 17:46:22 +02:00
Rhys Arkins
e913feb6ab fix: npm and yarn use branch logger ()
Closes 
2017-08-04 16:23:45 +02:00
Rhys Arkins
5d6652b4bc fix: remove non-functioning yarn cache folder option () 2017-08-04 16:12:24 +02:00
Rhys Arkins
a010d2ce5d docs: update automatic docs () 2017-08-04 15:32:17 +02:00
Rhys Arkins
6a7f57165f fix: add loki-preview headers to repository query ()
Should enable merge settings to be shown during initRepo
2017-08-04 14:51:21 +02:00
Rhys Arkins
f8ec742b3b feat: Detect semantic commits every run ()
Now no need to detect at onboarding time. Also suggests removing setting in migration if it is already the same value.

Closes 
2017-08-04 14:49:02 +02:00
Rhys Arkins
694f9f43cf docs: update lock file maintenance description in faq () 2017-08-04 14:43:37 +02:00
Rhys Arkins
e7ce772e94 feat: Make semanticPrefix implicit in templates ()
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 ()
Links to open issue about workspaces.

Closes 
2017-08-04 12:06:32 +02:00
Rhys Arkins
b51915912f fix: check for legacy pr title format ()
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
009113b094 fix: no v version prefix for ranges () 2017-08-04 10:25:02 +02:00
Rhys Arkins
c2a6033ad7 fix: use v prefix for commit message and pull request versions ()
Now will use “v1.0.0” instead of “version 1.0.0”

Closes 
2017-08-04 09:26:11 +02:00
Rhys Arkins
134065c7c7 refactor: use branch prefix in templates ()
This allows for the easy overriding of our default `renovate/` branch naming.

Closes 
2017-08-04 08:32:22 +02:00
Rhys Arkins
4a4016f232 fix: escape #issueNumber and backticks in prBody ()
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 
2017-08-04 07:34:11 +02:00
Rhys Arkins
6c1f27f905 fix: semantic commit messages should always be lower case ()
commitMessage and prTitle will be converted to lowercase after compilation if semanticCommits=true

Fixes 
2017-08-03 21:49:44 +02:00
Rhys Arkins
3df264501f chore: add warning if yarn workspaces found () 2017-08-03 21:48:58 +02:00
Rhys Arkins
7ff5780a8f fix: migrate packages array properly () 2017-08-03 19:52:10 +02:00
Rhys Arkins
db2e6dd1b9 refactor: Convert Object.assign to spread ()
Closes 
2017-08-03 08:01:20 +02:00
Rhys Arkins
c3b123a83d feat: Advanced package rules ()
- Renames `packages` to `packageRules`
- Refactor `packageName` to `packageNames` array
- Refactor `packagePattern` to `packagePatterns` array
- Adds `excludePackageNames` array
- Adds `excludePackagePatterns` array

Closes 
2017-08-03 07:55:59 +02:00
renovate[bot]
e2876ce7cf chore(deps): Update dependency bunyan to version 1.8.12 2017-08-03 01:47:10 +00:00
renovate[bot]
7105314542 chore(deps): Update dependency bunyan to version 1.8.11 2017-08-02 21:47:04 +00:00
Rhys Arkins
8809861d3c fix: Circular reference in depTypeConfig () 2017-08-02 21:33:58 +02:00
Rhys Arkins
195988aa0b fix: Incorrect variable used to resolve depTypeConfig () 2017-08-02 16:19:52 +02:00
Rhys Arkins
8f8a4de69f fix: Schedule should always be an array ()
Massaging of string to array is done in migration function.
2017-08-02 16:14:09 +02:00
Rhys Arkins
6c6b1756cb fix: Migration check should set flag true at all times () 2017-08-02 14:41:25 +02:00
Rhys Arkins
d2ad057a33 feat: Improve depTypes configuration ()
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 () 2017-08-02 08:54:42 +02:00
Rhys Arkins
c76222fd53 fix: Validate array objects in configuration () 2017-08-02 07:52:28 +02:00
Rhys Arkins
f7db11c9d7 fix: Downgrade merge failure to warning () 2017-08-02 07:16:31 +02:00
Rhys Arkins
a24ec1f6fc chore: Add patch releases to FAQ () 2017-08-01 17:24:26 +02:00
Rhys Arkins
d9d131de6c feat: Full patch separation support ()
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 , Closes 
2017-08-01 17:10:53 +02:00
Rhys Arkins
75b0bdc322 fix: Fix merge debug message () 2017-08-01 13:31:27 +02:00
Rhys Arkins
f1d7330f2b fix: Improve PR body fixes for scoped packages ()
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 ()
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 
2017-08-01 07:22:43 +02:00
Rhys Arkins
8374ef6caa fix: Allow ‘@user’ format for assignees and reviewers ()
Usernames can now be expressed as like either ‘rarkins’ or ‘@rarkins’
2017-08-01 06:58:13 +02:00
Rhys Arkins
b674e93de2 fix: Add groupCommitMessage to deprecatedOptions () 2017-07-31 16:54:24 +02:00
Rhys Arkins
6c7382df14 fix: Check for valid version before performing npm lookup ()
Closes 
2017-07-31 16:03:19 +02:00
Rhys Arkins
023e520702 fix: Do not log warning when deprecated config options found () 2017-07-31 14:50:44 +02:00
renovate[bot]
cfbb8f41f1 chore(deps): Lock file maintenance ()
* chore(deps): Update lock file

* chore(deps): Update lock file
2017-07-31 06:21:48 +02:00
Rhys Arkins
8fc97af5c7 feat: Ignore forked repositories unless already configured ()
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 
2017-07-30 22:59:53 +02:00
Rhys Arkins
603f63af4d fix: Retry github API when 502 error ()
The GitHub API will now retry up to 3 times before giving up, if it is receiving a 502 Bad Gateway response.
2017-07-30 11:06:15 +02:00
Rhys Arkins
8aafdaf182 refactor: Use promise.reject to simulate non-200 responses in github tests () 2017-07-30 08:20:19 +02:00
Rhys Arkins
194b5b4b16 fix: Config validation ignore null and massage schedule to array () 2017-07-29 22:12:19 +02:00
Rhys Arkins
055cfaf73b fix: Don’t warn for any getChangeLogJSON errors () 2017-07-29 10:29:26 +02:00
Rhys Arkins
7d493a14bf feat: Log warnings when unknown configuration options or option types found ()
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 .

Closes , Closes 
2017-07-28 21:15:27 +02:00
Rhys Arkins
5c712116a1 chore: Add David and Renovate badges ()
Related to  but does not close it
2017-07-28 07:39:29 +02:00