Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renovateの設定を直す #637

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,30 @@
"config:recommended"
],
"timezone": "Asia/Tokyo",
"schedule": [
"before 1am"
"packageRules": [
{
"groupSlug": "rust",
"groupName": "Rust",
"matchPackagePatterns": "^Rust$"
},
{
"groupSlug": "others",
"groupName": "Others",
"excludePackagePatterns": "^Rust$",
"dependencyDashboardApproval": true
Copy link
Member Author

@qryxip qryxip Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これで明示的にdashboardから起動しない限り、PR以前にpushもされなくなるらしい。
(実際branchも作られなくなった)

これがfalse(デフォルト値)だと、このようなPRが飛んでくる。
qryxip#8

}
],
"regexManagers": [
"customManagers": [
{
"customType": "regex",
Comment on lines -10 to +22
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regexManagerというのは古く、今はcustomManagersというらしい。

"fileMatch": [
"^rust-toolchain$"
],
"matchStrings": [
"(?<currentValue>\\d+\\.\\d+\\.\\d+)"
],
"depNameTemplate": "Rust",
"lookupNameTemplate": "rust-lang/rust",
"packageNameTemplate": "rust-lang/rust",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lookupNameTemplateというのはドキュメントにもschemaにもなく、Renovateの実装から拾ってきたものであるが、packageNameTemplate (ちゃんとドキュメントもある)でその役割ができるらしいので置き換え。

"datasourceTemplate": "github-releases"
}
]
Expand Down
Loading