Skip to content

Commit 6b136ce

Browse files
authored
[workflows] issue-write: Exit early if there are no comments (#87114)
This will eliminate some unnecessary REST API calls.
1 parent 70e189f commit 6b136ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/issue-write.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
script: |
3232
var fs = require('fs');
3333
const comments = JSON.parse(fs.readFileSync('./comments'));
34-
if (!comments) {
34+
if (!comments || comments.length == 0) {
3535
return;
3636
}
3737

0 commit comments

Comments
 (0)