{"id":18840611,"url":"https://github.com/bitexpert/captainhook-rejectpush","last_synced_at":"2025-04-14T07:07:25.482Z","repository":{"id":34177724,"uuid":"171103228","full_name":"bitExpert/captainhook-rejectpush","owner":"bitExpert","description":"Captain Hook Plugin to reject a remote push when certain commit Ids are found in history","archived":false,"fork":false,"pushed_at":"2024-04-06T09:10:06.000Z","size":244,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T07:07:19.002Z","etag":null,"topics":["captainhook","git","githook","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitExpert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-17T09:20:42.000Z","updated_at":"2022-10-30T16:58:54.000Z","dependencies_parsed_at":"2024-11-08T02:48:30.615Z","dependency_job_id":"9666e449-5e8e-4698-9b32-1dc2cd45c553","html_url":"https://github.com/bitExpert/captainhook-rejectpush","commit_stats":{"total_commits":92,"total_committers":4,"mean_commits":23.0,"dds":0.3913043478260869,"last_synced_commit":"10c95257eb2446b700f1fef96bbce654790ead15"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fcaptainhook-rejectpush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fcaptainhook-rejectpush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fcaptainhook-rejectpush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fcaptainhook-rejectpush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitExpert","download_url":"https://codeload.github.com/bitExpert/captainhook-rejectpush/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837280,"owners_count":21169374,"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":["captainhook","git","githook","php"],"created_at":"2024-11-08T02:48:19.078Z","updated_at":"2025-04-14T07:07:25.455Z","avatar_url":"https://github.com/bitExpert.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitexpert/captainhook-rejectpush\n\nThis package provides an action for [Captain Hook](https://github.com/CaptainHookPhp/captainhook) \nwhich will reject a push to a remote when configured commit Ids are found in the Git history.\n\n[![Build Status](https://github.com/bitExpert/captainhook-rejectpush/workflows/ci/badge.svg?branch=master)](https://github.com/bitExpert/captainhook-rejectpush/actions)\n[![Coverage Status](https://coveralls.io/repos/github/bitExpert/captainhook-rejectpush/badge.svg?branch=master)](https://coveralls.io/github/bitExpert/captainhook-rejectpush?branch=master)\n[![Mastodon Follow](https://img.shields.io/mastodon/follow/109408681246972700?domain=https://rheinneckar.social)](https://rheinneckar.social/@bitexpert)\n\n## Installation\n\nThe preferred way of installing `bitexpert/captainhook-rejectpush` is through Composer.\nYou can add `bitexpert/captainhook-rejectpush` as a dev dependency, as follows:\n\n```\ncomposer.phar require --dev bitexpert/captainhook-rejectpush\n```\n\n## Usage\n\nAdd the following code to your `captainhook.json` configuration file:\n\n```\n{\n  \"pre-push\": {\n    \"enabled\": true,\n    \"actions\": [\n      {\n        \"action\": \"\\\\bitExpert\\\\CaptainHook\\\\RejectPush\\\\RejectPushAction\",\n        \"options\": {\n            \"my-origin\": [\n                \"cc9d54f\"\n            ],\n            \"other-remote\": [\n                \"41ce954\"\n            ]\n        }\n      }\n    ]\n  }\n}\n```\n\n[Captain Hook](https://github.com/CaptainHookPhp/captainhook) will now check\non every push if one of the defined commit Ids is part of the push. If so, it\nwill cancel the push.\n\n## Contribute\n\nPlease feel free to fork and extend existing or add new features and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and adapt the documentation.\n\n## Want To Contribute?\n\nIf you feel that you have something to share, then we’d love to have you.\nCheck out [the contributing guide](CONTRIBUTING.md) to find out how, as well as what we expect from you.\n\n## License\n\nCaptain Hook Reject Push Action is released under the Apache 2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitexpert%2Fcaptainhook-rejectpush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitexpert%2Fcaptainhook-rejectpush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitexpert%2Fcaptainhook-rejectpush/lists"}