Vincent Verweij
Vincent Verweij

Reputation: 375

What status checks can be used for GitHub organization rulesets

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?

Upvotes: 13

Views: 1136

Answers (1)

sachin zxc
sachin zxc

Reputation: 1

If someone still struggling refer screenshot Status checks that are required

Upvotes: -2

Related Questions