Skip to content

Commit 1a39375

Browse files
committed
dev-inf: Add PR comment when bugs are detected
Adds a step to post a PR comment when Stage 3 confirms potential bugs. The comment uses cautious language and links to the workflow run for detailed findings. Epic: none Release note: none
1 parent 2ba14c3 commit 1a39375

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/pr-analyzer-threestage.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,21 @@ jobs:
214214
2. The final determination (critical bug found or no critical bugs)
215215
3. If bugs were found, what actions are recommended
216216
217-
**If all three stages detected bugs**, this indicates a potential issue that warrants investigation.
217+
**If all three stages detected bugs**, this indicates a potential issue that warrants investigation.
218+
219+
- name: Comment on PR if bugs confirmed
220+
if: contains(steps.stage3_result.outputs.result, 'STAGE3_RESULT: POTENTIAL_BUG_CONFIRMED')
221+
env:
222+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223+
run: |
224+
gh pr comment ${{ github.event.pull_request.number }} --body "## Potential Bug(s) Detected
225+
226+
The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.
227+
228+
**Analysis Results:**
229+
- ⚠️ Stage 1 (Initial Screening): Potential bugs detected
230+
- ⚠️ Stage 2 (Database Expert Review): Potential bugs not ruled out
231+
- ⚠️ Stage 3 (Principal Engineer Review): Potential bugs not ruled out
232+
233+
**Next Steps:**
234+
Please review the detailed findings in the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})."

0 commit comments

Comments
 (0)