-
I've managed to commit a Clicking the "View more details on Mergify" link just takes me back to the same URL. Hopefully you can let me know what the problem with the configuration file is, but I would also appreciate if the validation of the configuration file could be a bit more verbose in its output so I would be able to debug problems like these without any human assistance. Here's my invalid config file: 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\]$
actions:
comment:
message: "Thank you @{{author}} for your contribution!" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
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\]$
actions:
comment:
message: "Thank you @{{author}} for your contribution!" |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
You missing the dash before each condition, eg: