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

Do not run CI for PRs where both branches are from the same repo #7

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

jgiannuzzi
Copy link
Member

When a pull request is created by comparing branches that are on the same repo, duplicate CI runs would be created: one for the branch push, and one for the pull request.
This commit prevents that, whilst preserving the ability to run the CI for each branch push to a fork, and for each pull request originating from a fork.

When a pull request is created by comparing branches that are on the same repo, duplicate CI runs would be created: one for the branch push, and one for the pull request.
This commit prevents that, whilst preserving the ability to run the CI for each branch push to a fork, and for each pull request originating from a fork.
@jgiannuzzi jgiannuzzi requested a review from stackedsax June 3, 2020 14:02
Copy link

@stackedsax stackedsax left a comment

Choose a reason for hiding this comment

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

👍

@jgiannuzzi jgiannuzzi merged commit 70cc59f into G-Research:master Jun 4, 2020
@jgiannuzzi jgiannuzzi deleted the ci-no-local-pr branch June 4, 2020 12:46
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