You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content-script/site-adapters/github/index.mjs
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,16 @@ function createChatGPtSummaryPrompt(issueData, isIssue = true) {
89
89
90
90
if(isIssue){
91
91
prompt=
92
-
'Please summarize the following GitHub issue thread.\nWhat is the main issue and key points discussed in this thread?\n\n'
92
+
`You are an expert in analyzing GitHub discussions. `+
93
+
`Please provide a concise summary of the following GitHub issue thread. `+
94
+
`Identify the main problem reported, key points discussed by participants, proposed solutions (if any), and the current status or next steps. `+
95
+
`Present the summary in a structured markdown format.\n\n`
93
96
}else{
94
97
prompt=
95
-
'Please summarize the following GitHub pull request thread.\nWhat is the main issue this pull request is trying to solve?\n\n'
98
+
`You are an expert in analyzing GitHub discussions and code reviews. `+
99
+
`Please provide a concise summary of the following GitHub pull request thread. `+
100
+
`Identify the main problem this pull request aims to solve, the proposed changes, key discussion points from the review, and the overall status of the PR (e.g., approved, needs changes, merged). `+
101
+
`Present the summary in a structured markdown format.\n\n`
96
102
}
97
103
98
104
prompt+='---\n\n'
@@ -153,8 +159,12 @@ export default {
153
159
if(!patchData)return
154
160
155
161
returnawaitcropText(
156
-
`Analyze the contents of a git commit,provide a suitable commit message,and summarize the contents of the commit.`+
157
-
`The patch contents of this commit are as follows:\n${patchData}`,
162
+
`You are an expert in analyzing git commits and crafting clear, concise commit messages. `+
163
+
`Based on the following git patch, please perform two tasks:\n`+
164
+
`1. Generate a suitable commit message. It should follow standard conventions: a short imperative subject line (max 50 chars), `+
165
+
`followed by a blank line and a more detailed body if necessary, explaining the "what" and "why" of the changes.\n`+
166
+
`2. Provide a brief summary of the changes introduced in this commit, highlighting the main purpose and impact.\n\n`+
167
+
`The patch contents are as follows:\n${patchData}`,
`You are an expert content analyst and summarizer. `+
25
+
`Please analyze the following Juejin article and its comments. Provide a summary of the article (including author), your opinion on it, and a summary of the comments.\n`+
`You are an expert article analyst and summarizer. `+
24
+
`Please analyze the following WeChat Official Account article. Provide the source, a summary of the article, its main conclusions, and your opinion on it.\n`+
0 commit comments