Skip to content

feat(ci): auto-open downstream bump PRs on package release#638

Draft
SoulPancake wants to merge 1 commit into
mainfrom
feat/downstream-bump-prs
Draft

feat(ci): auto-open downstream bump PRs on package release#638
SoulPancake wants to merge 1 commit into
mainfrom
feat/downstream-bump-prs

Conversation

@SoulPancake

Copy link
Copy Markdown
Member

When a package release is published (undrafted) in this repo, open a version-bump PR against the relevant downstream consumers, authored and GPG-signed by the same openfga-releaser-bot identity used by release-please.

  • pkg/js -> openfga/vscode-ext (@openfga/syntax-transformer)
  • pkg/java -> openfga/intellij-plugin (dev.openfga:openfga-language)
  • pkg/go -> openfga/cli, openfga/terraform-provider-openfga

Adds scripts/downstream-bump.sh (per-ecosystem edit logic, idempotent) with unit tests, and reusable-downstream-bump.yaml which mints a target-scoped App token, applies the bump, and opens the PR. Chained after each finalize-release job so it is not subject to the GITHUB_TOKEN no-retrigger rule.

Description

What problem is being solved?

How is it being solved?

What changes are made to solve it?

References

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

When a package release is published (undrafted) in this repo, open a
version-bump PR against the relevant downstream consumers, authored and
GPG-signed by the same openfga-releaser-bot identity used by release-please.

- pkg/js  -> openfga/vscode-ext (@openfga/syntax-transformer)
- pkg/java -> openfga/intellij-plugin (dev.openfga:openfga-language)
- pkg/go  -> openfga/cli, openfga/terraform-provider-openfga

Adds scripts/downstream-bump.sh (per-ecosystem edit logic, idempotent) with
unit tests, and reusable-downstream-bump.yaml which mints a target-scoped App
token, applies the bump, and opens the PR. Chained after each finalize-release
job so it is not subject to the GITHUB_TOKEN no-retrigger rule.
@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 30a2e5dd-81c0-4cd1-956d-faf94d673daa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/downstream-bump-prs

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.

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.

1 participant