Skip to content

Implement ability to require workflows to pass before merging in organization repository rulesets #607

Open
@laura-maree-sp

Description

@laura-maree-sp

Prerequisites:

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:

      rules:
      - type: deletion
      - type: non_fast_forward
      - type: workflows
        parameters: 
          workflows:
          - path: .github/workflows/check.yml
            ref: main
            repository_id: 349423409

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions