-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: 自動的にマージする設定を追加 #14
base: main
Are you sure you want to change the base?
Conversation
lockFileMaintenance: { | ||
automerge: true | ||
} | ||
'local>openameba/renovate-config:automerge-all.json5' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q. main.json5にもlockFileMaintenance:enableの記載がありますが、動作的にはextends後勝ち(この場合は自動マージ)ですか?
≒利用者はextendsの順番を気にする必要がありますか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ふーむ、確かに、把握しておいた方がいいなと思いextendsした後の設定をrenovateコマンドから出力できるのではないかといろいろ調べてみていたんですが、手元では簡単に出力できなかったので実際にどうなるのかはもうちょっと調べてみます。
おそらくextendsを配列で指定する以上、後勝ちではあるはずで、ただオブジェクトのマージがdeepなのかshallowなのかは把握してないのでautomerge系にはlockFileMaintenanceについても書いた、という感じです。後に書くはず、という前提の基で。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to get resolved config:
RENOVATE_TOKEN=xxx LOG_LEVEL=info npx renovate --force-cli=true --platform=github --dry-run=full --print-config=true --require-config=renovate.json5 openameba/renovate-config | tee log.txt
or
LOG_LEVEL=info npx renovate --token=xxx --force-cli=true --platform=github --dry-run=full --print-config=true --require-config=renovate.json5 openameba/renovate-config | tee log.txt
RENOVATE_TOKEN
is your Personal Access Token, needs repo
scope
If you want to check config file in locally, change --require-config
value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️これリモートリポジトリのファイルしかチェックできんな
- https://medium.com/@asimmon/locally-test-and-validate-your-renovate-configuration-files-3cd4429b63e2
- https://dev.to/corrupt952/debugging-renovate-locally-4k8
When an array or object configuration option is
mergeable
, it means that values inside it will be added to any existing object or array that existed with the same name.
via: https://docs.renovatebot.com/configuration-options/#configuration-options
とのことで
mergeable: true
via: https://docs.renovatebot.com/configuration-options/#lockfilemaintenance
なのでlockFileMaintenanceに関しては後勝ちで値はdeep-mergeだそうで配下の値も個別に後勝ちということになりますかね。
自動的にマージする設定を追加しました