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 optional parameter to point to different parent branch #113

Merged

Conversation

pschroeder89
Copy link
Collaborator

@pschroeder89 pschroeder89 commented Nov 6, 2020

In the event a repo is not using "master" as its parent branch, Branch mode currently fails. This PR allows the use of a parameter (--parent-branch main, --parent-branch trunk, --parent-branch develop, etc.) to specify a repository's parent branch name.
If no parent-branch option is supplied, the default is master.

@pschroeder89 pschroeder89 changed the base branch from master to dev November 6, 2020 19:25
@anapaulagomes
Copy link
Owner

Nice one, @pschroeder89! ✨
Could you please add a test for it? Also, an entry on our CHANGELOG.md would be awesome. Thanks!

@pschroeder89
Copy link
Collaborator Author

Nice one, @pschroeder89! ✨
Could you please add a test for it? Also, an entry on our CHANGELOG.md would be awesome. Thanks!

Done and done!

@anapaulagomes
Copy link
Owner

Hi @pschroeder89! I'll look it again next week.

Copy link
Owner

@anapaulagomes anapaulagomes left a comment

Choose a reason for hiding this comment

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

Almost there. I tested locally and works fine. Well done! I'm only missing a test in test_pytest_picked.py (where we'll have faster feedback in case we break something in the future). Once this is done we're ready to go.

tests/test_modes.py Show resolved Hide resolved
@anapaulagomes anapaulagomes self-requested a review December 10, 2020 00:31
Copy link
Owner

@anapaulagomes anapaulagomes left a comment

Choose a reason for hiding this comment

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

🎉

@anapaulagomes anapaulagomes merged commit ad4c1b2 into anapaulagomes:dev Dec 10, 2020
anapaulagomes added a commit that referenced this pull request Dec 22, 2020
* Adopt Github Actions (#97)

* Update badges

* Create FUNDING.yml

* Add optional parameter to point to different parent branch (#113)
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.

2 participants