6f5b21b58e
Merge pull request #60 from vbatts/fix_revlist
...
commits: add a fallback if rev-list fails due to shallow depth
2023-03-14 23:02:48 -04:00
a041fe84ae
commits: add a fallback if rev-list fails due to shallow depth
...
Fixes : #53
When CI only fetches some shallow depth of commits in a repo, don't fail
on `git rev-list` on commits that are outside that range.
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-03-14 23:01:02 -04:00
767ae83c3f
Merge pull request #58 from vbatts/mage
...
*go: trying out magefiles
2023-03-14 21:58:05 -04:00
69476678b0
*go: trying out magefiles
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-03-14 21:56:37 -04:00
56e85dceb2
README: markdown lint and cleanup
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-09-14 13:33:15 +00:00
1e62ff3cc8
README: prefer go install
to go get
...
Fixes : #56
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-09-14 13:30:11 +00:00
fd9b8fa612
Merge pull request #55 from swagatbora90/DCO-check-CRLF
...
Replace CRLF in all commit messages which currently causes DCO check …
2022-05-04 07:43:58 -04:00
Swagat Bora
ca901924b2
Replace CRLF in all commit messages which currently causes DCO check to fail
2022-05-03 22:25:59 +00:00
55b1840f58
README: update badges
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-05-14 14:43:53 -04:00
de3512e789
Merge pull request #51 from vbatts/go-mod
...
go: update modules
2021-05-14 14:42:15 -04:00
bd796fc6ad
Merge pull request #49 from vbatts/github-actions
...
main: add support for github actions
2021-05-14 14:41:57 -04:00
59392066c4
main: add support for github actions
...
Fixes #48
now with logic to detect GITHUB_SHA env variable, let's do a run without
the `-range` flag so that path lights up.
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-05-14 14:17:58 -04:00
5fd8690c87
Merge pull request #52 from vbatts/bye-travis
...
add github actions
2021-05-14 10:55:21 -04:00
25069be637
add github actions
...
For now, we'll leave travis, since we have logic for it. Once Travis
stops working, then we'll remove the logic and the ./.travis.yml
Fixes #50
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-05-14 10:51:54 -04:00
45f58c3742
go: update modules
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-05-13 08:03:39 -04:00
60cb871391
Merge pull request #47 from cevich/fix_gpg_interference
...
Consider only commit IDs when listing range
2020-09-16 14:10:08 -04:00
Chris Evich
3c71df2bd9
Consider only commit IDs when listing range
...
When using `git log`, if some/all commits are gpg-signed, git will
automatically try to validate the signatures by default. This results
in printing additional text. This additional gpg-validation text is
then incorrectly interpreted by `git-validate` as if they were commit
IDs. Fix the problem by using the `rev-list` sub-command which will
ONLY list the IDs.
Signed-off-by: Chris Evich <cevich@redhat.com>
2020-09-16 11:41:22 -04:00
91e5ebf160
Merge pull request #45 from estesp/travis-go-vers
...
Update travis to supported Go versions
2020-03-27 07:42:32 -04:00
Phil Estes
c36adca155
Update travis to supported Go versions
...
Remove unsupported/old Golang versions from Travis run.
Signed-off-by: Phil Estes <estesp@vnet.linux.ibm.com>
2020-03-26 23:23:26 -04:00
c95946fd0c
travis: drop go1.7 and go1.8 due to golang.org/x/sys
...
Ref: https://github.com/vbatts/git-validation/pull/43#issuecomment-530467954
golang.org/x/sys as of fde4db37ae7ad8191b03d30d27f258b5291ae4e3 uses
`math/bits`, so it does not support go1.7 and go1.8
I could set that in the go.mod, but those old versions do not support
that. I could ./vendor/ but perhaps no one is even using this tool on
these old golang versions. Choices. choices.
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-11 12:54:50 -04:00
5b845cee79
Merge pull request #43 from crosbymichael/exclude
...
Skip empty excludes
2019-09-11 12:52:28 -04:00
Michael Crosby
efe06dd0d3
Skip empty excludes
...
This is useful when you want to append additional elements to the env
var in the fasion of `PATH=$PATH:/things`.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-09-10 16:33:44 -04:00
e7e08e6b9b
Merge pull request #42 from saschagrunert/master
...
Add go module support
2019-05-20 16:12:35 -04:00
Sascha Grunert
9b8644d0b1
Add go module support
...
Adds a `go.mod` and `go.sum` to the project to enable basic go module
support.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-05-06 14:38:14 +02:00
7b29366a0d
Merge pull request #41 from giuseppe/fix-empty-commit-range
...
git-validation: do not fail on an empty commit range
2018-11-08 08:57:10 -05:00
Giuseppe Scrivano
a269d9d42d
git-validation: do not fail on an empty commit range
...
The error could be reproduced with "git-validation -range HEAD..HEAD"
Closes: https://github.com/vbatts/git-validation/issues/36
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-11-08 14:14:00 +01:00
27e9409966
Merge pull request #40 from vbatts/golint
...
Fix golint import path
2018-10-31 14:19:30 -04:00
099c80c66f
travis: version conditional golint
...
Since golint has changed url, and older go can't even install it, it
requires some silliness to install and only check when it's the newer
go1.11
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-10-31 14:14:07 -04:00
golint fixer
a0a8b28611
Fix golint import path
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-10-26 10:09:09 -04:00
bc61a7ad0c
Merge pull request #38 from vbatts/fix37
...
git: compare version of git for known features
2018-09-25 19:12:05 +01:00
8bd4195bb7
git: compare version of git for known features
...
Fixes #37
Reported-by: Brent Baude <@baude>
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-09-25 14:11:13 -04:00
656ba47bb0
Merge pull request #35 from kunalkushwaha/update-readme
...
Updated usage of GIT_CHECK_EXCLUDE
2018-03-06 20:46:36 -05:00
Kunal Kushwaha
fbad882378
Updated usage of GIT_CHECK_EXCLUDE
...
Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
2018-03-07 09:54:54 +09:00
48acb1add0
Merge pull request #34 from kunalkushwaha/multiple-exclude-pathspec
...
added support for multiple path in exclude list
2018-03-06 14:21:08 -05:00
Kunal Kushwaha
400b685c66
support for multiple path in exclude list
...
delimeter should be used as colon(:)
Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
2018-03-06 15:59:52 +09:00
3dbd244e43
Merge pull request #32 from mikebrow/sirupsen-update
...
sirupsen changed name
2017-11-27 12:29:48 -05:00
Mike Brown
8ebf5d3f10
sirupsen changed name
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-11-27 11:02:43 -06:00
cb8f88ffbf
shortsubject: merge commits may be long
...
due to automated "merge of <hash> in to <hash>"
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-11-15 11:59:18 -05:00
90191a015b
Merge pull request #31 from vbatts/valued_rules
...
add a message_regexp rule
2017-10-12 09:26:06 -04:00
00823a324b
message_regexp: regular expression rule for messages
...
Fixes : #30
now you can add a regular expression to the rules to be run
i.e. `git-validation -run "dco,message_regexp='^JIRA-[0-9]+ [A-Z].*$'"`
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-10-09 16:07:40 -04:00
d9bf419b44
validate: prep for rules that have a value
...
where needed, some rules may need to pass in a value like for a reguler
expression.
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-10-09 13:21:23 -04:00
cc3ab48288
Merge pull request #22 from vbatts/docs_for_exclude
...
README: doc the exclude function
2017-04-27 14:19:43 -04:00
04d7733885
README: doc the exclude function
...
https://github.com/vbatts/git-validation/pull/21
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-04-27 14:14:35 -04:00
9c912afea5
Merge pull request #23 from vbatts/travis
...
travis: test on latest go branches
2017-04-27 14:13:27 -04:00
5a672d8f1c
Merge pull request #28 from wking/golint-exit-status
...
.travis.yml: Add '-set_exit_status' to golint invocation
2017-04-27 14:08:32 -04:00
032c0d21e9
travis: test on latest go branches
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-04-27 14:05:44 -04:00
ac0930a271
Merge pull request #29 from vbatts/fix_push_ci
...
travis: only run the git-validation on pull-requests
2017-04-27 14:04:18 -04:00
56ef622e37
travis: only run the git-validation on pull-requests
...
Fixes #24
https://docs.travis-ci.com/user/pull-requests/
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-04-27 13:59:55 -04:00
W. Trevor King
094999a80e
rules/danglingwhitespace/rule.go: Comment for ValidateDanglingWhitespace
...
Avoid golint's:
rules/danglingwhitespace/rule.go:22:1: exported function ValidateDanglingWhitespace should have comment or be unexported
Signed-off-by: W. Trevor King <wking@tremily.us>
2017-04-27 10:37:17 -07:00
W. Trevor King
b4e2a474d1
.travis.yml: Add '-set_exit_status' to golint invocation
...
So Travis tells us when golint finds something suspicious.
Signed-off-by: W. Trevor King <wking@tremily.us>
2017-04-27 10:20:21 -07:00