Skip to content

Configuration error details #3046

Answered by sileht
asbjornu asked this question in Q&A
Aug 20, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

You missing the dash before each condition, eg:

pull_request_rules:
  - name: Automatically approve dependency updates
    conditions:
      - and:
          - label=dependencies
      - or:
          - author~=^dependabot(|-preview)\[bot\]$
          - author~=^github-actions\[bot\]$
    actions:
      review:
        type: APPROVE

  - name: Automatic merge on approval
    conditions:
      - and:
          - label=dependencies
      - or:
          - author~=^dependabot(|-preview)\[bot\]$
          - author~=^github-actions\[bot\]$
    actions:
      merge:
        method: merge
        strict: smart

  - name: Thank contributor
    conditions:
      - merged
      - -author~=^.*\[bot\]$

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@asbjornu
Comment options

@sileht
Comment options

@asbjornu
Comment options

@sileht
Comment options

@asbjornu
Comment options

Answer selected by asbjornu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants