Skip to content

Allow unprotected branches#5

Merged
bzarboni1 merged 2 commits into
mainfrom
2-create-a-repo-where-we-can-push-to-trunkmain
Feb 29, 2024
Merged

Allow unprotected branches#5
bzarboni1 merged 2 commits into
mainfrom
2-create-a-repo-where-we-can-push-to-trunkmain

Conversation

@bzarboni1

@bzarboni1 bzarboni1 commented Feb 29, 2024

Copy link
Copy Markdown
Contributor

ISSUE

#2 Create a repo where we can push to trunk/main

A situation arose, where a default branch with no branch-protection be created, when necessary.


CHANGE

This change:

  • Removes the default behaviour of adding the default_branch to the list of protected branches
  • Setting the variable explicitly to an empty list (protected_branches = []) disables all branch protection
  • Not setting this variable has the behaviour of setting the default_branch as a protected branch

@bzarboni1 bzarboni1 linked an issue Feb 29, 2024 that may be closed by this pull request
@bzarboni1 bzarboni1 self-assigned this Feb 29, 2024
@bzarboni1 bzarboni1 merged commit a743e11 into main Feb 29, 2024
@bzarboni1 bzarboni1 deleted the 2-create-a-repo-where-we-can-push-to-trunkmain branch February 29, 2024 23:12
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

Successfully merging this pull request may close these issues.

Create a repo where we can push to trunk/main

2 participants