Skip to content
This repository was archived by the owner on May 26, 2026. It is now read-only.

Commit db7d392

Browse files
marek-sajiclaude
andcommitted
fixup! feat: Improve nag comment when no Jira issue linked
Resolves: #19 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6dbbfa1 commit db7d392

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42895,12 +42895,12 @@ function extractResolvedIssueKeys(prBody, comments) {
4289542895
async function getPullRequestComments() {
4289642896
console.log('Requesting pull request comments')
4289742897

42898-
const response = await octokit.rest.issues.listComments({
42898+
return octokit.paginate(octokit.rest.issues.listComments, {
4289942899
owner: repoOwner,
4290042900
repo: payload.repository.name,
4290142901
issue_number: issueNumber,
42902+
per_page: 100,
4290242903
})
42903-
return response.data
4290442904
}
4290542905

4290642906
async function nagToLinkJiraIssue(comments) {

index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ function extractResolvedIssueKeys(prBody, comments) {
181181
async function getPullRequestComments() {
182182
console.log('Requesting pull request comments')
183183

184-
const response = await octokit.rest.issues.listComments({
184+
return octokit.paginate(octokit.rest.issues.listComments, {
185185
owner: repoOwner,
186186
repo: payload.repository.name,
187187
issue_number: issueNumber,
188+
per_page: 100,
188189
})
189-
return response.data
190190
}
191191

192192
async function nagToLinkJiraIssue(comments) {

0 commit comments

Comments
 (0)