Search code examples
phabricator

Phabricator: how to fire herald rule on acceptance of of Audit?


Is there a way to create herald rule to fire once a audit has been marked as accepted? Basically what I am trying to do is to trigger build job once a commit has been audited and marked as accepted

cheers


Solution

  • There is no herald rule for accepted audits. Like CEPA already said, you need to to a pre commit review. You can create a diff without using the cli arcanist.

    1. Do your stuff in the repo
    2. Stage and commit changes
    3. Create a diff for example with: git diff origin/master > diff
    4. Create a new diff in phabricator with: Differential > Create Diff and paste the file there. If you can't find the URI just use the link https:///differential/diff/create/

    Now you could create herald rules to react on new diffs and add blocking reviewers for example.

    You could also protect commiting to master.

    Keep in mind: This isn't the recommended way to work with differentials.