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)
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)
Wed, Mar 20, 1:11 PM
Unknown Object (File)
Feb 15 2024, 5:54 PM
Unknown Object (File)
Feb 11 2024, 11:26 PM
Unknown Object (File)
Feb 10 2024, 9:50 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