fix: 修正 generate API 的 JSON 字段名(base/head 而非 base_ref/head_ref)
This commit is contained in:
@@ -156,8 +156,8 @@
|
|||||||
const fields = { title: '', type: '', summary: '', details: '', impact: '' };
|
const fields = { title: '', type: '', summary: '', details: '', impact: '' };
|
||||||
|
|
||||||
SSE.post(`/api/repos/${repoId}/generate`, {
|
SSE.post(`/api/repos/${repoId}/generate`, {
|
||||||
base_ref: baseRef,
|
base: baseRef,
|
||||||
head_ref: headRef,
|
head: headRef,
|
||||||
}, {
|
}, {
|
||||||
title(data) {
|
title(data) {
|
||||||
fields.title += data.content || '';
|
fields.title += data.content || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user