Skip to content

ci: add Buf Schema Registry publishing workflow#320

Open
giwaov wants to merge 1 commit into
KiiChain:mainfrom
giwaov:ci/buf-publish
Open

ci: add Buf Schema Registry publishing workflow#320
giwaov wants to merge 1 commit into
KiiChain:mainfrom
giwaov:ci/buf-publish

Conversation

@giwaov
Copy link
Copy Markdown

@giwaov giwaov commented Apr 6, 2026

Summary

Adds a GitHub Actions workflow that automatically lints and publishes protobuf definitions to the Buf Schema Registry whenever a version tag (v*) is pushed.

Closes #63

What this does

  • Trigger: Fires on any v* tag push (e.g. v7.2.0)
  • Lint: Runs buf lint against proto/ before publishing
  • Publish: Pushes to buf.build/kiichain/kiichain using the existing proto/buf.yaml module config
  • Tagging: Tags the BSR commit with the Git tag name (e.g. v7.2.0)
  • Auth: Requires a BUF_TOKEN repository secret (generated from buf.build settings)

Setup required

A maintainer needs to:

  1. Create an API token at https://buf.build/settings/user
  2. Add it as a repository secret named BUF_TOKEN

Files changed

File Change
.github/workflows/buf-publish.yml New workflow
CHANGELOG.md Unreleased entry

Add CI workflow that lints and pushes protobuf definitions to
buf.build/kiichain/kiichain on tagged releases (v*). Uses the
existing proto/buf.yaml module config. Requires a BUF_TOKEN
repository secret for authentication.
Copilot AI review requested due to automatic review settings April 6, 2026 11:16
@giwaov giwaov requested a review from jhelison as a code owner April 6, 2026 11:16
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 6, 2026

Warning

Rate limit exceeded

@giwaov has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 11 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 18 minutes and 11 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: da3b8402-581f-4073-85e6-6a570aaa4523

📥 Commits

Reviewing files that changed from the base of the PR and between 988d05f and 94fdf05.

📒 Files selected for processing (2)
  • .github/workflows/buf-publish.yml
  • CHANGELOG.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 release-tag-triggered GitHub Actions workflow to lint and publish the repository’s proto/ Buf module to the Buf Schema Registry (BSR), supporting automated protobuf distribution on versioned releases.

Changes:

  • Add a new GitHub Actions workflow that runs on v* tag pushes to buf lint and buf push --tag ${{ github.ref_name }} from proto/.
  • Add an Unreleased changelog entry noting the new Buf/BSR publishing CI.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/buf-publish.yml Introduces CI workflow to lint and publish the proto/ Buf module to BSR on version tag pushes.
CHANGELOG.md Documents the addition of the Buf publishing workflow under Unreleased.

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

Comment thread CHANGELOG.md

### Added

- Add Buf Schema Registry publishing CI that pushes protobuf profiles to buf.build on tagged releases (#63)
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

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

The changelog entry says this workflow pushes “protobuf profiles”, but the workflow/Buf terminology here is publishing the proto/ Buf module (protobuf definitions) to the Buf Schema Registry. Consider rewording this entry to avoid confusion for release note readers (e.g., “publishes protobuf definitions / Buf module to buf.build on tagged releases”).

Suggested change
- Add Buf Schema Registry publishing CI that pushes protobuf profiles to buf.build on tagged releases (#63)
- Add Buf Schema Registry publishing CI that publishes protobuf definitions (the `proto/` Buf module) to buf.build on tagged releases (#63)

Copilot uses AI. Check for mistakes.
@giwaov
Copy link
Copy Markdown
Author

giwaov commented Apr 10, 2026

Hi @jhelison — friendly ping! This PR is ready for review whenever you have a moment. All CI checks are passing. Happy to address any feedback. Thanks!

@giwaov
Copy link
Copy Markdown
Author

giwaov commented Apr 21, 2026

Hey @Thaleszh, would love to get your eyes on this when you have a moment. Thanks!

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.

Add profiles publishing via CI

2 participants