[llvm] [workflows] issue-write: Exit early if there are no comments (PR #87114)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 29 14:53:12 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Tom Stellard (tstellar)
<details>
<summary>Changes</summary>
This will eliminate some unnecessary REST API calls.
---
Full diff: https://github.com/llvm/llvm-project/pull/87114.diff
1 Files Affected:
- (modified) .github/workflows/issue-write.yml (+1-1)
``````````diff
diff --git a/.github/workflows/issue-write.yml b/.github/workflows/issue-write.yml
index 02a5f7c213e898..f5b84fec17a792 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;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/87114
More information about the llvm-commits
mailing list