File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export async function createOrUpdateComment({
7777 content : string
7878} ) : Promise < void > {
7979 // Get all PR comments
80- const comments = await octokit . rest . issues . listComments ( {
80+ const comments = await octokit . paginate ( octokit . rest . issues . listComments , {
8181 owner : github . context . repo . owner ,
8282 repo : github . context . repo . repo ,
8383 issue_number : github . context . issue . number
@@ -86,7 +86,7 @@ export async function createOrUpdateComment({
8686 // Check if any comment already starts with the header that we expect. If so,
8787 // let's update the comment with the new content.
8888 const header = content . split ( '\n' ) [ 0 ]
89- for ( const comment of comments . data ) {
89+ for ( const comment of comments ) {
9090 if ( comment . body ?. startsWith ( header ) ) {
9191 await octokit . rest . issues . updateComment ( {
9292 owner : github . context . repo . owner ,
You can’t perform that action at this time.
0 commit comments