Replies: 3 comments 6 replies
-
You're using Also, be aware that this will be true as soon as one job matching this regex is true. |
Beta Was this translation helpful? Give feedback.
-
That's right. I want ALL the jobs matching the regex to either pass or be skipped. My AI bot told me that using a wildcard would mean that ALL checks matching it would have to all pass or all be skipped (which is what I want in my case). But given what you said, I guess I'm forced to spell out the name of each test? |
Beta Was this translation helpful? Give feedback.
-
@jd I tried the following: - or:
- and:
- check-success="gcc-openmp / dbg"
- check-success="gcc-openmp / opt"
- check-skipped~="gcc-openmp / .*" but it doesn't work. The problem is that these dbg/opt/... (there are more) are jobs created by a matrix strategy. I use the matrix entry to create the job name, like name: my-job / ${{ matrix.build_type }} and if the job is skipped, there is only ONE check, whose name is the literal string |
Beta Was this translation helpful? Give feedback.
-
I have been struggling trying to add the correct check names to my protection rules. I am hoping someone can pin point my mistake.
I have a few jobs, which can run or be skipped (e.g., if a certain label is found, I skip the job), so I want my check to be "either they passed or they were skipped". I realized that the check name was not "/", so to be safe I used PyGithub to retrieve the exact names. This is what I got:
My current .mergify.yml file has this
While the last one is picked up (corresponding to the last check in the list above), the othres are not. I tried to modify the syntax, since I figured the spaces may be a problem. E.g., for
gcc-openmp / XYZ
I tried the followingcheck-success=gcc-openmp/*
check-success=gcc-openmp / *
"check-success=gcc-openmp/*"
"check-success=gcc-openmp / *"
None of them worked. What am I doing wrong? How can I capture a bunch of checks (whose name contains a space) in one "check-success" clause?
Beta Was this translation helpful? Give feedback.
All reactions