The below code snippet is picked from .kodiak.toml
# .kodiak.tomlversion = 1[approve]auto_approve_usernames = ["dependabot", "renovate"][merge]method = "squash"automerge_label = ["🚀 merge", "⬆️ dependencies"][merge.automerge_dependencies]# only auto merge "minor" and "patch" version upgrades.versions = ["minor", "patch"]usernames = ["dependabot", "renovate"][update]autoupdate_label = "♻️ autoupdate"
Let’s now refer to the documentation based on this configuration file. The first option is approve. If a PR is opened by a user with a username in the approve.auto_approve_usernames list, Kodiak will automatically add an approval to the PR. Read more about approve.
Next option in above file is merge. It has two variables set, method and automerge_label. Label your pull request with the kodiak: merge.method = ‘rebase’ label, for example, to set merge.method to “rebase” for your pull request. Read more about merge. automerge_label is a label to enable Kodiak to merge a PR. Kodiak can only merge pull requests passing your GitHub branch protection rules.If multiple labels are specified in an array, any of the specified labels will trigger merge.
[merge.automerge_dependencies]# only auto merge "minor" and "patch" version upgrades.versions = ["minor", "patch"]usernames = ["dependabot", "renovate"]
Kodiak will only automerge dependency upgrades for pull request authors in this list. Check out automerge_dependenciesusernames.
[update]autoupdate_label = "♻️ autoupdate"
Pull requests with the update.autoupdate_label will be updated when they are out-of-date with their base branch.
Hey, my name is Ramu Narasinga. I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.