Skip to content

ci(mergify): upgrade configuration to current format

Mergify / Configuration changed failed Nov 20, 2024 in 0s

The new Mergify configuration is invalid

Invalid YAML @ root → line 10, column 25 → queue_rules:

  • name: duplicated default from Re-queue any PR with a 'requeue' label
    queue_conditions:
    • label=requeue
      merge_conditions: []
      merge_method: fast-forward
      update_method: rebase
      autosquash: true
      merge_bot_account: &name_merge_bot rbusarow-bot
      update_bot_account: &name_merge_bot rbusarow-bot
  • name: default
    merge_conditions:
    • and: &label_automerge
      • label=automerge
    • and: &base_main
      • base=main
    • and: &not_label_dnm
      • label!=do-not-merge
        merge_method: fast-forward
        update_method: rebase
        autosquash: true
        merge_bot_account: *name_merge_bot
        update_bot_account: *name_merge_bot
        shared:
        author-bot: &author_bot
    • or:
      • author=rb-org-bot[bot]
      • author=dependabot[bot]
      • author=renovate[bot]
        author-rbusarow: &author_rbusarow
    • author=RBusarow
      base-main: *base_main
      label-approved: &label_approved
    • label=approved
      label-automerge: *label_automerge
      label-dnm:
    • label=do-not-merge
      not-label-dnm: *not_label_dnm
      label-rebase: &label_rebase
    • label=rebase
      name-approved: &name_approved approved
      name-automerge: &name_automerge automerge
      name-rb-org-bot: &name_rb_org_bot rb-org-bot[bot]
      name-merge-bot: *name_merge_bot
      name-rebase: &name_rebase rebase
      success-ci: &success_ci
    • check-success=all-checks

pull_request_rules:

  • name: Remove automerge label once merged
    conditions:

    • merged
    • and: *label_automerge
      actions:
      label:
      remove:
      • *name_automerge
  • name: Auto-approve RBusarow PRs
    conditions:

    • and: *success_ci
    • and: *author_rbusarow
      actions:
      review:
      type: APPROVE
      message: Automatically approving RBusarow pull request
  • name: Auto-approve bot PRs
    conditions:

    • and: *success_ci
    • or: *author_bot
      actions:
      review:
      type: APPROVE
      message: Automatically approving bot pull request
  • name: Auto-approve any PR with an 'approved' label
    conditions:

    • and: *success_ci
    • and: *label_approved
      actions:
      rebase:
      autosquash: true
      bot_account: *name_merge_bot
      label:
      remove:
      • *name_approved
  • name: Rebase any PR with a 'rebase' label
    conditions:

    • and: *label_rebase
      actions:
      rebase:
      autosquash: true
      bot_account: *name_merge_bot
      label:
      remove:
      • *name_rebase
  • name: Re-queue any PR with a 'requeue' label
    conditions:

    • label=requeue
      actions:
      label:
      remove:
      • requeue
  • name: refactored queue action rule
    conditions: []
    actions:
    queue:

found duplicate anchor; first occurrence
  in "<unicode string>", line 9, column 24
second occurrence
  in "<unicode string>", line 10, column 25

Annotations

Check failure on line 10 in .mergify.yml

See this annotation in the file changed.

@mergify mergify / Configuration changed

Invalid YAML

found duplicate anchor; first occurrence
  in "<unicode string>", line 9, column 24
second occurrence
  in "<unicode string>", line 10, column 25