GET管理接口
预览仓库中的反馈 Issue 模板
按项目已保存的 `feedback_issue_template_repo_path` 拉取目标仓库里的模板文件并解析。 文件可带 `---` front matter 声明 `title` 与 `labels`,其余内容作为正文; 没有 front matter 时整个文件即正文,标题退回内置模板。 需要 GitHub App 的 Repository permissions → Contents: Read-only 权限。 拉取失败不会返回 4xx/5xx,而是把原因放在 `error` 字段里返回 200。
URL
/api/v1/admin/projects/{projectKey}/github-integration/repo-template鉴权方式
需要管理员 JWT 或 API Key,二者等价(Authorization: Bearer <token>)
请求参数
Path 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| projectKey | string | 是 | 项目主键 project_key(大小写不敏感) |
Query 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| refresh | true | 1 | 否 | 传入后先作废服务端缓存再重新拉取 |
Header 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Authorization | string | 是 | Bearer <管理员 JWT 或 API Key> |
该接口无需请求体。
响应示例
200 响应
{
"path": ".github/verhub-feedback-issue.md",
"ref": "main",
"fetched_at": 1760000000,
"title_template": "[用户反馈] {{content_head}}",
"body_template": "## 反馈内容\n\n{{content}}\n",
"labels": [
"feedback"
],
"error": null
}GET
