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

Remote repository: save and set default_branch #7646

Merged
merged 1 commit into from Nov 19, 2020

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Nov 5, 2020

Currently we default to master/trunk when a project is imported,
even when the project isn't imported manually.

The default_branch is already in the API response of all our supported
providers.

Questions:

  • Should we show this in the first form or in the advanced form?

Close #7533
Close #7601

Currently we default to master/trunk when a project is imported,
even when the project isn't imported manually.

The default_branch is already in the API response of all our supported
providers.

Questions:

- Should we show this in the first form or in the advanced form?
@stsewd stsewd requested a review from a team November 5, 2020 22:31
@saadmk11
Copy link
Member

#7536 needs to be updated after this PR is merged as a new migration is added here :)

Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

This seems like a good solution to users having other kinds of default branches. Just one question, but it seems like we should get this shipped to fix users with main.

@@ -166,6 +166,7 @@ class Meta:
fields = (
'description',
'documentation_type',
'default_branch',
Copy link
Member

Choose a reason for hiding this comment

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

Is this to allow users to edit this in the Project edit form, or is it required for the import.js to pass it properly?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, this is on import. I'm 👍 on showing it only when users select "Edit advanced options" 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

For both, yeah p:

@stsewd stsewd merged commit 9d039ab into master Nov 19, 2020
3 checks passed
@stsewd stsewd deleted the remote-repo-default-branch branch November 19, 2020 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants