Skip to content

Commit 459a669

Browse files
committed
feat: output pr_comments to github action
1 parent 1a0695b commit 459a669

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ def add_pr_comments() -> int:
168168
print(f"Creating a new comment on PR #{pr_number}.")
169169
pull_request.create_comment(body=pr_comments)
170170

171+
# output pr_comments to GitHub Actions
172+
print(f"::set-output name=pr_comments::{pr_comments}")
173+
171174
return 0 if result_text is None else 1
172175
except Exception as e:
173176
print(f"Error posting PR comment: {e}", file=sys.stderr)

0 commit comments

Comments
 (0)