Skip to content

Add support for rulesets #49

Closed
Closed

Description

@netomi

Rulesets are a drop in replacement for Branch Protection Rules with many more features and workarounds for things that are not supported with Branch Protection Rules.

It would be very valuable to have support for that also via the .asf.yaml file.

Activity

  1. added
    enhancement
    on Mar 21, 2025
  2. Humbedooh commented on Mar 21, 2025

    @Humbedooh
    Member

    Agreed, this is what we should focus on for the future, especially as it governs both branches and tags.

  3. erisu commented on Nov 18, 2025

    @erisu
    Member

    +1

    I also think this feature is something we should focus on. Possibly sooner rather than later.

    While refactoring a guide, I noticed a potential scenario where I might want the ability to lock down the creation of certain prefixed tags and allow only a specific team to bypass that restriction.

    It appears that "rules" has REST APIs for creating rulesets: https://docs.github.com/en/rest/orgs/rules?apiVersion=2022-11-28

    I'm wondering whether supporting "Team" as a bypass_actors would be complicated to support.

    • Isn't "Team" something created and managed at the organizational level?
    • Would we have to submit JIRA requests for this? We'd need to ensure that only valid project members can be added.
    • If the team is created, how would someone know they are referencing the correct team in the YAML?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions