github-community-projects / github-community-projects/safe-settings

Branch Protections should be synced on branch creation events

Open
#491 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
921
Forks
226
Avg merge
18h 3m
Merged PRs (30d)
14

Description

Please describe the desired new functionality:

safe-settings should be able to handle [create](https://docs.github.com/en/webhooks-and-events/events/github-event-types#createevent)/[delete](https://docs.github.com/en/webhooks-and-events/events/github-event-types#deleteevent) events, and update branch protection rules(sync repo) for those events.

Ideally, there should be some sort of filter to ignore spammy branches, like ignoring dependabot_*.

Example usecase:
We would like to store repository metadata in .organization_name branch and make sure that branch is protected. However, this doesn't get triggered unless there is a cron, or some other sync that is scheduled

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.