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
F15461348: D17179.id41311.diff
Tue, Apr 1, 7:42 AM
F15454934: D17179.id41312.diff
Sat, Mar 29, 9:20 PM
F15449220: D17179.id.diff
Fri, Mar 28, 8:58 AM
F15445207: D17179.diff
Thu, Mar 27, 12:51 PM
F15397530: D17179.id41312.diff
Sun, Mar 16, 8:52 PM
F15387286: D17179.id41312.diff
Sat, Mar 15, 2:09 AM
F15384068: D17179.diff
Fri, Mar 14, 6:41 PM
Unknown Object (File)
Feb 21 2025, 7:03 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