Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Filter out comments made by gh app when creating prompt from pr

Tomas Valentaddd25ef943e4
diff --git a/github/pullRequest.ts b/github/pullRequest.ts
index 33d161d6e..c1c1b7729 100644
--- a/github/pullRequest.ts
+++ b/github/pullRequest.ts
@@ -137,7 +137,7 @@ export async function getPromptFromPR({
const prBody = issueResult?.data.body || body
const comments = commentsResult.data
- .filter(c => !c.performed_via_github_app)
+ .filter(c => c.user?.type !== 'Bot')
.map(c => c.body)
.join('\n')
@@ -211,7 +211,7 @@ export async function triggerSmolDevAgentRun({
prompt: string,
accessToken: string,
}) {
- console.log('Triggering smol dev agent run:', prompt)
+ console.log('Triggering smol dev agent run:', { owner, repo, pullNumber, prompt })
await addCommentToPR({
body: 'Started smol dev agent run',