Repository navigation
Replace maintain-one-comment with find-comment and create-or-update-comment - #3267
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughDeployment and cleanup workflows now locate and update bot-authored deployment comments with timestamps, environments, frontend URLs, refs, or deletion status. Somnia’s workflow also removes an inline permission comment. ChangesDeployment comment updates
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Workflow
participant FindComment
participant CreateOrUpdateComment
Workflow->>FindComment: Search issue or PR for bot comment containing “Deployed”
FindComment-->>Workflow: Return matching comment ID
Workflow->>CreateOrUpdateComment: Create or update deployment status
Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/clean-pr.yml:
- Around line 61-67: Update the cleanup comment step in
.github/workflows/clean-pr.yml to use a stable shared marker in both the
body-includes filter and the deleted-deployment body. Ensure the same marker is
used by the deployment workflows’ comment bodies and filters so subsequent
deploy and cleanup runs continue updating the existing comment instead of
creating duplicates.
- Around line 62-67: Update the “Create or update comment” steps in
.github/workflows/clean-pr.yml lines 62-67,
.github/workflows/deploy-frontend.yml lines 102-108, and
.github/workflows/deploy-somnia.yml lines 84-90 to pass the corresponding
find-comment step’s steps.fc.outputs.comment-id and set edit-mode to replace,
preserving one status comment per deployment.
In @.github/workflows/deploy-somnia.yml:
- Line 90: Update the deployment comment construction in the workflow step using
steps.output-date.outputs.date so the emitted comment contains only the intended
deployment text; remove the trailing quote and shell redirection syntax from the
comment body while preserving the actual GITHUB_OUTPUT write operation.
- Around line 76-86: Update the deploy job containing the “Find Comment” and
“Create or update comment” steps by adding job-level permissions for issues:
write and pull-requests: write, while preserving actions: read for the artifact
download steps. Ensure the peter-evans comment actions can write to both issue
and pull-request comments without removing required artifact permissions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: dac1e326-d263-4de0-bd74-a72c591a6315
📒 Files selected for processing (3)
.github/workflows/clean-pr.yml.github/workflows/deploy-frontend.yml.github/workflows/deploy-somnia.yml
|
[Fri Jul 24 20:40:38 UTC 2026] - Deleted deployment |
Describe your changes
Add back comment maintenance in the action using a different set of actions
Issue or discord link
Testing/validation
Tested here nguyentvan7#60
Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)
yarn run mini-cilocally to validate format and lint.Summary by CodeRabbit