mirror of
https://github.com/php/karma.git
synced 2026-03-24 09:12:14 +01:00
[PR #4] protect master branches except for the pecl repos against force pushes #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/php/karma/pull/4
Author: @Tyrael
Created: 8/9/2015
Status: 🔄 Open
Base:
master← Head:restrict_master_except_pecl📝 Commits (2)
9d15a00protect master branches except for the pecl repos against force pushese8cd3b8fix 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.