Skip to content

Commit 52c775e

Browse files
committed
Merge PR ceph#56936 into main
* refs/pull/56936/head: script/ptl-tool: add comment to PRs under QA Reviewed-by: Yuri Weinstein <[email protected]>
2 parents ba808c9 + b25012f commit 52c775e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/script/ptl-tool.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,14 @@ def build_branch(args):
494494
issue = R.issue.create(**issue_kwargs)
495495
log.info("created redmine qa issue: %s", issue.url)
496496

497+
498+
for pr in prs:
499+
log.debug(f"Posting QA Run in comment for ={pr}")
500+
endpoint = f"https://api.github.com/repos/{BASE_PROJECT}/{BASE_REPO}/issues/{pr}/comments"
501+
body = f"This PR is under test in [{issue.url}]({issue.url})."
502+
r = session.post(endpoint, auth=gitauth(), data=json.dumps({'body':body}))
503+
log.debug(f"= {r}")
504+
497505
def main():
498506
parser = argparse.ArgumentParser(description="Ceph PTL tool")
499507
default_base = 'main'

0 commit comments

Comments
 (0)