Skip to content

Commit

Permalink
[workflows] issue-write: Exit early if there are no comments (llvm#87114
Browse files Browse the repository at this point in the history
)

This will eliminate some unnecessary REST API calls.
  • Loading branch information
tstellar authored Apr 1, 2024
1 parent 70e189f commit 6b136ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/issue-write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
script: |
var fs = require('fs');
const comments = JSON.parse(fs.readFileSync('./comments'));
if (!comments) {
if (!comments || comments.length == 0) {
return;
}
Expand Down

0 comments on commit 6b136ce

Please sign in to comment.