mirror of
https://github.com/ingress-it-solutions/gitea-code-review-action.git
synced 2025-04-19 18:56:45 +00:00
Added Joke and summary in bullet point
This commit is contained in:
parent
2d91f8d6ba
commit
9f57ed91c6
4 changed files with 3 additions and 8 deletions
|
@ -54,11 +54,6 @@ ${code}
|
||||||
|
|
||||||
${answer}
|
${answer}
|
||||||
|
|
||||||
|
|
||||||
### Funny Joke about this PR:
|
|
||||||
|
|
||||||
${joke}'
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node16'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
|
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -39362,7 +39362,7 @@ async function run() {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
const answer = response.data.choices[0].message.content + '/n/n/n' + responseJoke.data.choices[0].message.content;
|
const answer = response.data.choices[0].message.content + '/n/n' + '### Funny Joke about this PR:' +'/n/n' + responseJoke.data.choices[0].message.content;
|
||||||
core.debug(`openai response: ${answer}`);
|
core.debug(`openai response: ${answer}`);
|
||||||
|
|
||||||
if(sourceAt === 'github') {
|
if(sourceAt === 'github') {
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
2
index.js
2
index.js
|
@ -176,7 +176,7 @@ async function run() {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
const answer = response.data.choices[0].message.content + '/n/n/n' + responseJoke.data.choices[0].message.content;
|
const answer = response.data.choices[0].message.content + '/n/n' + '### Funny Joke about this PR:' +'/n/n' + responseJoke.data.choices[0].message.content;
|
||||||
core.debug(`openai response: ${answer}`);
|
core.debug(`openai response: ${answer}`);
|
||||||
|
|
||||||
if(sourceAt === 'github') {
|
if(sourceAt === 'github') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue