[PR #4] protect master branches except for the pecl repos against force pushes #3

Open
opened 2026-01-24 11:39:12 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/php/karma/pull/4
Author: @Tyrael
Created: 8/9/2015
Status: 🔄 Open

Base: masterHead: restrict_master_except_pecl


📝 Commits (2)

  • 9d15a00 protect master branches except for the pecl repos against force pushes
  • e8cd3b8 fix the restricted branch appendion as pointed out by salathe

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 hooks/pre-receive (+5 -1)

📄 Description

as discussed on the mailing list it would be nice if not everybody can force push for every other repo but php-src.git.
@johannes mentioned that we should allow force pushes for the pecl repos so what I came up with is to restrict force pushes by default for the master branch on every repo except those with a name starting with pecl/.
I tried to test my changes, but testing a pre-receive hooks is a PITA manually, so it would be nice if somebody could review my change before merging it.


🔄 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/php/karma/pull/4 **Author:** [@Tyrael](https://github.com/Tyrael) **Created:** 8/9/2015 **Status:** 🔄 Open **Base:** `master` ← **Head:** `restrict_master_except_pecl` --- ### 📝 Commits (2) - [`9d15a00`](https://github.com/php/karma/commit/9d15a00fde3119a8b4e26b02d66c3aa6a1c5d2c9) protect master branches except for the pecl repos against force pushes - [`e8cd3b8`](https://github.com/php/karma/commit/e8cd3b8ed569f42120f83db6933db3f29cede75c) fix the restricted branch appendion as pointed out by salathe ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `hooks/pre-receive` (+5 -1) </details> ### 📄 Description as discussed on the mailing list it would be nice if not everybody can force push for every other repo but php-src.git. @johannes mentioned that we should allow force pushes for the pecl repos so what I came up with is to restrict force pushes by default for the master branch on every repo except those with a name starting with pecl/. I tried to test my changes, but testing a pre-receive hooks is a PITA manually, so it would be nice if somebody could review my change before merging it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-24 11:39:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: php/karma#3