Merge pull request #2437 from thelounge/renovate/configure

Configure Renovate
This commit is contained in:
Pavel Djundik 2018-05-22 09:58:29 +03:00 committed by GitHub
commit 3a25134e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 14 deletions

View File

@ -19,3 +19,4 @@ scripts/
test/ test/
appveyor.yml appveyor.yml
webpack.config*.js webpack.config*.js
renovate.json

View File

@ -15,16 +15,9 @@ matrix:
cache: yarn cache: yarn
before_install:
- yarn global add greenkeeper-lockfile@1
before_script: before_script:
- greenkeeper-lockfile-update
- NODE_ENV=$BUILD_ENV yarn build - NODE_ENV=$BUILD_ENV yarn build
after_script:
- greenkeeper-lockfile-upload
notifications: notifications:
email: email:
on_success: never on_success: never

12
renovate.json Normal file
View File

@ -0,0 +1,12 @@
{
"extends": [
"config:base"
],
"ignorePaths": [
"test/"
],
"labels": [
"Type: Dependencies"
],
"statusCheckVerify": true
}

View File

@ -126,7 +126,7 @@ For more details, [see the full changelog](${items.fullChangelogUrl}) and [miles
### Changed ### Changed
${_.isEmpty(items.dependencies) ? "" : ${_.isEmpty(items.dependencies) ? "" :
`- Update production dependencies to their latest versions, by [Greenkeeper](https://greenkeeper.io/) 🚀: `- Update production dependencies to their latest versions:
${printDependencyList(items.dependencies)}` ${printDependencyList(items.dependencies)}`
} }
@ -160,7 +160,7 @@ ${printList(items.websiteDocumentation)}`
${printList(items.internals)}${ ${printList(items.internals)}${
_.isEmpty(items.devDependencies) ? "" : ` _.isEmpty(items.devDependencies) ? "" : `
- Update development dependencies to their latest versions, by [Greenkeeper](https://greenkeeper.io/) 🚀: - Update development dependencies to their latest versions:
${printDependencyList(items.devDependencies)}`} ${printDependencyList(items.devDependencies)}`}
@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@
@ -516,10 +516,9 @@ function isSkipped(entry) {
return hasLabelOrAnnotatedComment(entry, "Meta: Skip Changelog"); return hasLabelOrAnnotatedComment(entry, "Meta: Skip Changelog");
} }
// Greenkeeper PRs are listed in a special, more concise way in the changelog. // Dependency update PRs are listed in a special, more concise way in the changelog.
// Returns true if the PR was open by Greenkeeper, false otherwise. function isDependency({labels}) {
function isDependency({author, labels}) { return hasLabel(labels, "Type: Dependencies");
return hasLabel(labels, "greenkeeper") || author.login === "greenkeeper";
} }
function isDocumentation({labels}) { function isDocumentation({labels}) {
@ -617,7 +616,7 @@ function parse(entries) {
// (with format `@username`) of everyone who contributed to this version. // (with format `@username`) of everyone who contributed to this version.
function extractContributors(entries) { function extractContributors(entries) {
const set = Object.values(entries).reduce((memo, pullRequest) => { const set = Object.values(entries).reduce((memo, pullRequest) => {
if (pullRequest.author.login !== "greenkeeper") { if (pullRequest.author.login !== "greenkeeper" && pullRequest.author.login !== "renovate-bot") {
memo.add("@" + pullRequest.author.login); memo.add("@" + pullRequest.author.login);
} }