Conversation
📝 WalkthroughWalkthroughWorkflow for updating the changelog now triggers on a successful Changes
Sequence Diagram(s)sequenceDiagram
participant Workflow as Workflow Run
participant Actions as GitHub Actions
participant API as GitHub API
participant Repo as Repository
participant PR as Pull Request
Workflow->>Actions: workflow_run.completed (manual tag workflow) [success]
Actions->>API: GET /releases (filter draft==false)
API-->>Actions: latest non-draft release (LATEST_TAG)
Actions->>Repo: checkout ref=main
Actions->>Repo: create branch chore/update-changelog-${LATEST_TAG}
Actions->>Repo: commit changelog with ${LATEST_TAG}
Actions->>PR: open PR titled "chore: update changelog ${LATEST_TAG}"
PR-->>Actions: PR created
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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: 1
🤖 Fix all issues with AI agents
In @.github/workflows/update-changelog.yml:
- Around line 68-73: The workflow currently uses LATEST_TAG to build BRANCH_NAME
and proceed with git checkout/commit even if the gh API returned empty; add a
guard after LATEST_TAG is set that checks if LATEST_TAG is empty or null and, if
so, emit a clear error message (e.g., "No latest release tag found") and exit
with non-zero status to stop the job; update references around LATEST_TAG,
BRANCH_NAME, git checkout -B and git commit to only run when the check passes so
you never create malformed branch/PR names.
🧹 Nitpick comments (1)
.github/workflows/update-changelog.yml (1)
39-44: Draft filtering is good; consider prereleases if needed.If prereleases should also be excluded from the changelog, consider adding a
.prerelease == falsefilter.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.