ci: add release-please-develop pre-release workflow - #303
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (69.93%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #303 +/- ##
=======================================
Coverage 69.93% 69.93%
=======================================
Files 142 142
Lines 10774 10774
=======================================
Hits 7535 7535
Misses 3239 3239 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to enable pre-release (alpha/beta/rc) automation from the develop branch by invoking the shared openfga/.github reusable workflow, mirroring the existing stable release-please flow on main.
Changes:
- Introduces
.github/workflows/release-please-develop.ymlto run pre-release automation ondevelop(push) or viaworkflow_dispatch. - Wires the workflow to the shared reusable
release-please-prerelease.ymlpinned by SHA, passingbase-branch/staging-branchand release inputs. - Aligns trigger/guard behavior (
startsWith(..., 'release:')) and permissions structure with the existingrelease-please.ymlworkflow.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
WalkthroughA new GitHub Actions workflow manages prerelease release-PR creation from ChangesDevelop prerelease workflow
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant GitHub as GitHub event
participant DevelopWorkflow as release-please-develop workflow
participant ReusableWorkflow as release-please-prerelease workflow
GitHub->>DevelopWorkflow: Push to develop or workflow_dispatch
DevelopWorkflow->>DevelopWorkflow: Check event and release version
DevelopWorkflow->>ReusableWorkflow: Invoke prerelease workflow with branches, inputs, and secrets
ReusableWorkflow->>GitHub: Create or publish prerelease release PR
Suggested reviewers: 🚥 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: 2
🤖 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/release-please-develop.yml:
- Line 16: Update the trigger documentation comment on line 16 to state that
merging the release PR creates a signed tag and draft prerelease, while
publication is handled later by the publish workflow; remove the claim that this
trigger publishes the release.
- Line 44: Update the reusable workflow’s workflow_dispatch handling to pass
release-version through an env variable before any shell assignment, validate
that environment variable with the pre-release regex, and use it for validation
and commit operations. Then update the caller’s pinned reusable-workflow
reference in release-please-develop.yml so it points to the fixed revision.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f6781bbb-faa0-43b4-b7cb-0be802b6c7c4
📒 Files selected for processing (1)
.github/workflows/release-please-develop.yml
📄 Knowledge reviewDosu skipped reviewing this PR because your organization has used its |
Adds a
release-please-developworkflow enabling pre-release (alpha/beta/rc) releases from thedevelopbranch, viaworkflow_dispatchor on merge of arelease:PR. It is a thin caller around the sharedopenfga/.githubreusablerelease-please-prerelease.yml, mirroring the existingrelease-pleasemain flow.Reference: https://github.com/openfga/js-sdk/blob/main/.github/workflows/release-please-develop.yml
Summary by CodeRabbit
developbranch.