feat: add task-owned web preview feedback (#3708)

Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
point-source
2026-09-22 05:20:58 -07:00
committed by GitHub
parent 0eea98528c
commit 308aada5f9
163 changed files with 15245 additions and 2215 deletions
+4 -1
View File
@@ -28,6 +28,8 @@ class ArchitectureFixture(unittest.TestCase):
def setUp(self) -> None:
self.tempdir = tempfile.TemporaryDirectory()
self.repo = Path(self.tempdir.name)
self.test_hooks = self.repo / ".empty-git-hooks"
self.test_hooks.mkdir()
self.git("init", "-q")
self.git("config", "user.email", "test@example.com")
self.git("config", "user.name", "Architecture Test")
@@ -38,8 +40,9 @@ class ArchitectureFixture(unittest.TestCase):
self.tempdir.cleanup()
def git(self, *args: str) -> subprocess.CompletedProcess[str]:
# Synthetic history must not depend on machine-wide Git hooks.
return subprocess.run(
["git", *args],
["git", "-c", f"core.hooksPath={self.test_hooks}", *args],
cwd=self.repo,
text=True,
capture_output=True,
+4 -1
View File
@@ -26,6 +26,8 @@ class SpecLinterTest(unittest.TestCase):
self.tmp = tempfile.TemporaryDirectory()
self.addCleanup(self.tmp.cleanup)
self.root = Path(self.tmp.name)
self.test_hooks = self.root / ".empty-git-hooks"
self.test_hooks.mkdir()
self.config = {
"version": 1,
"limits": {
@@ -46,8 +48,9 @@ class SpecLinterTest(unittest.TestCase):
return path
def git(self, *args: str) -> None:
# Synthetic history must not depend on machine-wide Git hooks.
subprocess.run(
["git", *args],
["git", "-c", f"core.hooksPath={self.test_hooks}", *args],
cwd=self.root,
check=True,
capture_output=True,