ci: refresh open task evidence when the accepted root moves
ci/woodpecker/pr/eco Pipeline was successful
ci/woodpecker/push/eco Pipeline was successful
ci/woodpecker/manual/reconcile Pipeline failed
ci/woodpecker/cron/reconcile Pipeline is pending

This commit was merged in pull request #41.
This commit is contained in:
cflmy committed 2026-11-27 22:06:24 +08:00
1 parent 6e4a7d5c10
commit a93cb0e921
2 files changed
+13 -2

No files matched your search

+3 -1
View File
@@ -396,7 +396,9 @@ def register_consumer_tasks(client, root_sha, entry, issue_cache):
if issue["state"] == "open":
comments = tracking_comments(client, issues_url, issue)
key_line = f"<!-- marqdo:candidate-inputs {task['key']} -->"
if not any(key_line in note.splitlines() for note in [issue["body"], *comments]):
baselines = [note.splitlines() for note in [issue["body"], *comments]
if note.splitlines()[:1] == [marker]]
if not {key_line, f"- Root candidate: {root_sha}"} <= set(baselines[-1]):
verify_root_base(client, root_sha)
client.post(f"{issues_url}/{issue['number']}/comments", {"body": body})
else: