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
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)
Thu, Apr 4, 1:11 AM
Unknown Object (File)
Feb 21 2024, 7:08 AM
Unknown Object (File)
Feb 11 2024, 11:42 AM
Unknown Object (File)
Feb 11 2024, 2:58 AM
Unknown Object (File)
Feb 8 2024, 12:44 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

Lint
Lint Skipped
Unit
Tests Skipped