Skip to content
Discussion options

You must be logged in to vote

@scrocquesel-ml150

Your assumption that, the presets within packageRules are spread into the parent object is correct.

Your packageRule:

{
  "extends": [":automergeMinor", ":label(deploy_pr)"],
  "matchSourceUrls": ["https://private_repo"],
  "autoApprove": true
}

After resolution it spreads into:

{
  "matchSourceUrls": ["https://private_repo"],
  "minor": { "automerge": true },
  "patch": { "automerge": true },
  "pin":   { "automerge": true },
  "lockFileMaintenance": { "automerge": true },
  "addLabels": ["deploy_pr"],
  "autoApprove": true
}

What you got wrong was the config of automergeMinor..

  • automerge is correctly scoped to minor/patch/pin/lockfile, because the preset nested it un…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RahulGautamSingh
Comment options

Answer selected by RahulGautamSingh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants