Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit ec3058f

Browse files
authored
async execution (#53)
<!-- This is an auto-generated comment: release notes by openai --> ### Summary by OpenAI **Release Notes** This pull request includes two changes to improve the functionality and efficiency of the software. - New Feature: Added `clone()` method to clone Inputs object in `src/options.ts`. - Refactor: Retrieve file contents and diff for review, and filter out null results. Use Promise.all to run file review processes in parallel in `src/review.ts`. These changes should enhance the user experience by improving the performance of the software. <!-- end of auto-generated comment: release notes by openai -->
1 parent ea338f0 commit ec3058f

File tree

3 files changed

+214
-160
lines changed

3 files changed

+214
-160
lines changed

dist/index.js

Lines changed: 40 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/options.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,22 @@ export class Inputs {
134134
this.comment = comment
135135
}
136136

137+
clone(): Inputs {
138+
return new Inputs(
139+
this.system_message,
140+
this.title,
141+
this.description,
142+
this.summary,
143+
this.filename,
144+
this.file_content,
145+
this.file_diff,
146+
this.patch,
147+
this.diff,
148+
this.comment_chain,
149+
this.comment
150+
)
151+
}
152+
137153
render(content: string): string {
138154
if (!content) {
139155
return ''

0 commit comments

Comments
 (0)