{"id":16068409,"url":"https://github.com/mssola/git_validation_task","last_synced_at":"2025-04-05T10:14:53.383Z","repository":{"id":56874549,"uuid":"250847251","full_name":"mssola/git_validation_task","owner":"mssola","description":"Rake integration for the git-validation tool.","archived":false,"fork":false,"pushed_at":"2023-07-23T10:09:55.000Z","size":44,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T07:40:48.337Z","etag":null,"topics":["ci","git","rake","rake-task","rakefile","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mssola.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-28T16:53:30.000Z","updated_at":"2021-01-22T10:25:30.000Z","dependencies_parsed_at":"2022-08-20T22:30:38.102Z","dependency_job_id":null,"html_url":"https://github.com/mssola/git_validation_task","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mssola%2Fgit_validation_task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mssola%2Fgit_validation_task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mssola%2Fgit_validation_task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mssola%2Fgit_validation_task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mssola","download_url":"https://codeload.github.com/mssola/git_validation_task/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318746,"owners_count":20919483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","git","rake","rake-task","rakefile","ruby"],"created_at":"2024-10-09T06:21:03.855Z","updated_at":"2025-04-05T10:14:53.365Z","avatar_url":"https://github.com/mssola.png","language":"Ruby","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/mssola/git_validation_task\" title=\"Travis CI status for the master branch\"\u003e\u003cimg src=\"https://travis-ci.org/mssola/git_validation_task.svg?branch=master\" alt=\"Build Status for master branch\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/rb/git_validation_task\" title=\"Gem version\"\u003e\u003cimg src=\"https://badge.fury.io/rb/git_validation_task.svg\" alt=\"Gem version\" /\u003e\u003c/a\u003e\n  \u003ca href=\"http://www.gnu.org/licenses/lgpl-3.0.txt\" rel=\"nofollow\"\u003e\u003cimg alt=\"License LGPL 3\" src=\"https://img.shields.io/badge/license-LGPL_3-blue.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n`git_validation_task` provides rake integration for the\n[git-validation](https://github.com/vbatts/git-validation) tool.\n\n## Using it\n\nSimply include it in your Rakefile like so:\n\n```ruby\nrequire \"git_validation/task\"\n\nGitValidation::Task.new(:\"git-validation\")\n```\n\nYou can pass two options:\n\n1. `from`: the inital SHA for the `-range` flag. If this is not used, then the\n   `-range` is not used (except for what is described in the `CI` section of\n   this document).\n2. `run`: the values to be passed to the `run` flag. If this is not used, then\n   the `-run` flag is not used.\n3. `quiet`: whether or not the `-q` flag should be used.\n\nThus, a more complete example would be something like:\n\n```ruby\nrequire \"git_validation/task\"\n\nGitValidation::Task.new(:\"git-validation\") do |t|\n  t.from = \"74a6c20fc4d3\"\nend\n```\n\nAnd more complete:\n\n```ruby\nrequire \"git_validation/task\"\n\nGitValidation::Task.new(:\"git-validation\") do |t|\n  t.from  = \"74a6c20fc4d3\"\n  t.run   = \"DCO,message_regexp\"\n  t.quiet = ENV[\"CI\"] != \"true\"\nend\n```\n\n## CI\n\nIf the `TRAVIS_COMMIT_RANGE` environment variable is set, then this value will\nbe used for the `-range` flag. Thus, any value from the `from` option will be\nignored in this context.\n\n## Contributing\n\nRead the [CONTRIBUTING.md](./CONTRIBUTING.md) file.\n\n## [Changelog](https://pbs.twimg.com/media/DJDYCcLXcAA_eIo?format=jpg\u0026name=small)\n\nRead the [CHANGELOG.md](./CHANGELOG.md) file.\n\n## License\n\nThis project is based on work I did for the\n[Portus](https://github.com/SUSE/Portus) project. I've extracted my code into a\ngem so it can be also used for other projects that might be interested in this.\n\n```\nCopyright (C) 2020-2021 Miquel Sabaté Solà \u003cmikisabate@gmail.com\u003e\n\ngit_validation_task is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\ngit_validation_task is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with git_validation_task.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmssola%2Fgit_validation_task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmssola%2Fgit_validation_task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmssola%2Fgit_validation_task/lists"}