{"id":16287814,"url":"https://github.com/raddessi/salt-git-diff","last_synced_at":"2025-04-09T06:47:05.529Z","repository":{"id":53098166,"uuid":"155292712","full_name":"raddessi/salt-git-diff","owner":"raddessi","description":"See which entries in salt top.sls were affected by last commit","archived":false,"fork":false,"pushed_at":"2024-08-07T23:46:08.000Z","size":16,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T01:24:20.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raddessi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-10-29T23:02:07.000Z","updated_at":"2021-03-10T22:59:03.000Z","dependencies_parsed_at":"2022-08-27T04:12:43.132Z","dependency_job_id":null,"html_url":"https://github.com/raddessi/salt-git-diff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raddessi%2Fsalt-git-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raddessi%2Fsalt-git-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raddessi%2Fsalt-git-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raddessi%2Fsalt-git-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raddessi","download_url":"https://codeload.github.com/raddessi/salt-git-diff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994108,"owners_count":21030049,"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":[],"created_at":"2024-10-10T19:46:24.099Z","updated_at":"2025-04-09T06:47:05.501Z","avatar_url":"https://github.com/raddessi.png","language":"Python","readme":"# Salt git diff\nSee which hosts in top file were affected by latest git commit\n\n# Usage\nNavigate to your salt states or pillars location and run:\n\n    docker run -i -v $(pwd):/mnt/git tomologic/salt-git-diff\n\nDefault output format is YAML. You can get JSON instead:\n\n    docker run -i -v $(pwd):/mnt/git tomologic/salt-git-diff -o json\n\n# Output\nYAML format:\n\n    - '*'\n    - host2.example.com\n    - host3.example.com\n    - '*.subdomain.example.com'\n\nJSON format (-o json):\n\n    [\n        \"*\",\n        \"host2.example.com\",\n        \"host3.example.com\",\n        \"*.subdomain.example.com\"\n    ]\n\nPlain text format (-o text)\n\n    *\n    host2.example.com\n    host3.example.com\n    *.subdomain.example.com\n\n# Asterisk substitution\n\n    docker run -i -v $(pwd):/mnt/git tomologic/salt-git-diff -o text --replace-asterisks=something\n\n    something\n    host2.example.com\n    host3.example.com\n    something.subdomain.example.com\n    \n# Limitations\n* Skips any selector with \":\" in it in top file, like \"os:CentOS\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraddessi%2Fsalt-git-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraddessi%2Fsalt-git-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraddessi%2Fsalt-git-diff/lists"}