Skip to content

[Feature Request]: Check rulesets for branch protection rules #475

Open
@pritchyspritch

Description

@pritchyspritch

Currently it appears that allstar is not checking the GitHub rulesets active on a repository. Rulesets can be used to set branch protection rules on a repository and the details of it are obtained via a different API endpoint to the standard branch protection rules. This means that currently allstar can fail on branch protection rules, even when they've been implemented via rulesets.

As a user
I would like allstar to check for branch protection rules from both sets of data
So that I am not alerted for failing to implement branch protection when it's been implemented by a ruleset

As mentioned by @jeffmendoza I think combining the rulesets with branch protections policy makes sense as they do the same thing just in different ways.

Thanks :)

Initial question to investigate lack of checking regarding rulesets:

Hey 👋🏻

I've started to implement branch protection rules on repos via GitHub rulesets, rather than the original way of setting the protection and allstar has started raising issues saying they don't exist.

Is that because allstar isn't checking for rulesets or because I'm still missing something? I did have a little read of the repo and couldn't find specific reference. If it's not checking rulesets, will this be implemented in future?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions