Page MenuHomePhabricator

Fix Herald test adapter for commits
ClosedPublic

Authored by epriestley on Aug 17 2016, 3:37 PM.
Tags
None
Referenced Files
F14830495: D16413.diff
Wed, Jan 29, 9:13 PM
Unknown Object (File)
Tue, Jan 21, 9:15 AM
Unknown Object (File)
Sat, Jan 18, 7:46 AM
Unknown Object (File)
Sat, Jan 18, 5:17 AM
Unknown Object (File)
Dec 29 2024, 4:39 PM
Unknown Object (File)
Dec 20 2024, 4:28 PM
Unknown Object (File)
Dec 11 2024, 7:26 AM
Unknown Object (File)
Dec 8 2024, 11:31 AM
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