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
F17648923: D17179.id41311.diff
Sat, Jul 12, 3:04 AM
Unknown Object (File)
Jun 18 2025, 9:45 AM
Unknown Object (File)
Jun 16 2025, 12:55 AM
Unknown Object (File)
Jun 4 2025, 6:19 AM
Unknown Object (File)
May 29 2025, 8:57 AM
Unknown Object (File)
May 29 2025, 7:34 AM
Unknown Object (File)
May 28 2025, 12:37 PM
Unknown Object (File)
May 7 2025, 2:42 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