Home GnuPG

Draw project PHIDs from repositories when evaluating Herald object rules for…
a27c824da67dUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Draw project PHIDs from repositories when evaluating Herald object rules for commits

Summary:
Fixes T12097. In D16413, I simplified this code but caused us to load the commit's projects instead of the repository's projects, which is incorrect.

Normally, commits don't have any project tags when Herald evaluates, so using the commit's projects is generally meaningless.

Test Plan:

  • Tagged a repository with #X.
  • Created a Herald object rule for commits with #X as the object ("Always ... do nothing.")
  • Ran a commit from the repository.
  • Before patch: rule failed to evaluate.
  • After patch: rule evaluated and passed.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12097

Differential Revision: https://secure.phabricator.com/D17179

Details

Provenance
epriestley <git@epriestley.com>Authored on Jan 11 2017, 7:09 PM
Parents
rPHAB7ff0be1bde2f: Bring very basic EditEngine support to commits
Branches
Unknown
Tags
Unknown

Event Timeline