Page MenuHomePhabricator

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

Authored by epriestley on Jan 11 2017, 6:13 PM.
Tags
None
Referenced Files
F13182602: D17179.id.diff
Thu, May 9, 11:59 PM
Unknown Object (File)
Tue, May 7, 7:53 AM
Unknown Object (File)
Fri, May 3, 7:33 AM
Unknown Object (File)
Fri, May 3, 4:37 AM
Unknown Object (File)
Fri, May 3, 4:37 AM
Unknown Object (File)
Fri, May 3, 4:33 AM
Unknown Object (File)
Thu, Apr 25, 1:36 AM
Unknown Object (File)
Sun, Apr 21, 1:20 PM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable