aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2024-04-01 14:35:39 -0700
committerGitHub <noreply@github.com>2024-04-01 14:35:39 -0700
commit6b136ce738d1acc96d926d7999419867dea16961 (patch)
tree84268b67e9c0673aa9d1eaeb89792786f3afda8e
parent70e189fbc96909d3841dd2bca4a2909345cd826f (diff)
downloadllvm-6b136ce738d1acc96d926d7999419867dea16961.zip
llvm-6b136ce738d1acc96d926d7999419867dea16961.tar.gz
llvm-6b136ce738d1acc96d926d7999419867dea16961.tar.bz2
[workflows] issue-write: Exit early if there are no comments (#87114)
This will eliminate some unnecessary REST API calls.
-rw-r--r--.github/workflows/issue-write.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/issue-write.yml b/.github/workflows/issue-write.yml
index 02a5f7c..f5b84fe 100644
--- a/.github/workflows/issue-write.yml
+++ b/.github/workflows/issue-write.yml
@@ -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;
}