Repository navigation
Expand file tree
/
Copy pathruby.json
More file actions
53 lines (53 loc) · 1.94 KB
/
Copy pathruby.json
File metadata and controls
53 lines (53 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"description": "Ruby のバージョンを .ruby-version・Dockerfile・Gemfile.lock・GitHub Actions でまとめて上げる。利用側の enabledManagers に ruby-version と custom.regex を含める",
"extends": [
"customManagers:dockerfileVersions"
],
"customManagers": [
{
"customType": "regex",
"description": "Gemfile.lock の RUBY VERSION を .ruby-version と同じ版に上げる。patchlevel 付きの行は patchlevel が古いまま残るため対象外にする",
"managerFilePatterns": [
"/(^|/)Gemfile\\.lock$/"
],
"matchStrings": [
"RUBY VERSION\\n\\s+ruby (?<currentValue>\\d+\\.\\d+\\.\\d+)\\n"
],
"depNameTemplate": "ruby",
"datasourceTemplate": "ruby-version"
}
],
"packageRules": [
{
"description": "Ruby の docker image も ruby-version datasource で更新する。Docker Hub のタグには releaseTimestamp が無く minimumReleaseAge で永久に pending になるため。Ruby group より前に置くこと",
"matchDatasources": [
"docker"
],
"matchPackageNames": [
"/(?:^|/)ruby$/",
"!rubylang/ruby",
"!docker.io/rubylang/ruby"
],
"overrideDatasource": "ruby-version",
"overridePackageName": "ruby",
"versioning": "ruby",
"extractVersion": "^(?<version>\\d+\\.\\d+\\.\\d+)$",
"versionCompatibility": "^(?<version>\\d+\\.\\d+\\.\\d+)(?:-.+)?$"
},
{
"description": "新しい Ruby は ruby/setup-ruby も上げないと CI で使えないため、1 つの PR にまとめる",
"groupName": "Ruby",
"matchPackageNames": [
"ruby",
"ruby/setup-ruby"
]
},
{
"description": "Ruby の minor 更新は別の PR にする。新しい minor が出た後も、今の minor の patch 更新の PR を作るため",
"matchPackageNames": [
"ruby"
],
"separateMultipleMinor": true
}
]
}