Skip to content

Commit 1a8b692

Browse files
author
remote-swe-app[bot]
committed
Fix formatting in GitHub PR comments tool
1 parent 11ff301 commit 1a8b692

File tree

1 file changed

+11
-7
lines changed
  • worker/src/agent/tools/github-pr-comments

1 file changed

+11
-7
lines changed

worker/src/agent/tools/github-pr-comments/index.ts

+11-7
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,14 @@ if (require.main === module) {
101101
const printUsage = () => {
102102
console.log('Usage:');
103103
console.log(' npx tsx worker/src/agent/tools/github-pr-comments/index.ts get <owner> <repo> <pullRequestId>');
104-
console.log(' npx tsx worker/src/agent/tools/github-pr-comments/index.ts reply <owner> <repo> <pullRequestId> <commentId> <body>');
104+
console.log(
105+
' npx tsx worker/src/agent/tools/github-pr-comments/index.ts reply <owner> <repo> <pullRequestId> <commentId> <body>'
106+
);
105107
console.log('\nExamples:');
106108
console.log(' npx tsx worker/src/agent/tools/github-pr-comments/index.ts get aws-samples remote-swe-agents 32');
107-
console.log(' npx tsx worker/src/agent/tools/github-pr-comments/index.ts reply aws-samples remote-swe-agents 32 1234567890 "Thanks for the feedback!"');
109+
console.log(
110+
' npx tsx worker/src/agent/tools/github-pr-comments/index.ts reply aws-samples remote-swe-agents 32 1234567890 "Thanks for the feedback!"'
111+
);
108112
};
109113

110114
const runTest = async () => {
@@ -119,7 +123,7 @@ if (require.main === module) {
119123

120124
const [owner, repo, pullRequestId] = args.slice(1);
121125
console.log(`Getting comments for PR #${pullRequestId} in ${owner}/${repo}...`);
122-
126+
123127
const getResult = await getPRCommentsHandler({ owner, repo, pullRequestId });
124128
console.log('Result:');
125129
console.log(getResult);
@@ -134,18 +138,18 @@ if (require.main === module) {
134138

135139
const [replyOwner, replyRepo, replyPullRequestId, commentId, ...bodyParts] = args.slice(1);
136140
const body = bodyParts.join(' ');
137-
141+
138142
console.log(`Replying to comment ${commentId} in PR #${replyPullRequestId} of ${replyOwner}/${replyRepo}...`);
139143
console.log(`Message: "${body}"`);
140-
144+
141145
const replyResult = await replyPRCommentHandler({
142146
owner: replyOwner,
143147
repo: replyRepo,
144148
pullRequestId: replyPullRequestId,
145149
commentId,
146-
body
150+
body,
147151
});
148-
152+
149153
console.log('Result:');
150154
console.log(replyResult);
151155
break;

0 commit comments

Comments
 (0)