| 15:14 | mstenta[m] | Does anyone know if there's a way to prevent new branches from being pushed to a GitHub repo? |
| 15:14 | mstenta[m] | The branch protection rules seem to only pertain to existing branches. |
| 15:14 | mstenta[m] | It's possible to set the branch name to a wildcard (*) in a rule, but I tried a few different options and none of them prevented new branch creation. |
| 15:15 | mstenta[m] | Not critical... just trying to avoid accidentally pushing branches to origin that are intended to be pushed to a fork. |
| 16:55 | symbioquine[m] | Can't you just do this?: |
| 16:55 | * | uploaded an image: (239KiB) < matrix.org/oftc/media/v1/media/download/ > |
| 16:56 | mstenta[m] | Oh! Those are the new "ruleset" options... |
| 16:57 | symbioquine[m] | It's new to me too, but it looks like it should do what you want. |
| 16:57 | mstenta[m] | I was looking at the old "branch protection rules" |
| 16:59 | mstenta[m] | That worked! |
| 17:00 | mstenta[m] | (Couldn't create a new branch anyway... Will see if it prevents pushing to an existing branch later... but probably good!) |
| 17:00 | mstenta[m] | Thanks! |
| 17:00 | symbioquine[m] | np |