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
Unknown Object (File)
Thu, Apr 11, 9:18 AM
Unknown Object (File)
Thu, Mar 28, 6:22 AM
Unknown Object (File)
Sat, Mar 23, 5:35 PM
Unknown Object (File)
Sat, Mar 23, 5:35 PM
Unknown Object (File)
Sat, Mar 23, 5:34 PM
Unknown Object (File)
Sat, Mar 23, 5:34 PM
Unknown Object (File)
Mar 13 2024, 5:02 PM
Unknown Object (File)
Feb 24 2024, 2:43 AM
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