[READ-ONLY] Mirror of https://github.com/danielroe/carpenter. LLM-powered automations for triaging Nuxt issues github.com/nuxt/nuxt
bot cloudflare-pages llm webhook
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: never reopen issue based on comment from collaborator (#184)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danielroe <28706372+danielroe@users.noreply.github.com>

author
Copilot
co-author
copilot-swe-agent[bot]
co-author
danielroe
committer
GitHub
date (Jun 14, 2025, 12:23 AM +0100) commit 1a2a2e23 parent c6f83a7f
+24 -21
+1
.gitignore
··· 8 8 9 9 # Node dependencies 10 10 node_modules 11 + package-lock.json 11 12 12 13 # Logs 13 14 logs
+23 -21
server/api/webhook.post.ts
··· 49 49 return 50 50 } 51 51 52 + // Early return if collaborator - they can manually reopen issues if needed 53 + if (isCollaboratorOrHigher(comment.author_association)) { 54 + return 55 + } 56 + 52 57 if ('pull_request' in issue) { 53 58 return 54 59 } ··· 103 108 } 104 109 // 2. if a resolved issue reappears 105 110 else if (issue.state === 'closed' && analysisResult.possibleRegression) { 106 - // Collaborators and above can explicitly reopen if needed 107 - if (!isCollaboratorOrHigher(comment.author_association)) { 108 - // then reopen the issue 109 - promises.push( 110 - github.issues.update({ 111 - owner: repository.owner.login, 112 - repo: repository.name, 113 - issue_number: issue.number, 114 - state: 'open', 115 - }), 116 - ) 111 + // then reopen the issue 112 + promises.push( 113 + github.issues.update({ 114 + owner: repository.owner.login, 115 + repo: repository.name, 116 + issue_number: issue.number, 117 + state: 'open', 118 + }), 119 + ) 117 120 118 - // ... and add 'pending triage' and 'possible regression' labels 119 - promises.push( 120 - github.issues.addLabels({ 121 - owner: repository.owner.login, 122 - repo: repository.name, 123 - issue_number: issue.number, 124 - labels: [IssueLabel.PendingTriage, IssueLabel.PossibleRegression], 125 - }), 126 - ) 127 - } 121 + // ... and add 'pending triage' and 'possible regression' labels 122 + promises.push( 123 + github.issues.addLabels({ 124 + owner: repository.owner.login, 125 + repo: repository.name, 126 + issue_number: issue.number, 127 + labels: [IssueLabel.PendingTriage, IssueLabel.PossibleRegression], 128 + }), 129 + ) 128 130 } 129 131 130 132 event.waitUntil(Promise.all(promises))