-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add 'docker run' example / incorrect docker result #183
Comments
First part I will add this week to the README. Thanks again for finding issues like this. As for:
Can you check the discussion here? #167 (comment) We need to find a balance of how far to check on master due to repos not having adopted the conventional commit standard in the past. |
I'm going to add 2 flags which will sort this out. |
That would work, but shouldn't "all" be the default behavior? Limiting the range of commits to be checked seems like perfect flag material. What would running commitsar without flags do otherwise? |
Currently it goes like this: There was a suggestion to mirror |
Either way works I guess, I hope the --all flag can get implemented soon, I'm itching to get this into my pipeline for the master branch! |
It’ll be up tomorrow. :) |
Fantastic |
@tommyalatalo sorry about the delay. Here it is: https://github.com/outillage/commitsar/releases/tag/v0.11.0 |
Looking good! WIll you push a new image to docker hub? |
@tommyalatalo Pushed. I migrated this repo to GH Actions, but clearly forgot the docker hub push. 🤦♂ |
There is no tag "0.11.0" on docker hub? |
0.11.1 (latest release) is. I’ll release 0.11.0 ASAP. |
No its not, at least not tagged as "0.11.1"
|
I see the issue. https://hub.docker.com/r/outillage/commitsar There was a rebranding under the outillage name. I’ll set up the backwards compatibility with the old namespace and set up a deprecation strategy. |
I need to improve communication on such issue, however I need to find the correct medium. |
@tommyalatalo It has been returned to the old namespace. Give |
@tommyalatalo is it working ok for you? Can I close this after adding it to docs? |
It works, but you shouldn't really need to define the workdir though. If you just write the entrypoint to always run in /src then you can just state in the docs that you always mount the git repo to be checked into /src and you can skip setting the workdir. Would be one thing less to consider. |
Good point, will fix. |
Could you add a "docker run ..." command example to the repository README.md docs?
I've been trying to run commitsar with a direct docker run command, and I think I have it running correctly with this:
docker run --rm --name="commitsar" -w /src -v "$(pwd)":/src commitsar/commitsar:0.10.0
But the result is incorrect. I ran the above container from a repository with a master branch containing 71 commits, but commitsar just finds the latest commit and reports
1 of 1 commits are not conventional commit compliant
. Why are the other 70 commits ignored?The text was updated successfully, but these errors were encountered: