Skip to content

hatena/renovate-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

renovate-config

A shareable config preset for Renovate used in Hatena.

{
  "extends": [
    "github>hatena/renovate-config"
  ]
}

Available presets

autoMergePin

{
  "pin": {
    "automerge": true
  }
}

autoMergeTypesMinor

{
  "packageRules": [
    {
      "matchPackagePatterns": ["^@types/"],
      "automerge": true,
      "major": {
        "automerge": false
      }
    }
  ]
}

ecspressoVersion.json5 (opt-in)

Updates the ecspresso version defined in the .ecspresso-version file using customManagers.

{
  "extends": ["github>hatena/renovate-config:ecspressoVersion.json5"]
}

groupAndroidPackages

Grouping various libraries used for Android app development, mainly based on Maven groupId.

groupCocoaPodsPackages

Grouping some CocoaPods libraries used for iOS app development.

groupJest

Grouping jest monorepo packages and ts-jest.

{
  "packageRules": [
    {
      "groupName": "jest",
      "matchSourceUrlPrefixes": [
        "https://github.com/facebook/jest",
        "https://github.com/kulshekhar/ts-jest"
      ]
    }
  ]
}

groupLinters

Grouping lint-related packages for JavaScript and TypeScript. Adding prettier and typescript-eslint packages to the packages:linters preset.

{
  "packageRules": [
    {
      "groupName": "linters",
      "extends": ["packages:linters"],
      "matchPackageNames": ["prettier"],
      "matchPackagePatterns": ["^@typescript-eslint/"]
    }
  ]
}

schedule

{
  "extends": [
    ":timezone(Asia/Tokyo)"
  ],
  "schedule": [
    "after 10:30 before 18:00 every weekday except after 13:00 before 14:00"
  ]
}

This config is heavily based on our business hours in Hatena. So if this is not a good fit for you, please exclude as follows:

{
  "ignorePresets": ["github>hatena/renovate-config:schedule"]
}

or overwrite the schedule option as you like:

{
  "schedule": ["after 10pm and before 5am on every weekday", "every weekend"]
}

or extend the Schedule Presets.

xcodegenSwiftPackages.json5 (opt-in)

Updates Swift packages in XcodeGen's project.yml using customManagers.

{
  "extends": ["github>hatena/renovate-config:xcodegenSwiftPackages.json5"]
}