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

Improve change detection for feature branches #16

Merged
merged 4 commits into from
Jun 24, 2020
Merged

Improve change detection for feature branches #16

merged 4 commits into from
Jun 24, 2020

Conversation

dorny
Copy link
Owner

@dorny dorny commented Jun 24, 2020

Previous implementation for push triggers tried to detect changes against the most recent commit on the branch before the push. This worked well for long-lived branches like master. However it didn't work well for feature branches.

If you want to run CI jobs on every push to feature branch (before pull request is opened), it doesn't make sense to detect changes against same feature branch. Instead change detection should be done against the repository base branch (e.g. master).

This PR changes the default behavior for feature branches to run change detection against the repository default branch.
It also adds base that can be used to provide alternative base reference.

Fixes #15

@dorny dorny merged commit 83deb9f into master Jun 24, 2020
@dorny dorny deleted the base-ref branch June 24, 2020 19:53
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.

Action sometimes fails on push
1 participant