Branch protection with regex support #1811

Closed
opened 2025-11-02 04:13:57 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @sebastian-sauer on GitHub (May 23, 2018).

  • Gitea version (or commit ref): 1.4.1
  • Git version: not relevant
  • Operating system: not relevant
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
    • not relevant
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Currently branch protection is only available for named branches. In order to e.g. only allow specific colleagues to push into release branches it would be great if we could configure a regex for branch protection. This would allow us to protect all branches matching release and not having to protect each individual branch.

Screenshots

Originally created by @sebastian-sauer on GitHub (May 23, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.4.1 - Git version: not relevant - Operating system: not relevant - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - [x] not relevant - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Currently branch protection is only available for named branches. In order to e.g. only allow specific colleagues to push into release branches it would be great if we could configure a regex for branch protection. This would allow us to protect all branches matching release and not having to protect each individual branch. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/duplicate label 2025-11-02 04:13:57 -06:00
Author
Owner

@lafriks commented on GitHub (May 23, 2018):

There is already feature request for this #2529

@lafriks commented on GitHub (May 23, 2018): There is already feature request for this #2529
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1811