Repository navigation
Conversation
|
@Ahajha, as promised the follow-up PR for automatic BCR release PR. Could you please review it when you have some time? |
|
Thanks @dcarp, didn't see these :) I should probably add a CODEOWNERS to this repo so I get pinged. |
|
I will try to get to these tomorrow! |
Ahajha
left a comment
There was a problem hiding this comment.
Appreciate the patience, I'm not super familiar with the BCR publishing process, but enough that this looks reasonable.
This seems to need a bit of setup on our side. From what I can see, we need at least:
- A fork of the BCR under the
modularorg - A PAT that can access that repo as a secret in this repo
We also should sort out the required statuses, but thanks for putting in a stopgap here.
I will consult with the team to see if we can get this going.
|
Thanks for reviewing! Yes, BCR publishing needs the With release-please added, Actions also needs permission to create PRs in the repository settings. It uses the built-in Release-please derives versions and changelogs from Conventional Commits. Using Conventional Commit PR titles with squash merges provides that information. I’ve documented this, along with setup and recovery, in The compatibility checks remain in place until the ruleset can require conclusion directly |
|
Appreciate the patience again, time for reviewing PRs is so scarce 😅 I've created an internal ticket to set up the fork and secret. As for using conventional commits, this seems like a good idea. Our monorepo has a different style ( |
|
Thanks for opening the setup ticket! I’ve added Once the workflow is on main, you can make Validate PR title a required check. Squash commits should also default to the PR title, so release-please receives the validated message. I’ve documented those settings in |
Adds a manually dispatched release workflow that validates existing unprefixed tags against upstream main, publishes an attested GitHub release, and opens a BCR PR through
modular/bazel-central-registry.conclusionjob covering the complete test matrix and pre-commit results.The six existing required checks remain as compatibility aliases of
conclusion, so no ruleset change is needed now. Maintainers can later requireconclusiondirectly and remove the aliases.Requires the
BCR_PUBLISH_TOKENsecret with access to the registry fork.Validated workflow syntax, pre-commit hooks, release validation, archive generation, and local BCR entry creation. All 14 Bazel tests pass with normal and stripped output paths. Actual signing and publishing have not been run.