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(travis): Validate TRAVIS_PULL_REQUEST_SHA rather than TRAVIS_COMMIT. #3093

Merged
merged 1 commit into from
Jul 27, 2018

Conversation

johnjbarton
Copy link
Contributor

Also add some debug messages for commits and remove an old node4 command.

Also add some debug messages for commits and remove an old node4 command.
@johnjbarton
Copy link
Contributor Author

AFAICT the TRAVIS_COMMIT can be a merge commit: upstream head + pr commit. So the TRAVIS_PULL_REQUEST_SHA looks like the right one for validating the message.

@johnjbarton johnjbarton requested a review from zzo July 27, 2018 16:37
@zzo
Copy link
Contributor

zzo commented Jul 27, 2018

I'll take your word for it :)

Copy link
Contributor

@zzo zzo left a comment

Choose a reason for hiding this comment

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

the validate script still works passing in the SHA va. the commit number?

@johnjbarton
Copy link
Contributor Author

The commit number is a SHA is a commit number. (https://www.npmjs.com/package/validate-commit-msg works on commits not PR numbers)

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