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

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Oct 11, 2023

内容

#470 (comment)をなんとかします。

関連 Issue

ref #470

その他

fork(qryxip/voicevox_core)での確認はこれからします。

@qryxip qryxip force-pushed the update-renovate-config branch 3 times, most recently from 7ed1f86 to 8d088a7 Compare October 11, 2023 19:02
@qryxip
Copy link
Member Author

qryxip commented Oct 11, 2023

なんかこれで大丈夫そうなのでdraft外します。
qryxip#10

@qryxip qryxip marked this pull request as ready for review October 11, 2023 19:31
Comment on lines -10 to +22
"regexManagers": [
"customManagers": [
{
"customType": "regex",
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というらしい。

"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

"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 (ちゃんとドキュメントもある)でその役割ができるらしいので置き換え。

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

LGTM!!

メモ書きもありがとうございます、助かります!!

json5にしてコメント書いてメモ書き足していっとくと将来の僕たちを助けてくれるような気がしました。
ちょっとプルリク作ってみます!

@Hiroshiba Hiroshiba merged commit b148c94 into VOICEVOX:main Oct 12, 2023
30 checks passed
@Hiroshiba
Copy link
Member

VSCodeがデフォルトでjson5ダメだったので諦めました 😇

今回の設定だとRustはOK、Rust以外はなしという形ですが、一律でなしにしたあとRustだけOKにする形もできるのかなとちょっと思いました。
dependencyDashboardApproval: trueの設定だけであれば: dependencyDashboardApprovalプリセットを追加すればいけるっぽみなので。
https://docs.renovatebot.com/key-concepts/dashboard/#require-approval-for-all-updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants