{"id":21678438,"url":"https://github.com/petervanderdoes/general-hooks","last_synced_at":"2025-03-20T09:50:06.577Z","repository":{"id":13328485,"uuid":"16015377","full_name":"petervanderdoes/general-hooks","owner":"petervanderdoes","description":"General hook to be used with git flow AVH","archived":false,"fork":false,"pushed_at":"2017-05-04T13:53:48.000Z","size":54,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-01-25T10:41:13.183Z","etag":null,"topics":["git","git-flow","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petervanderdoes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-18T00:07:24.000Z","updated_at":"2017-04-18T00:20:43.000Z","dependencies_parsed_at":"2022-09-23T11:50:31.232Z","dependency_job_id":null,"html_url":"https://github.com/petervanderdoes/general-hooks","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petervanderdoes%2Fgeneral-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petervanderdoes%2Fgeneral-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petervanderdoes%2Fgeneral-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petervanderdoes%2Fgeneral-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petervanderdoes","download_url":"https://codeload.github.com/petervanderdoes/general-hooks/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244591502,"owners_count":20477708,"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":["git","git-flow","shell"],"created_at":"2024-11-25T14:34:23.676Z","updated_at":"2025-03-20T09:50:06.553Z","avatar_url":"https://github.com/petervanderdoes.png","language":"Shell","readme":"[license]: /LICENSE\n[license-image]: https://img.shields.io/github/license/petervanderdoes/general-hooks.svg?style=flat-square\n[license-url]: /LICENSE\n# General development git hooks\n[![license][license-image]][license-url]\n![GitHub release](https://img.shields.io/github/release/petervanderdoes/general-hooks.svg?style=flat-square)\n\nThis is a collection of git hooks to be used in conjunction with git-flow AVH\nedition.\n\nIt also has some standard git hooks that were originally created by [Sitebase](https://github.com/Sitebase/git-hooks).\nI just adjusted their code to make it work for me.\n\nThese hooks are used by me for development in general.\n\n## Installation\n* Clone the repository\n* Install using `make`, by default the software will be installed\nin `/opt/general-hooks`.\n* Copy or link the /opt/general-hooks to .git/hooks directory in your git repository\n* Copy the file hooks_config.sample to the .git directory, naming it hooks_config.\n* Modify the hooks_config file as needed.\n\n## Requirements\n* git-flow AVH edition\n* A changelog file as described below.\n* Bash shell script.\n* Use the [Semantic Versioning 2.0.0](http://semver.org/) specification.\n\n## Information\n\n* When you start a release you can omit the version number. The filter will grep\n  the version set in the stable info of the master branch and increase the patch level.\n* You can't commit on a master branch.\n* You can't commit files with merge markers.\n* Commit messages shorter than 8 are not allowed.\n\n## hooks_config file\nThis file has the function for updating the version number in your project.\n\n* If you keep track of your version somewhere else than the changelog file, you need to add the changing of the version to the `_update_version` function.\n* There is no need to change the version for the production tag in this file. This\n  will be taking care of when you finish a release or hotfix.\n\n## Changelog file\nYou can change the name of the changelog in the hooks_config file, default it\nlooks for CHANGELOG.md\n\nThe changelog file set up is as follows\n```\n# Changelog\n\n### 0.0.0\n* Start of the changelog\n```\n\nAfter you added another version you can edit or remove the 0.0.0 entry\n\n## Pre Commit modules\n\nThere are several pre commit modules included which you can activate by adding them to the variable `PRE_COMMIT_MODULES` in the `hooks_config` file.\n\nIncluded modules:\n- prevent-master-commit.sh  \nPrevent committing on master branch.\n- prevent-merge-marker-commits.sh  \nPrevent committing files containing merge markers.\n- python-flake8.sh  \nPrevent committing files that cause a flake8 error.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetervanderdoes%2Fgeneral-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetervanderdoes%2Fgeneral-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetervanderdoes%2Fgeneral-hooks/lists"}