ci: refresh open task evidence when the accepted root moves
This commit was merged in pull request #41.
This commit is contained in:
1 parent
6e4a7d5c10
commit
a93cb0e921
2 files changed
+13
-2
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user