Add commit author restriction push rule
Problem to solve
The Committer restriction push rule only enforces that the committer email is the currently authenticated user. However commits have two fields, committer and author. I need to use a custom hook to make sure the author email is the same as the user pushing the commit.
Further details
Proposal
Add a new Push rules to the Project and Instance level:
- Author restriction - reject any commits where the author email is not a verified email of the current user
For consistency with Committer restriction push, this should be in Premium
Links / references
Edited by James Ramsay (ex-GitLab)