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: SLI 周报标签兜底(.github #98,ADR-0059) #197
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: SLI 周报标签兜底(.github #98,ADR-0059) #197
Changes from all commits
5a6928cFile 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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
修正回退控制流,否则无标签重试仍不可达。
初始
gh issue create失败后会调用die。该函数在scripts/sli-report.shLine 33 执行exit 2,因此后面的无标签创建命令永远不会执行。初始创建成功时,||分支也不会执行。此外,
\n在 shell 中不是换行符,而是传给die的字面量参数n。请使用明确的if/then结构,并只在两次创建都失败时调用die。否则.github/workflows/sli-weekly.yml会继续收到退出码2,使周报工作流失败。建议修复
📝 Committable suggestion
🧰 Tools
🪛 Shellcheck (0.11.0)
[warning] 187-187: \n is just literal 'n' here. For line feed, use a quoted, literal line feed instead.
(SC1012)
🤖 Prompt for AI Agents
Source: Linters/SAST tools
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: Cloudbird-Software/.github
Length of output: 6339
🏁 Script executed:
Repository: Cloudbird-Software/.github
Length of output: 50382
分离跨仓读取令牌与 Issue 写入令牌
当前
.github/workflows/sli-weekly.yml将GOVERNANCE_TOKEN注入GH_TOKEN。因此scripts/sli-report.sh中的gh issue create未使用scripts/gh-app-token.sh生成的cloudbrid-agent单仓、1 小时令牌。请将
GOVERNANCE_TOKEN限用于跨仓读取,并为所有 Issue 写操作单独设置GH_TOKEN为REPO=.github bash scripts/gh-app-token.sh的结果。脚本当前所有gh调用共用GH_TOKEN,不能只替换工作流环境变量,否则会影响跨仓读取。🧰 Tools
🪛 Shellcheck (0.11.0)
[warning] 187-187: \n is just literal 'n' here. For line feed, use a quoted, literal line feed instead.
(SC1012)
🤖 Prompt for AI Agents
Source: Coding guidelines
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. Retry is unreachable after failure
🐞 Bug≡ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools