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

Add a way to change the default parent branch #148

Closed
mikicz opened this issue Feb 3, 2023 · 2 comments · Fixed by #175
Closed

Add a way to change the default parent branch #148

mikicz opened this issue Feb 3, 2023 · 2 comments · Fixed by #175
Milestone

Comments

@mikicz
Copy link

mikicz commented Feb 3, 2023

Hi, love the package, it's super useful!

I do have one feature proposal - at my org we've migrated all our repositories to use main as the primary branch (as opposed to master), meaning that by default using --mode=branch doesn't work, one has to always specify --parent-branch=main, which gets a bit old. I would love if there was a way to permanently set the default parent branch, maybe through an environment variable or configuration in pytest.ini or similar?

Thanks

@anapaulagomes
Copy link
Owner

Hi @mikicz! Thank you for your message and sorry for taking so long. I couldn't reply you before.

So, I totally agree. Currently, I'm taking the dust out of the project, and making main as the default branch will be the next issue up. :)

@anapaulagomes anapaulagomes pinned this issue Jul 18, 2023
@anapaulagomes anapaulagomes added this to the 0.5.0 milestone Jul 18, 2023
@anapaulagomes anapaulagomes linked a pull request Jul 27, 2023 that will close this issue
@anapaulagomes
Copy link
Owner

For general information: plugins' configuration can be done using the adopts section in pytest's configuration file. https://docs.pytest.org/en/stable/reference/customize.html

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 a pull request may close this issue.

2 participants