Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically enable branch protection #2

Open
Apreche opened this issue Jul 18, 2021 · 0 comments
Open

Automatically enable branch protection #2

Apreche opened this issue Jul 18, 2021 · 0 comments

Comments

@Apreche
Copy link
Owner

Apreche commented Jul 18, 2021

Djangogoboot sets up a new project that has two GitHub actions for checks. One for lint, and one for tests. However, by default users can just go ahead and merge PRs that do not pass these checks. GitHub's protected branch feature must be used to actually require that PRs pass checks before being merged to main.

The problem is that only paying GitHub subscribers can protect branches on private repositories. We want to automatically set main to be a protected branch that requires checks to pass, but we must first detect if the GitHub user is a subscriber or if the repository is public (see issue #1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant