Skip to content

Automate configuration of branch protections #1432

@scpeters

Description

@scpeters

When our CI job names change, it requires significant manual effort by a maintainer with significant github privileges to update the branch protection settings (at a URL like https://github.com/gazebo-tooling/release-tools/settings/branches), for example in #1416.

Performing this task manually is even a bit tricky as you can only mark CI jobs as required if they have executed in the past week. Since we may have different CI job names depending on the target branch, you may need to open a pull request to trigger a job in order to mark it as required for a branch.

Some discussion about automating configuration of branch protections is discussed in cli/cli#3528, making use of the branch protection REST API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions