We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
message
1 parent bc14ce3 commit e06e959Copy full SHA for e06e959
1 file changed
src/main.ts
@@ -93,12 +93,14 @@ async function run() {
93
comment_id: number;
94
body: string;
95
}) {
96
- const { data: comment } = await octokit.rest.issues.updateComment({
97
- owner,
98
- repo,
99
- comment_id,
100
- body,
101
- });
+ if (body) {
+ const { data: comment } = await octokit.rest.issues.updateComment({
+ owner,
+ repo,
+ comment_id,
+ body,
102
+ });
103
+ }
104
105
core.setOutput('id', comment.id);
106
core.setOutput('body', comment.body);
0 commit comments