Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get/Set repositories' default branch field #2326

Merged
merged 7 commits into from
Jul 31, 2023

Conversation

unmultimedio
Copy link
Member

This allows buf alpha repo sync command to check if the local git default branch matches the BSR's, and abort if they don't.

@unmultimedio unmultimedio requested review from bufdev and doriable July 27, 2023 20:28
@unmultimedio unmultimedio self-assigned this Jul 27, 2023
@unmultimedio unmultimedio changed the title Getter/Setter RPCs for repositories' default branch Get/Set repositories' default branch field Jul 28, 2023
Copy link
Contributor

@seankimdev seankimdev left a comment

Choose a reason for hiding this comment

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

Lgtm, just non-blocking question/comment.

@@ -55,6 +55,10 @@ message Repository {
// url is the user configurable URL in the description of the repository,
// always included the scheme and will not have a #fragment suffix.
string url = 12;
// default_branch in a BSR repository. It is used when syncing a git repository, to make sure both
// default branches (BSR and Git) are in sync. By default, every BSR repository is created with a
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if the default branches (BSR and Git) are out of sync? Would it reject the sync until the user manually changes the default branch in BSR to match?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's correct, but that's in the buf sync scope, in an upcoming PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Here's that PR: #2328

@unmultimedio unmultimedio merged commit c1e64ab into main Jul 31, 2023
@unmultimedio unmultimedio deleted the jfigueroa/default-branch-rpcs branch July 31, 2023 22:30
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