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

Allow the default commit to run against to be configured #410

Merged
merged 1 commit into from
Sep 6, 2021

Conversation

ozydingo
Copy link
Contributor

@ozydingo ozydingo commented Jul 8, 2021

Use Case

For repositories whose mainline branch is not master (new Github projects now default to main, and some projects require pull requests against development or similar), allow the default target branch for pronto to be configured. If not configured, it remains master.

Notes

Similar to other congiruations, it can be specified in .pronto.yml (using default_commit) or by environment variable (PRONTO_DEFAULT_COMMIT).

The -c flag is still supported to specify a target commit. Nevertheless, configuring a default makes sense when the existing default master does not even exist in a project as is the case for many new Github repos.

Issue: #412

@ozydingo
Copy link
Contributor Author

ozydingo commented Sep 4, 2021

@mknapik you've looked at some other config-related PRs, any time to give this one a quick glance? 🙏

@ashkulz ashkulz merged commit 26c6618 into prontolabs:master Sep 6, 2021
@ashkulz
Copy link
Member

ashkulz commented Sep 6, 2021

Thanks for the contribution, @ozydingo! Sorry for the delay in reviewing 🙈

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