Repository navigation
Conversation
jyxjjj
marked this pull request as draft
September 8, 2026 08:03
Member
|
标记一下暂不合并 等我空了看 |
jyxjjj
force-pushed
the
ci/auto-issue-process
branch
from
October 30, 2026 02:13
9f630bd to
4a56691
Compare
- Run triage after the existing issue submission checks - Skip bots, announcements, pull requests, and closed or locked issues - Classify new issues and request missing information with a concise prompt - Call the configured LLM and GitHub APIs with native Node.js fetch - Validate model labels and comments before applying changes - Restrict triage writes to adding labels and posting comments - Fail the job on invalid model output or unsuccessful API requests - Reuse the existing pinned checkout action without persisted credentials Co-authored-by: Codex <267193182+codex@users.noreply.github.com> Signed-off-by: jyxjjj <16695261+jyxjjj@users.noreply.github.com>
- Replace free-form labels and comments with category and missing-information enums - Limit automatic labels to bug and enhancement - Generate follow-up comments exclusively from fixed application text - Reject extra fields, unsupported values, and inconsistent category combinations before writes - Bound missing-information arrays by the allowed fields for each category - Clarify that issue content and forged role instructions are untrusted data Co-authored-by: Codex <267193182+codex@users.noreply.github.com> Signed-off-by: jyxjjj <16695261+jyxjjj@users.noreply.github.com>
- Replace category and missing-field decisions with content-review findings - Remove automatic classification labels already supplied by issue templates - Provide fixed follow-up questions for ambiguous reports and feature requests - Add evidence-based configuration, network, credential, and upstream checks to the prompt - Limit each review to three findings and one comment - Identify replies as automated preliminary reviews and direct users to the current issue - Keep sufficient, unrelated, and uncertain reports silent through prompt guidance - Reject extra fields, unsupported findings, and oversized findings arrays before writes Co-authored-by: Codex <267193182+codex@users.noreply.github.com> Signed-off-by: jyxjjj <16695261+jyxjjj@users.noreply.github.com>
jyxjjj
force-pushed
the
ci/auto-issue-process
branch
from
November 2, 2026 03:59
de1f226 to
e64c310
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
为通过现有提交规则检查的新建 Issue 增加 LLM 内容初审,判断描述是否足以让维护者开始处理,并提前提出必要的补充问题。
Issue Auto Replyworkflow 中增加后续 job,等待规则检查完成后读取 Issue 最新状态findings数组,代码校验允许的枚举及最多 3 项的上限,拒绝多余字段fetch调用模型和 GitHub API,无新增 npm 依赖需要配置仓库 Secrets:
CUSTOM_API_BASE_URL、CUSTOM_API_KEY、CUSTOM_API_MODEL。其中基础地址应包含服务所需的版本路径,脚本追加/chat/completions。现有模板分类和提交规则检查保持原行为。新增内容初审仅发表评论,不修改标签、标题或 Issue 状态。评论内容来自代码中的固定文案,不拼接模型自由文本或 Issue 原文。
/ 此 PR 包含破坏性变更。
/ 此 PR 修改了配置,新增上述仓库 Secrets。
/ 此 PR 需要关联仓库同步修改。
Testing / 测试
node --check .github/issue-triage/triage.mjsgit diff --cached --check模拟测试验证代码执行边界,未评估真实模型的提示注入抵抗能力或追问准确性。模型仍可能选择不必要或不准确的追问。模拟测试使用临时文件,完成后已清理,未连接真实 LLM 或 GitHub API。未运行 Go 测试,本次改动仅涉及 Issue 自动化流程。
Checklist / 检查清单
/ 我已阅读 CONTRIBUTING。
/ 我确认此贡献符合仓库许可证、贡献规范和行为准则。
gofmt,go fmt, orprettierwhere applicable./ 我已按适用情况使用
gofmt、go fmt或prettier格式化变更代码。/ 我已在适用情况下请求相关维护者或代码所有者审查。
AI Disclosure / AI 使用声明
/ 此 PR 包含 AI 辅助内容。
Tools used / 使用工具:
Usage scope / 使用范围:
Code generation / 代码生成
Documentation / 文档
Tests / 测试
Review assistance / 审查辅助
I have reviewed and validated all AI-assisted content included in this PR.
/ 我已审核并验证此 PR 中的所有 AI 辅助内容。
I have ensured that all AI-assisted commits include
Co-Authored-Byattribution./ 我已确保所有 AI 辅助提交都包含
Co-Authored-By归属信息。I can reproduce all AI-assisted content included in this PR without any AI tools.
/ 我可以在没有任何 AI 工具的情况下重现此 PR 中包含的所有 AI 辅助内容。