{"id":30874667,"url":"https://github.com/jschwind/phpcli-commits","last_synced_at":"2025-09-08T01:05:53.451Z","repository":{"id":310658833,"uuid":"1040674154","full_name":"jschwind/phpcli-commits","owner":"jschwind","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-19T12:19:10.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-19T14:21:08.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/jschwind.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-19T10:38:18.000Z","updated_at":"2025-08-19T12:19:13.000Z","dependencies_parsed_at":"2025-08-19T14:21:11.240Z","dependency_job_id":"2ccff2dc-bc8e-4fb5-86d8-ce48ae710132","html_url":"https://github.com/jschwind/phpcli-commits","commit_stats":null,"previous_names":["jschwind/phpcli-commits"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jschwind/phpcli-commits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwind%2Fphpcli-commits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwind%2Fphpcli-commits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwind%2Fphpcli-commits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwind%2Fphpcli-commits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jschwind","download_url":"https://codeload.github.com/jschwind/phpcli-commits/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jschwind%2Fphpcli-commits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274117631,"owners_count":25225128,"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-09-07T02:00:09.463Z","response_time":67,"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-09-08T01:05:51.683Z","updated_at":"2025-09-08T01:05:53.427Z","avatar_url":"https://github.com/jschwind.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPCLI-Commits\n\nGenerate commit range reports and release notes for GitHub and GitLab repositories.\n\n## Installation\n\n```shell\ngit clone https://github.com/jschwind/phpcli-commits.git\ncd phpcli-commits\nchmod +x commits.sh\n```\n\nAdd `commits.sh` to your PATH or create a symlink, e.g., on Arch/Manjaro Linux via `~/.bashrc`:\n\n```shell\nsudo ln -s $(pwd)/commits.sh /usr/local/bin/commits\n```\n\n## Usage\n\n```shell\ncommits [OUTPUT_FILE] [--config=CONFIG_FILE]\n```\n\nGenerate commit range reports with Git repository parameters.\n\n### Options\n* `OUTPUT_FILE`: Optional. Output file name (default: `commits.txt`).\n* `--config`: Optional. Configuration file path (default: `git.json`).\n\n## Configuration\n\nCreate a `git.json` file with the following structure:\n\n```json\n{\n  \"provider\": \"github\",\n  \"owner\": \"username\",\n  \"repo\": \"repository-name\",\n  \"fromTag\": \"v1.0.0\",\n  \"toTag\": \"v1.1.0\",\n  \"github_token\": \"ghp_your_token_here\",\n  \"gitlab_token\": \"glpat_your_token_here\",\n  \"gitlab_host\": \"https://gitlab.example.com\",\n  \"stepTag\": false\n}\n```\n\n### Configuration Parameters\n* `provider`: Repository provider (`github` or `gitlab`).\n* `owner`: Repository owner/organization name.\n* `repo`: Repository name.\n* `fromTag`: Starting tag for comparison (supports keywords: `first` for oldest tag, or version prefix like `1.0`).\n* `toTag`: Ending tag for comparison (supports keywords: `current`/`latest` for newest tag, or version prefix like `1.1`).\n* `github_token`: Optional. GitHub personal access token.\n* `gitlab_token`: Optional. GitLab personal access token.\n* `gitlab_host`: Optional. GitLab host URL for self-hosted instances.\n* `stepTag`: Optional. Generate step-by-step reports between consecutive tags (default: `false`).\n\n### Tag Keywords\n* `fromTag`:\n    * `\"first\"` → First (oldest) tag in repository\n    * `\"\"` → First (oldest) tag in repository\n    * `\"1.0\"` → Earliest tag matching version prefix\n* `toTag`:\n    * `\"current\"` → Latest (newest) tag in repository\n    * `\"latest\"` → Latest (newest) tag in repository\n    * `\"\"` → Latest (newest) tag in repository\n    * `\"1.1\"` → Latest tag matching version prefix\n\n## Examples\n\n### Basic Usage\n```shell\ncommits\ncommits changelog.txt\ncommits release-notes.txt --config=production.json\n```\n\n### Tag Keywords Examples\n```json\n{\n  \"fromTag\": \"first\",\n  \"toTag\": \"current\"\n}\n```\n\n```json\n{\n  \"fromTag\": \"\",\n  \"toTag\": \"latest\"\n}\n```\n\n```json\n{\n  \"fromTag\": \"1.0\",\n  \"toTag\": \"2.0\"\n}\n```\n\n### Step Mode Example\n\nSet `stepTag: true` in configuration to generate multiple files for consecutive tag ranges:\n\n```shell\ncommits multi-release\n```\n\nGenerates:\n- `multi-release.v1.0.0..v1.1.0.txt`\n- `multi-release.v1.1.0..v1.2.0.txt`\n- `multi-release.v1.2.0..v1.3.0.txt`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschwind%2Fphpcli-commits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjschwind%2Fphpcli-commits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjschwind%2Fphpcli-commits/lists"}