What status checks can be used for GitHub organization rulesets
Asked Answered
S

1

10

When using branch protection on a repository, you can specify Require status checks to pass before merging. You can search for a job that is used by one of your workflows within the repository by typing to initiate the auto-complete.

Now, when using the new feature GitHub Repository Rules, you have the option to set these up on an organizational level. In there you can roughly do the same as with branch protection but you can put it on a higher level. The question is, when you setup the Repository ruleset on organization settings, what are you able to use as the status checks. From the organization's settings, I am talking about this menu:

Repository rulesets menu item

There does not seem to be an auto-complete feature, and I am able to type anything and add it via the plus button:

Adding any status checks within repository rulesets

So, I am wondering what we can add in here. The Repository ruleset that I currently have is set up for target "Select repositories". And I have for example a job called "build-api" which I am able to search for in the repository's branch protection:

branch protection status check available

This job is available in all of the selected repositories, so I might be able to add that name in there.
If I press the save button, I get the message Ruleset updated at the bottom left and when re-opening the ruleset, it still shows those non-existing status checks.

I checked this documentation page but that does not show much.

Also, I noticed in both of these discussion feedback's screenshot that the user gets a rounded rectangle in the search box which I don't seem to get:

So, anyone a clue on what you can enter?

Schnozzle answered 28/8, 2023 at 14:40 Comment(0)
I
-1

If someone still struggling refer screenshot Status checks that are required

Ish answered 22/8, 2024 at 14:46 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Matchbox

© 2022 - 2025 — McMap. All rights reserved.