Herald rule to block all push made without arc diff


#1

Hi all!

I would like to know if there is a way that exists to prevent all push on all branch that are made without the use of Arcanist and especially without using of command like arc diff and arc land.

Thank you !


#2

No.


#3

Hmm actually yes (I just tested it) whit:
Rule Type
Global
Applies To
Commit Hook: Commit Content

When all of these conditions are met:
Differential revision does not exist

Take these actions every time this rule matches:
Block push with message: blablabla


#4

The rule you describe blocks commits without an associated revision, which is different from what you asked for.


#5