Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
71ba4ae
docs(standards): add organization health defaults
scttbnsn Aug 13, 2026
22feaaa
ci(greptile): require manual review requests (#11)
scttbnsn Aug 14, 2026
932eb95
chore(sync): reconcile main before promotion
scttbnsn Aug 14, 2026
bc5ab59
ci(workflows): add reusable CI foundation (#13)
scttbnsn Aug 14, 2026
5ee1885
chore(sync): reconcile main before promotion
scttbnsn Aug 14, 2026
16a6680
feat(quality): standardize long-run reporting (#15)
scttbnsn Aug 14, 2026
cd3c68f
chore(sync): reconcile main before promotion
scttbnsn Aug 14, 2026
99a7a99
fix(quality): enforce report contract boundaries
scttbnsn Aug 14, 2026
9a5362a
fix(quality): decode reports as utf-8
scttbnsn Aug 14, 2026
a39c5bd
test(quality): pin fixture encoding
scttbnsn Aug 14, 2026
7be30f3
ci(profile): make asset generation read-only (#10)
scttbnsn Aug 14, 2026
55c58e8
ci(review): add deduplicated Greptile summon (#9)
scttbnsn Aug 14, 2026
e30a84d
chore(sync): reconcile main before promotion
scttbnsn Aug 14, 2026
6e7a78d
ci(workflows): add run-test and run-lint toggles to go-ci (#19)
scttbnsn Aug 16, 2026
f347593
chore(sync): reconcile main before promotion
scttbnsn Aug 16, 2026
04ad251
ci(workflows): add module-directory input to node-ci (#22)
scttbnsn Aug 16, 2026
67d152a
chore(sync): reconcile main before promotion
scttbnsn Aug 16, 2026
7f9be8b
docs(onboarding): record the qlty alignment baseline (#24)
scttbnsn Aug 16, 2026
922de8f
chore(sync): reconcile main before promotion
scttbnsn Aug 16, 2026
f4c1d50
docs(onboarding): align with the codified standards registry (#26)
scttbnsn Aug 16, 2026
e211199
chore(sync): reconcile main before promotion
scttbnsn Aug 16, 2026
5ac2e3f
chore(repo): meet our own onboarding checklist (#28)
scttbnsn Aug 16, 2026
5bc5208
chore(sync): reconcile main before promotion
scttbnsn Aug 16, 2026
30d6b13
docs(community): org-default code of conduct + community checklist (#30)
scttbnsn Aug 17, 2026
3e80630
chore(sync): reconcile main before promotion
scttbnsn Aug 17, 2026
dd74a99
feat(workflows): add the shared star-chart refresh reusable workflow …
scttbnsn Aug 20, 2026
82f48ca
chore(sync): reconcile main before promotion
scttbnsn Aug 20, 2026
79801af
Main-is-released check, and the codified star-chart shape (#34)
scttbnsn Aug 21, 2026
e2c03ba
chore(sync): reconcile main before promotion
scttbnsn Aug 21, 2026
58c1fd4
fix(workflows): close three shared-workflow defects (#36)
scttbnsn Aug 21, 2026
22d2706
chore(sync): reconcile main before promotion
scttbnsn Aug 21, 2026
0dd3d77
chore: gitignore .claude/ so a nested worktree can't be staged as a g…
scttbnsn Aug 27, 2026
54f1b86
fix(starchart): the documented dispatch step needs actions:write (#39)
scttbnsn Aug 27, 2026
0151d3e
chore(renovate): tidy go.sum after a gomod update (#40)
scttbnsn Aug 27, 2026
759794f
chore(sync): reconcile main before promotion
scttbnsn Aug 27, 2026
eb74985
chore(renovate): move the vite ecosystem as one group (#42)
scttbnsn Aug 27, 2026
d2120bc
chore(sync): reconcile main before promotion
scttbnsn Aug 27, 2026
eddc1af
chore(renovate): scope Portwing lock maintenance exception (#44)
scttbnsn Aug 30, 2026
5d4b724
chore(sync): reconcile main before promotion
scttbnsn Aug 30, 2026
d0f3e5b
fix(renovate): scope lock maintenance to npm
scttbnsn Aug 30, 2026
0aa77c2
docs(onboarding): add the .planning/ gitignore checkbox (#46)
scttbnsn Sep 7, 2026
495a52a
chore(sync): reconcile main before promotion
scttbnsn Sep 7, 2026
49a5982
fix(quality): isolate validation and pace hosted work (#48)
scttbnsn Oct 25, 2026
6bc2e35
chore(sync): reconcile main before promotion
scttbnsn Oct 25, 2026
2684d4d
chore(renovate): target dev/repository-standards (#50)
scttbnsn Oct 26, 2026
488b322
docs(onboarding): align checklist with contextual guidance (#51)
scttbnsn Oct 26, 2026
aa8c2ad
chore(sync): reconcile main before promotion
scttbnsn Oct 26, 2026
9d54f49
chore(deps): update non-major (github-actions) (#53)
renovate[bot] Oct 26, 2026
5d28948
chore(sync): reconcile main before promotion
scttbnsn Oct 26, 2026
4d3b129
chore(deps): update dependency ubuntu to v26 (#55)
renovate[bot] Oct 26, 2026
7a6fcc5
chore(sync): reconcile main before promotion
scttbnsn Oct 26, 2026
5d1b581
fix(ci): update harden-runner for hosted runner DNS fix (#57)
scttbnsn Oct 31, 2026
5814a72
chore(sync): reconcile main before promotion
scttbnsn Oct 31, 2026
96a6074
docs(profile): add CodesWhat brand line and site link (#58)
scttbnsn Oct 31, 2026
605e352
chore(sync): reconcile main before profile promotion
scttbnsn Oct 31, 2026
eaa21cc
chore(deps): update non-major (github-actions) (#61)
renovate[bot] Nov 17, 2026
22b874d
chore(sync): reconcile main before promotion
scttbnsn Nov 17, 2026
0df1d2e
fix(quality-report): harden aggregation and wire-check contract tests…
scttbnsn Nov 18, 2026
b6f91ce
chore(sync): reconcile main before promotion
scttbnsn Nov 18, 2026
355fbd1
fix(ci): namespace artifact names and page release-gate runs (#65)
scttbnsn Nov 18, 2026
d4b9059
chore(sync): reconcile main before promotion
scttbnsn Nov 18, 2026
e70acea
chore(deps): update dependency node to v26 (#67)
renovate[bot] Nov 21, 2026
4893d88
chore(sync): reconcile main before promotion
scttbnsn Nov 21, 2026
9890471
feat(actions): add shared changes-gate composite action (#70)
scttbnsn Nov 22, 2026
8d7814b
feat(ci): default node-ci to Node 26 (#69)
scttbnsn Nov 22, 2026
4d1c911
chore(sync): reconcile main before promotion
scttbnsn Nov 22, 2026
27ffcbe
feat(actions): add tree-receipt verify and record actions (#73)
scttbnsn Nov 23, 2026
f9729f5
fix(changes-gate): fail open on gate failure, harden matching and fet…
scttbnsn Nov 24, 2026
84880e6
fix(tree-receipt): bind receipts to verified push-run evidence (#75)
scttbnsn Nov 24, 2026
56c0468
chore(sync): reconcile main before promotion
scttbnsn Nov 24, 2026
fbeed2e
chore(quality): add local qlty config and pre-push check (#77)
scttbnsn Nov 24, 2026
ced8418
chore(sync): reconcile main before promotion
scttbnsn Nov 24, 2026
5a77e4e
chore(deps): update non-major (github-actions) (#72)
renovate[bot] Nov 24, 2026
8dae5cd
chore(sync): reconcile main before promotion
scttbnsn Nov 24, 2026
bf97f1a
fix: land the 2026-11-26 audit fixes (#80)
scttbnsn Nov 26, 2026
7d59554
chore(sync): reconcile main before promotion
scttbnsn Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/tests/commit_msg_hook_contract_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
from pathlib import Path
import subprocess
import tempfile
import unittest


ROOT = Path(__file__).resolve().parents[2]
HOOK = ROOT / "scripts" / "check-commit-msg.sh"

ACCEPTED = [
"feat(scope): x",
"fix!: x",
"revert: x",
"chore(deps/a.b-c): x",
"Merge branch 'x'",
"Merge pull request #1 from a/b",
"Merge remote-tracking branch 'o/x'",
"fixup! feat: x",
"squash! feat: x",
'Revert "feat: x"',
]

REJECTED = [
"feat: ",
"Feat: x",
"wip: x",
"feat(Bad Scope): x",
"feat x",
"feat:x",
]


def run_hook(message):
with tempfile.TemporaryDirectory() as directory:
path = Path(directory) / "COMMIT_EDITMSG"
path.write_text(message, encoding="utf-8")
return subprocess.run(
["bash", str(HOOK), str(path)], capture_output=True, text=True
)


class CommitMsgHookContractTest(unittest.TestCase):
def test_accepts_valid_subjects(self):
for subject in ACCEPTED:
with self.subTest(subject=subject):
result = run_hook(subject + "\n")
self.assertEqual(0, result.returncode, result.stderr)

def test_rejects_invalid_subjects(self):
for subject in REJECTED:
with self.subTest(subject=subject):
result = run_hook(subject + "\n")
self.assertEqual(1, result.returncode)
self.assertIn(subject, result.stderr)
self.assertIn("plain Conventional Commits", result.stderr)

def test_only_first_line_is_checked(self):
result = run_hook("feat: x\n\nthis body is not a conventional subject\nwip: junk\n")
self.assertEqual(0, result.returncode, result.stderr)


if __name__ == "__main__":
unittest.main()
18 changes: 18 additions & 0 deletions .github/tests/community_health_contract_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,24 @@ def test_zizmor_action_owns_its_supported_cli_version(self):

self.assertNotIn("\n version:", zizmor_step)

def test_actionlint_download_retries_and_is_bounded(self):
workflow = self.read_text(".github/workflows/standards-validation.yml")
curl_line = next(
line for line in workflow.splitlines()
if "curl" in line and "actionlint_1.7.12" in line
)

for flag in (
"--proto =https",
"--tlsv1.2",
"--retry 3",
"--retry-all-errors",
"--connect-timeout 10",
"--max-time 120",
):
self.assertIn(flag, curl_line)
self.assertIn("sha256", workflow)

def test_linter_configs_do_not_suppress_workflow_findings(self):
markdown_config = self.read_text(".github/markdownlint-profile.yaml")

Expand Down
97 changes: 97 additions & 0 deletions .github/tests/greptile_summon_contract_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from pathlib import Path
import json
import os
import re
import shutil
import subprocess
import tempfile
import textwrap
import unittest


Expand Down Expand Up @@ -83,6 +89,97 @@ def test_workflow_pins_actions_and_is_run_by_standards_validation(self):
).read_text()
self.assertIn("greptile_summon_contract_test.py", validation)

def test_summon_script_behavior(self):
node = shutil.which("node")
if node is None:
self.skipTest("node is not available")

sha = "a" * 40
other = "b" * 40
marker = f"<!-- greptile-summon:{sha} -->"

def pull(head, state="open"):
return {"data": {"state": state, "head": {"sha": head}}}

bot_comment = {"user": {"login": "github-actions[bot]"}, "body": marker}
cases = (
("abc", [], [], 1, 0, 0),
("1x", [], [], 1, 0, 0),
("7", [pull(sha, "closed")], [], 1, 0, 0),
("7", [pull(other)], [], 1, 0, 0),
("7", [pull(sha)], [bot_comment], 0, 0, 1),
("7", [pull(sha), pull(other)], [], 1, 0, 0),
("7", [pull(sha), pull(sha)], [], 0, 1, 0),
)

body = self.script_body(self.read_workflow())
harness = textwrap.dedent(
"""\
const body = %s;
const AsyncFunction = Object.getPrototypeOf(async function () {}).constructor;
const run = new AsyncFunction("github", "core", "context", "process", body);
const scenario = JSON.parse(process.argv[2]);
const calls = { setFailed: [], notice: [], createComment: [] };
const queue = [...scenario.pulls];
const listComments = () => {};
const github = {
rest: {
pulls: { get: async () => queue.shift() },
issues: {
listComments,
createComment: async (args) => { calls.createComment.push(args); },
},
},
paginate: async () => scenario.comments,
};
const core = {
setFailed: (m) => calls.setFailed.push(m),
notice: (m) => calls.notice.push(m),
};
const context = { repo: { owner: "o", repo: "r" } };
run(github, core, context, process).then(
() => console.log(JSON.stringify(calls)),
(e) => { console.error(e); process.exit(1); },
);
"""
) % json.dumps(body)

with tempfile.TemporaryDirectory() as tmp:
harness_path = Path(tmp) / "harness.js"
harness_path.write_text(harness)
for pr_number, pulls, comments, failed, created, notices in cases:
with self.subTest(pr_number=pr_number, pulls=pulls):
env = {
**os.environ,
"PR_NUMBER": pr_number,
"HEAD_SHA": sha,
"REVIEW_FOCUS": "check the diff",
}
result = subprocess.run(
[node, str(harness_path), json.dumps({"pulls": pulls, "comments": comments})],
check=True,
capture_output=True,
text=True,
env=env,
)
calls = json.loads(result.stdout)
self.assertEqual(len(calls["setFailed"]), failed, calls)
self.assertEqual(len(calls["createComment"]), created, calls)
self.assertEqual(len(calls["notice"]), notices, calls)
if created:
comment_body = calls["createComment"][0]["body"]
self.assertIn("@greptileai", comment_body)
self.assertIn(marker, comment_body)

def script_body(self, workflow):
lines = workflow.split(" script: |\n", 1)[1].splitlines()
body = []
for line in lines:
if line.strip() and not line.startswith(" " * 12):
break
body.append(line[12:])
return "\n".join(body)

def read_workflow(self):
self.assertTrue(WORKFLOW.is_file(), f"missing workflow: {WORKFLOW}")
return WORKFLOW.read_text()
Expand Down
Loading
Loading