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.
fix(gateway): org-adr-required 补充 PR head 的 ADR 文件校验(ADR-0046) #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
fix(gateway): org-adr-required 补充 PR head 的 ADR 文件校验(ADR-0046) #65
Changes from all commits
d7d9ec8File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Jq capture can abort job
🐞 Bug☼ Reliabilitycapture("^decisions/(ADR-...)") 对不匹配的 decisions/ 文件会抛错;在 GitHub Actions 默认 bash -e 下,这会让整个 step 直接失败。由于 stderr 被重定向到 /dev/null,失败时几乎没有可诊断信息。Agent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
修正 PR ADR 文件提取逻辑和状态过滤。
当前使用
capture(...)提取 ADR 文件名会得到null,因为.captures仅属于match(...)的结果;因此 PR 新增的 ADR 不会加入ADR_LISTING,有效引用仍可能被误判为幽灵 ADR。请先排除已删除文件,再使用match(...)或等价逻辑从当前.filename提取文件名,并保留重命名文件的新路径。📍 Affects 1 file
.github/workflows/org-gate.yml#L97-L99(this comment).github/workflows/org-gate.yml#L97-L99🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Deleted adr bypasses check
🐞 Bug≡ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsUh oh!
There was an error while loading. Please reload this page.