We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5772f22 commit 64ee88cCopy full SHA for 64ee88c
.github/workflows/run-clang-format.yml
@@ -23,14 +23,26 @@ jobs:
23
script: |
24
let commentId = -1
25
26
- const response = await github.paginate(
+ for await (const { data : comments } of await github.paginate.iterator(
27
github.rest.issues.listComments, {
28
owner: context.repo.owner,
29
repo: context.repo.repo,
30
issue_number: context.issue.number
31
- },
32
- (response) => response.data
33
- )
+ }
+ )) {
+ const foundComment = comments.find((comment) =>
34
+ comment.body.startsWith(
35
+ '`clang-format` output for this changeset:'
36
+ )
37
38
+
39
+ if (foundComment) {
40
+ commentId = foundComment.id
41
+ break
42
43
44
45
46
console.log(response)
47
48
console.log(commentId)
0 commit comments