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

WIP: Check commit messages with Gnitpick and minor Travis-CI syntax fixes #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ottok
Copy link
Contributor

@ottok ottok commented Mar 6, 2020

No description provided.

@ottok ottok requested a review from JoosuaKoskinen March 6, 2020 21:40
@JoosuaKoskinen
Copy link
Contributor

Does what it's supposed to do. But I did notice this at the top of Travis log.

$ python3 ./gnitpick.py
Travis-CI detected, reading git revisions from environment
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
128
Cannot compare , is this a force push?
Gnitpick inspecting git revisions range HEAD~10..HEAD

It was not a force push and the gnitpick tests still worked the same. So the only problem is that it tested many old commit.

@ottok
Copy link
Contributor Author

ottok commented Mar 11, 2020

That is because of https://github.com/Seravo/gnitpick/blob/master/gnitpick.py#L174-L188
Should we change Gnitpick to check only the last 3 commits instead? Or just one?

@JoosuaKoskinen
Copy link
Contributor

I think it should check 5 at the most. But why is it doing that in the first place? I did not use --force. Why wasn't the range valid?

@ottok
Copy link
Contributor Author

ottok commented Mar 17, 2020

You can inspect what happened by looking at the build log in https://travis-ci.org/github/Seravo/wordpress/jobs/660968721

$ python3 ./gnitpick.py
Travis-CI detected, reading git revisions from environment
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
128
Cannot compare , is this a force push?
Gnitpick inspecting git revisions range HEAD~10..HEAD
 commit fb3cec6ef7dece5dd407f8380cd43b84ab3d14c8
 Author: Joosua Koskinen <[email protected]>
 Date:   Wed Mar 11 10:04:41 2020 +0200
 
     tEST gnitpickvim test! :) .

You can also clone the Gnitpick repo and push it around to see the output of the Travis-CI env debugger: https://github.com/Seravo/gnitpick/blob/master/.travis.yml

@elguitar
Copy link
Contributor

What's the status on the review?

@ottok ottok changed the title Check commit messages with Gnitpick and minor Travis-CI syntax fixes WIP: Check commit messages with Gnitpick and minor Travis-CI syntax fixes May 27, 2020
@ottok
Copy link
Contributor Author

ottok commented May 27, 2020

Changed to WIP status. Gnitpick needs to mature a bit more before this is ready for prime time.

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.

3 participants