This repository was archived by the owner on Mar 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
- # OpenAI GPT based PR reviewer and summarizer
1
+ # OpenAI ChatGPT based PR reviewer and summarizer
2
2
3
3
![ AI] ( ./docs/images/ai.png )
4
4
5
5
## Overview
6
6
7
- This [ OpenAI Chat ] ( https://platform.openai.com/docs/guides/chat ) based GitHub
7
+ This [ OpenAI ChatGPT ] ( https://platform.openai.com/docs/guides/chat ) based GitHub
8
8
Action provides a summary, release notes and review of pull requests. The
9
9
prompts have been tuned for a concise response. To prevent excessive
10
10
notifications, this action can be configured to skip adding review comments when
@@ -68,11 +68,12 @@ See also: [./action.yml](./action.yml)
68
68
69
69
You can reply to a review comment made by this action and get a response based
70
70
on the diff context. Additionally, you can invite the bot to a conversation by
71
- mentioning it in the beginning of the comment with ` @openai`.
71
+ tagging it in the comment ( ` @openai`) .
72
72
73
- Example :
73
+ Examples :
74
74
75
75
> @openai Can you please review this block of code?
76
+ > @openai Please generate a test plan for this file.
76
77
77
78
Note : A review comment is a comment made on a diff or a file in the pull
78
79
request.
Original file line number Diff line number Diff line change 1
- name : ' OpenAI- based PR Reviewer & Summarizer'
2
- description : ' OpenAI- based PR Reviewer and Summarizer'
1
+ name : ' OpenAI ChatGPT based PR Reviewer & Summarizer'
2
+ description : ' OpenAI ChatGPT based PR Reviewer and Summarizer'
3
3
branding :
4
4
icon : ' aperture'
5
5
color : ' orange'
@@ -63,15 +63,15 @@ inputs:
63
63
openai_retries :
64
64
required : false
65
65
description :
66
- ' How many times to retry openai API in case of timeouts or errors?'
66
+ ' How many times to retry OpenAI API in case of timeouts or errors?'
67
67
default : ' 5'
68
68
openai_timeout_ms :
69
69
required : false
70
- description : ' Timeout for openai API call in millis'
71
- default : ' 60000 '
70
+ description : ' Timeout for OpenAI API call in millis'
71
+ default : ' 120000 '
72
72
openai_concurrency_limit :
73
73
required : false
74
- description : ' How many concurrent API calls to make to openai servers?'
74
+ description : ' How many concurrent API calls to make to OpenAI servers?'
75
75
default : ' 4'
76
76
system_message :
77
77
required : false
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export const handleReviewComment = async (
79
79
if (
80
80
comment_chain . includes ( COMMENT_TAG ) ||
81
81
comment_chain . includes ( COMMENT_REPLY_TAG ) ||
82
- comment . body . startsWith ( ASK_BOT )
82
+ comment . body . includes ( ASK_BOT )
83
83
) {
84
84
let file_content = ''
85
85
try {
You can’t perform that action at this time.
0 commit comments