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

Fix commit range for audit_modified_casks #13783

Merged
merged 1 commit into from
Sep 16, 2015
Merged

Fix commit range for audit_modified_casks #13783

merged 1 commit into from
Sep 16, 2015

Conversation

jawshooah
Copy link
Contributor

The value of TRAVIS_COMMIT_RANGE is of the form <target_branch_tip>...<pr_branch_tip>. Even after replacing the ... with .. in #13762, this results in unrelated changes being included in the diff if the target branch (master) has been updated since the PR branch was created.

The commit that Travis checks out for testing (TRAVIS_COMMIT) is a merge of the PR branch into the target branch (TRAVIS_BRANCH), so the commit range TRAVIS_BRANCH..TRAVIS_COMMIT should only include the changes from the PR.

Review on Reviewable

The value of TRAVIS_COMMIT_RANGE is of the form:

  <target_branch_tip>...<pr_branch_tip>

Even after replacing the '...' with '..', this results in unrelated
changes being included in the diff if the target branch (usually master)
has been updated since the PR branch was created.

The commit that Travis checks out for testing (TRAVIS_COMMIT) is a merge
of the PR branch into the target branch (TRAVIS_BRANCH), so the commit
range TRAVIS_BRANCH..TRAVIS_COMMIT should only include the changes from
the PR.
@jawshooah jawshooah changed the title Fix commit range for audit_modified_casks Fix commit range for audit_modified_casks Sep 16, 2015
vitorgalvao added a commit that referenced this pull request Sep 16, 2015
Fix commit range for `audit_modified_casks`
@vitorgalvao vitorgalvao merged commit 0837e09 into Homebrew:master Sep 16, 2015
@jawshooah jawshooah deleted the travis-fix-commit-range branch December 7, 2015 21:15
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants