| [11:14:01] | <mstenta[m]> | Does anyone know if there's a way to prevent new branches from being pushed to a GitHub repo? |
| [11:14:24] | <mstenta[m]> | The branch protection rules seem to only pertain to existing branches. |
| [11:14:56] | <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. |
| [11:15:31] | <mstenta[m]> | Not critical... just trying to avoid accidentally pushing branches to origin that are intended to be pushed to a fork. |
| [12:55:11] | <symbioquine[m]> | Can't you just do this?: |
| [12:55:15] | <symbioquine[m]> | ACTION uploaded an image: (239KiB) < https://matrix.org/oftc/media/v1/media/download/AUKO-NWlN5-pQ8hqINqwzNXe... > |
| [12:56:48] | <mstenta[m]> | Oh! Those are the new "ruleset" options... |
| [12:57:12] | <symbioquine[m]> | It's new to me too, but it looks like it should do what you want. |
| [12:57:23] | <mstenta[m]> | I was looking at the old "branch protection rules" |
| [12:59:43] | <mstenta[m]> | That worked! |
| [13:00:07] | <mstenta[m]> | (Couldn't create a new branch anyway... Will see if it prevents pushing to an existing branch later... but probably good!) |
| [13:00:11] | <mstenta[m]> | Thanks! |
| [13:00:25] | <symbioquine[m]> | np |