Page MenuHomePhabricator

Fix Herald test adapter for commits
ClosedPublic

Authored by epriestley on Aug 17 2016, 3:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 4:00 PM
Unknown Object (File)
Sat, Apr 20, 1:23 AM
Unknown Object (File)
Fri, Apr 19, 5:13 PM
Unknown Object (File)
Wed, Apr 17, 2:03 PM
Unknown Object (File)
Wed, Apr 17, 5:35 AM
Unknown Object (File)
Wed, Apr 10, 11:39 PM
Unknown Object (File)
Sat, Apr 6, 3:40 AM
Unknown Object (File)
Mar 20 2024, 1:11 PM
Subscribers
None

Details

Summary

Fixes T11488. I broke this in D16360, I think by doing a little extra refactoring after testing it.

This code is very old, before commits always needed to have repositories attached in order to do policy checks.

Modernize it by mostly just using the repository which is present on the Commit object, and using the existing edge cache.

Test Plan

Ran a commit through the Herald test adapter.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable