{"id":30127748,"url":"https://github.com/sourceallies/commit-collective","last_synced_at":"2025-08-10T17:10:16.513Z","repository":{"id":43724030,"uuid":"412486507","full_name":"sourceallies/commit-collective","owner":"sourceallies","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-21T16:53:22.000Z","size":162,"stargazers_count":0,"open_issues_count":23,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-14T22:23:10.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourceallies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2021-10-01T13:54:37.000Z","updated_at":"2021-10-13T17:22:49.000Z","dependencies_parsed_at":"2022-08-22T13:01:01.339Z","dependency_job_id":null,"html_url":"https://github.com/sourceallies/commit-collective","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sourceallies/commit-collective","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceallies%2Fcommit-collective","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceallies%2Fcommit-collective/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceallies%2Fcommit-collective/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceallies%2Fcommit-collective/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourceallies","download_url":"https://codeload.github.com/sourceallies/commit-collective/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceallies%2Fcommit-collective/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269756394,"owners_count":24470566,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-10T17:10:10.484Z","updated_at":"2025-08-10T17:10:16.498Z","avatar_url":"https://github.com/sourceallies.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build / Test](https://github.com/sourceallies/SA-Git-Hook/actions/workflows/build.yml/badge.svg)](https://github.com/sourceallies/SA-Git-Hook/actions/workflows/build.yml)\n# SA Git Hook\n\nSA Git Hook is a [post commit hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) that sends commit stats to\nlambda that is used to populate a commit stats leaderboard.\n\n## Disclaimer: __Do not use this hook without explicit client approval__\n\nThis hook will send traffic to a url upon each local commit. Security analysis may find that this git metadata could be used to identify repos, partners, file types, and languages. When consulting, __do not use this hook on client computers nor client repos__ without having a conversation and receiving explicit permission.\n\n## Links\n\n[Dashboard](http://git-metrics.sandbox-dev.sourceallies.com)\n\n## Collected Data\n\n### Config\n\n- Username\n- Team name\n\n### Commit Stats\n\n- Number of insertions from a commit\n- Number of deletions from a commit\n- Number of files changed\n- Language of the files changed\n\nExample payload\n\n```json\n{\n  \"username\": \"test username\",\n  \"team_name\": \"team name\",\n  \"insertions\": 13,\n  \"deletions\": 28,\n  \"files_changed\": 3,\n  \"extension\": [\n    \".rs\",\n    \".yaml\"\n  ]\n}\n```\n\n## Recommended Install\n\n### Steps\n1. Grab the binaries for your platform under [Releases](https://github.com/sourceallies/SA-Git-Hook/releases/) zip file\n1. Go into the platform directory (Windows or macOS) by `cd` or `dir` into those directories.\n1. Run the __install__ binary (__.exe__ for Windows)\n\n## Manual Install\n\n### Requirements\n\n- Installed [Rust](https://www.rust-lang.org/tools/install)\n- (Windows only) Install Git Bash\n  - cargo must be in your path\n\n### Steps\n\n__Windows users:__ Do the following in a Git Bash terminal\n\n1. Clone this repo\n1. In the _Hookstaller_ directory, run the __install.sh__ script\n\n    ```bash\n    cd SA-Git-Hook/Hookstaller\n    ./install.sh\n    ```\n\n1. Follow the steps given in the prompt\n\n#### Manual install for a specific repo\n\nCopy the post-commit executable (`/Hookstaller/target/release/post-commit`) to the `.git/hooks` directory of a given repo.\n\n  ```bash\n  cp ./Hookstaller/target/release/post-commit $(YOUR_REPO_NAME)/.git/hooks)\n  ```\n\n## Uninstall\n\n### If installed globally\n\nRun `git config --global --unset core.hooksPath`\n\n### Per repository\n\nRemove the `post-commit` executable in the `.git/hooks/` directory in the repository you would like to remove the hook\nfrom.\n\n## Authors\n\n### Active\n\n- [@SourceBolt](https://github.com/SourceBolt)\n- [@grey-lovelace](https://github.com/grey-lovelace)\n\n### Reserve\n\n- [@AndreasChristianson](https://github.com/AndreasChristianson)\n- [@JDawson98](https://github.com/JDawson98)\n- [@GeneTinderholm](https://github.com/GeneTinderholm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourceallies%2Fcommit-collective","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourceallies%2Fcommit-collective","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourceallies%2Fcommit-collective/lists"}