No release in over 3 years
Low commit activity in last 3 years
A rake task for the git-validation tool
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1.4
~> 5.14.0
~> 13.0.1
~> 0.80.1
 Project Readme

Build Status for master branch Gem version License LGPL 3


git_validation_task provides rake integration for the git-validation tool.

Using it

Simply include it in your Rakefile like so:

require "git_validation/task"

GitValidation::Task.new(:"git-validation")

You can pass two options:

  1. from: the inital SHA for the -range flag. If this is not used, then the -range is not used (except for what is described in the CI section of this document).
  2. run: the values to be passed to the run flag. If this is not used, then the -run flag is not used.
  3. quiet: whether or not the -q flag should be used.

Thus, a more complete example would be something like:

require "git_validation/task"

GitValidation::Task.new(:"git-validation") do |t|
  t.from = "74a6c20fc4d3"
end

And more complete:

require "git_validation/task"

GitValidation::Task.new(:"git-validation") do |t|
  t.from  = "74a6c20fc4d3"
  t.run   = "DCO,message_regexp"
  t.quiet = ENV["CI"] != "true"
end

CI

If the TRAVIS_COMMIT_RANGE environment variable is set, then this value will be used for the -range flag. Thus, any value from the from option will be ignored in this context.

Contributing

Read the CONTRIBUTING.md file.

Read the CHANGELOG.md file.

License

This project is based on work I did for the Portus project. I've extracted my code into a gem so it can be also used for other projects that might be interested in this.

Copyright (C) 2020-2021 Miquel Sabaté Solà <mikisabate@gmail.com>

git_validation_task is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

git_validation_task is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with git_validation_task.  If not, see <http://www.gnu.org/licenses/>.