[PR #339] [MERGED] Protected branches system #15320

Closed
opened 2025-11-02 11:43:57 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/339
Author: @denji
Created: 12/2/2016
Status: Merged
Merged: 2/21/2017
Merged by: @lunny

Base: masterHead: protect_branch


📝 Commits (6)

  • 0912cbb Protected branches system
  • 47f9f54 finished the UI and add/delete protected branch response
  • 4fc3563 reformat tmpl
  • 92e5ae3 remove unused comment
  • ab01219 indent all the template files and remove ru translations since we use crowdin
  • 7385620 fix the push bug

📊 Changes

17 files changed (+606 additions, -49 deletions)

View changed files

📝 cmd/serve.go (+4 -0)
📝 cmd/update.go (+20 -0)
📝 cmd/web.go (+5 -0)
models/branches.go (+161 -0)
📝 models/migrations/migrations.go (+2 -0)
models/migrations/v17.go (+29 -0)
📝 models/repo.go (+6 -0)
📝 modules/auth/repo_form.go (+0 -1)
📝 options/locale/TRANSLATORS (+2 -2)
📝 options/locale/locale_en-US.ini (+12 -0)
📝 public/js/index.js (+37 -0)
📝 routers/repo/http.go (+86 -11)
📝 routers/repo/setting.go (+137 -11)
templates/repo/settings/branches.tmpl (+91 -0)
📝 templates/repo/settings/nav.tmpl (+1 -0)
📝 templates/repo/settings/navbar.tmpl (+5 -0)
📝 templates/repo/settings/options.tmpl (+8 -24)

📄 Description

gogits/gogs@7e09d21, #32 (gogits/gogs#3921)

  • Moved default branch to branches section (:org/:reponame/settings/branches).
  • Initial support Protected Branch.
    • Admin does not restrict
    • Owner not to limit
    • To write permission restrictions

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/339 **Author:** [@denji](https://github.com/denji) **Created:** 12/2/2016 **Status:** ✅ Merged **Merged:** 2/21/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `protect_branch` --- ### 📝 Commits (6) - [`0912cbb`](https://github.com/go-gitea/gitea/commit/0912cbb31ec5674c21112ea2d9b28c1ea44a7ab2) Protected branches system - [`47f9f54`](https://github.com/go-gitea/gitea/commit/47f9f545cd8ecf968f31ce4324d98a58f25e99b2) finished the UI and add/delete protected branch response - [`4fc3563`](https://github.com/go-gitea/gitea/commit/4fc35639edfe795328b581671af9be4709b9b909) reformat tmpl - [`92e5ae3`](https://github.com/go-gitea/gitea/commit/92e5ae3907ca6114cdd5bb161775f69a2bbdd9e2) remove unused comment - [`ab01219`](https://github.com/go-gitea/gitea/commit/ab012193b6bb7b99eb00bd203fef75b321542772) indent all the template files and remove ru translations since we use crowdin - [`7385620`](https://github.com/go-gitea/gitea/commit/73856202a185f899e2268ebeba40e442757978de) fix the push bug ### 📊 Changes **17 files changed** (+606 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serve.go` (+4 -0) 📝 `cmd/update.go` (+20 -0) 📝 `cmd/web.go` (+5 -0) ➕ `models/branches.go` (+161 -0) 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v17.go` (+29 -0) 📝 `models/repo.go` (+6 -0) 📝 `modules/auth/repo_form.go` (+0 -1) 📝 `options/locale/TRANSLATORS` (+2 -2) 📝 `options/locale/locale_en-US.ini` (+12 -0) 📝 `public/js/index.js` (+37 -0) 📝 `routers/repo/http.go` (+86 -11) 📝 `routers/repo/setting.go` (+137 -11) ➕ `templates/repo/settings/branches.tmpl` (+91 -0) 📝 `templates/repo/settings/nav.tmpl` (+1 -0) 📝 `templates/repo/settings/navbar.tmpl` (+5 -0) 📝 `templates/repo/settings/options.tmpl` (+8 -24) </details> ### 📄 Description gogits/gogs@7e09d21, #32 (~~gogits/gogs#3921~~) * Moved default branch to branches section (`:org/:reponame/settings/branches`). * Initial support Protected Branch. - Admin does not restrict - Owner not to limit - To write permission restrictions --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:43:57 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15320