Page MenuHomePhabricator

Add "is merge commit" Herald field for pre-commit rules
ClosedPublic

Authored by epriestley on Dec 20 2013, 12:23 AM.
Tags
None
Referenced Files
F13162895: D7809.diff
Mon, May 6, 4:18 PM
Unknown Object (File)
Sat, May 4, 12:18 PM
Unknown Object (File)
Fri, May 3, 3:30 AM
Unknown Object (File)
Mon, Apr 29, 2:44 PM
Unknown Object (File)
Wed, Apr 24, 10:14 PM
Unknown Object (File)
Sat, Apr 20, 6:12 PM
Unknown Object (File)
Wed, Apr 10, 4:21 AM
Unknown Object (File)
Apr 4 2024, 1:11 AM
Subscribers

Details

Summary

Ref T4195. This allows you to write rules which disallow merge commits.

Also make the reject message a little more useful.

Test Plan
remote: This push was rejected by Herald push rule H27.
remote: Change: commit/daed0d448404
remote:   Rule: No Merges
remote: Reason: No merge commits allowed. If you must push a merge, include "@force-merge" in the commit message.

Diff Detail

Branch
hashq6
Lint
Lint Passed
Unit
No Test Coverage