Skip to content

Commit aa184e3

Browse files
author
h1alexbel
committed
feat(#36): ai-generated
1 parent e2d9b78 commit aa184e3

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

src/feedback.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,15 @@ export class Feedback {
3939
* @param github GitHub
4040
* @param issue Issue
4141
* @param username Username
42+
* @param model LLM Model
4243
*/
4344
constructor(
4445
private readonly summary: string | undefined,
4546
private readonly github: Octokit,
4647
private readonly issue: Issue,
47-
private readonly username: string | undefined
48+
private readonly username: string | undefined,
49+
private readonly model: string
4850
) {
49-
this.summary = summary;
50-
this.github = github;
51-
this.issue = issue;
52-
this.username = username;
5351
}
5452

5553
async post() {
@@ -74,7 +72,8 @@ export class Feedback {
7472
this.username,
7573
"thanks for the report, but here some unclear moments:",
7674
),
77-
this.summary
75+
this.summary,
76+
this.model
7877
).value()
7978
).post();
8079
core.setFailed(

src/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ async function run() {
101101
),
102102
octokit,
103103
issue,
104-
smart.user?.login
104+
smart.user?.login,
105+
model
105106
).post();
106107
} else if (core.getInput("deepinfra_token")) {
107108
const deepinfra = core.getInput("deepinfra_token");
@@ -114,7 +115,8 @@ async function run() {
114115
answer,
115116
octokit,
116117
issue,
117-
smart.user?.login
118+
smart.user?.login,
119+
model
118120
).post();
119121
} else {
120122
core.setFailed(

src/with-summary.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ export class WithSummary {
3232
* Ctor.
3333
* @param origin Origin
3434
* @param summary Summary
35+
* @param model LLM Model
3536
*/
3637
constructor(
3738
private readonly origin: Covered,
38-
private readonly summary: string | undefined
39+
private readonly summary: string | undefined,
40+
private readonly model: string
3941
) {
40-
this.origin = origin;
41-
this.summary = summary;
4242
}
4343

4444
/**
@@ -48,6 +48,8 @@ export class WithSummary {
4848
return this.origin.value() +
4949
`
5050
${this.summary}
51+
52+
Generated with ${this.model}
5153
`;
5254
}
5355
}

0 commit comments

Comments
 (0)