Skip to content

ci: add release-please-develop pre-release workflow - #734

Merged
SoulPancake merged 1 commit into
mainfrom
feat/release-please-develop
Jul 29, 2026
Merged

ci: add release-please-develop pre-release workflow#734
SoulPancake merged 1 commit into
mainfrom
feat/release-please-develop

Conversation

@SoulPancake

@SoulPancake SoulPancake commented Jul 28, 2026

Copy link
Copy Markdown
Member

Adds a release-please-develop workflow enabling pre-release (alpha/beta/rc) releases from the develop branch, via workflow_dispatch or on merge of a release: PR. It is a thin caller around the shared openfga/.github reusable release-please-prerelease.yml, mirroring the existing release-please main flow.

Reference: https://github.com/openfga/js-sdk/blob/main/.github/workflows/release-please-develop.yml

Summary by CodeRabbit

  • Chores
    • Added automated prerelease workflow support for changes pushed to the development branch.
    • Added the option to manually trigger prerelease automation with a specified release version.
    • Improved release automation permissions and signing support.

Copilot AI review requested due to automatic review settings July 28, 2026 11:38
@SoulPancake
SoulPancake requested a review from a team as a code owner July 28, 2026 11:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new GitHub Actions workflow to support a pre-release lane from the develop branch, delegating the actual release logic to the shared openfga/.github reusable workflow (pinned by SHA) to keep implementation consistent across SDK repos.

Changes:

  • Introduces .github/workflows/release-please-develop.yml to generate/publish pre-releases from develop.
  • Supports both workflow_dispatch (explicit pre-release version input) and push to develop gated on release:-prefixed merge commits.
  • Configures job-level permissions and passes expected inputs (base-branch, staging-branch, trigger-event) to the reusable workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Adds a GitHub Actions workflow that runs prerelease automation for develop, supports manual version input, gates execution to approved events, and passes release, branch, permission, and signing configuration to a pinned reusable workflow.

Changes

Develop prerelease automation

Layer / File(s) Summary
Configure develop prerelease release flow
.github/workflows/release-please-develop.yml
Adds push and manual triggers, read/write permissions, execution gating, pinned reusable workflow wiring, prerelease version and branch settings, and release/signing secrets.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • openfga/cli#717: Uses pinned openfga/.github reusable release workflows in GitHub Actions configuration.

Suggested reviewers: curfew-marathon, copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding a develop-focused release-please pre-release workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/release-please-develop

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:
- Around line 26-31: Update the reusable workflow’s release-version handling so
the workflow input is passed through an environment variable and validated
before use, rather than interpolated into the parse-release.sh invocation or
commit commands. Preserve the required alpha/beta/rc format validation, use the
validated value safely in shell steps, and update the referenced commit pin to
include this fix.
- Around line 14-16: Update the trigger comments near the reusable prerelease
workflow to clarify that it creates the signed tag and draft release, while
publication is performed downstream by a separate workflow; do not describe this
workflow as publishing the release.
🪄 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: b34fa4bb-4de8-4dc4-bc35-67d9a321bdac

📥 Commits

Reviewing files that changed from the base of the PR and between 5546e9b and cd8eae0.

📒 Files selected for processing (1)
  • .github/workflows/release-please-develop.yml

Comment thread .github/workflows/release-please-develop.yml
Comment thread .github/workflows/release-please-develop.yml
@SoulPancake
SoulPancake enabled auto-merge July 29, 2026 05:54
@SoulPancake
SoulPancake added this pull request to the merge queue Jul 29, 2026
Merged via the queue into main with commit 78bb181 Jul 29, 2026
29 checks passed
@SoulPancake
SoulPancake deleted the feat/release-please-develop branch July 29, 2026 05:57
@dosubot

dosubot Bot commented Jul 29, 2026

Copy link
Copy Markdown

📄 Knowledge review

Dosu skipped reviewing this PR because your organization has used its 200 included credits for the month. Your usage will reset on 2026-08-01. To have Dosu review this PR before then, ask your organization admin to upgrade to a pro account.


Leave Feedback Ask Dosu about cli Add Dosu to your team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants