You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the functionality is not yet available in the API, it would be helpful if you
contacted support (https://support.github.com/) or posted in the Community Forum (https://github.community/). Please
include a link to the forum post if you create one or a copy of the response from support.
New Feature
Please describe the desired new functionality:
After trying to implement an organization repository ruleset via safe-settings, I have been unable to require a workflow to pass before merging in the ruleset. This is currently an option in the UI when creating a repository ruleset for an organization, and it can also be implemented via the API.
I did not see this as an option in the safe-settings example docs, but I did try this in the rules section of the repository ruleset:
Hi @laura-maree-sp. The required workflow rule is supported as I recently got it working for the organization I am part of. The first thing to note is that this rule is limited to enterprise customers, so if the organization is not part of an enterprise then this feature will not be available.
In terms of the issue with the rule you pasted, simply change ref: main to ref: refs/heads/main. Everything else about your configuration looks good.
P.S. It is helpful to turn on debug logs for the application deployment to find sources of error (which is what I had to do to figure out why my configuration - which had the same issue as yours - wasn't working).
Prerequisites:
(https://docs.github.com/en/enterprise-cloud@latest/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#require-workflows-to-pass-before-merging)
Is the functionality available through the GitHub API? If the functionality is available, please provide links to the
API documentation (https://developer.github.com/v3/) as well as the Octokit documentation (https://octokit.github.io/).
(https://docs.github.com/en/rest/orgs/rules?apiVersion=2022-11-28#create-an-organization-repository-ruleset)
If the functionality is not yet available in the API, it would be helpful if you
contacted support (https://support.github.com/) or posted in the Community Forum (https://github.community/). Please
include a link to the forum post if you create one or a copy of the response from support.
New Feature
Please describe the desired new functionality:
After trying to implement an organization repository ruleset via safe-settings, I have been unable to require a workflow to pass before merging in the ruleset. This is currently an option in the UI when creating a repository ruleset for an organization, and it can also be implemented via the API.
I did not see this as an option in the safe-settings example docs, but I did try this in the rules section of the repository ruleset:
This did not work for me, so I'm assuming this is either not implemented, or I have an error in the above. Any feedback for this feature?
The text was updated successfully, but these errors were encountered: