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

Use default branch instead of master #325

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

snim2
Copy link
Contributor

@snim2 snim2 commented Oct 12, 2021

Closes #324

@snim2 snim2 force-pushed the default-branch-may-not-be-master branch from 425c847 to 552dcfe Compare October 12, 2021 10:25
@snim2 snim2 marked this pull request as ready for review October 12, 2021 10:26
@snim2 snim2 changed the title Draft: Use default branch instead of master Use default branch instead of master Oct 12, 2021
@@ -10,6 +10,7 @@
'path_with_namespace': 'cool/project',
'ssh_url_to_repo': 'ssh://blah.com/cool/project.git',
'merge_requests_enabled': True,
'default_branch': 'master',
Copy link

Choose a reason for hiding this comment

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

Can't we use here the env variable CI_DEFAULT_BRANCH which is already provided by gitlab?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's provided both by the env var and by the API so potentially we could do either, but the existing code seems to prefer the API over env vars, so I stuck with that

@qqshfox qqshfox merged commit 70ab3c8 into smarkets:master Oct 13, 2021
@qqshfox qqshfox added this to the 0.11.0 milestone Oct 13, 2021
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.

Assumes default branch is 'master'
3 participants