{"id":18011964,"url":"https://github.com/lwydyby/mr-chglog","last_synced_at":"2026-04-13T20:31:36.082Z","repository":{"id":173818473,"uuid":"651350801","full_name":"lwydyby/mr-chglog","owner":"lwydyby","description":"CHANGELOG generator by gitlab mr request","archived":false,"fork":false,"pushed_at":"2024-01-10T08:26:39.000Z","size":175,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T13:49:49.446Z","etag":null,"topics":["changelog","git","git-chglog","gitlab","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lwydyby.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}},"created_at":"2023-06-09T03:53:38.000Z","updated_at":"2023-07-18T09:30:38.000Z","dependencies_parsed_at":"2024-10-30T03:35:23.774Z","dependency_job_id":null,"html_url":"https://github.com/lwydyby/mr-chglog","commit_stats":null,"previous_names":["lwydyby/mr-chglog"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lwydyby/mr-chglog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwydyby%2Fmr-chglog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwydyby%2Fmr-chglog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwydyby%2Fmr-chglog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwydyby%2Fmr-chglog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwydyby","download_url":"https://codeload.github.com/lwydyby/mr-chglog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwydyby%2Fmr-chglog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["changelog","git","git-chglog","gitlab","go"],"created_at":"2024-10-30T03:13:55.588Z","updated_at":"2026-04-13T20:31:36.058Z","avatar_url":"https://github.com/lwydyby.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/lwydyby/mr-chglog)](https://goreportcard.com/report/github.com/lwydyby/mr-chglog)\n[![Quality](https://github.com/lwydyby/mr-chglog/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/lwydyby/mr-chglog/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/lwydyby/mr-chglog/badge.svg?branch=main)](https://coveralls.io/github/lwydyby/mr-chglog?branch=main)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/lwydyby/mr-chglog/blob/master/LICENSE)\n\n# mr-chglog\n\n## 简介\n\n读取Gitlab的MR title生成中文CHANGELOG\n\n## 安装\n\n```bash\nbash build.sh\n```\n\n## 使用说明\n\n### 初始化\n\n```bash\nmr-chlog --init\n```\n\n### 生成CHANGELOG\n\n```bash\nmr-chlog\n```\n\n### 发送Release通知到飞书群\n\n#### 命令行方式\n```bash\nmr-chlog --bot --app_id xxxx --app_secret xxxxxxx \\\n --chat_id xxxxxxx --bot_title xxxxxxx --config /etc/config/mr_config.yml \\\n --repository-url xxxx --token xxxx {tag}\n```\n\n#### 参数说明\n\n``` bash\nUSAGE:\n  mr-chglog [options] \u003ctag query\u003e\n\n    There are the following specification methods for \u003ctag query\u003e.\n\n    1. \u003cold\u003e..\u003cnew\u003e - MR contained in \u003cold\u003e tags from \u003cnew\u003e.\n    2. \u003cname\u003e..     - MR from the \u003cname\u003e to the latest tag.\n    3. ..\u003cname\u003e     - MR from the oldest tag to \u003cname\u003e.\n    4. \u003cname\u003e       - MR contained in \u003cname\u003e.\n\nOPTIONS:\n  --init                         generate the mr-chglog configuration file in interactive (default: false)\n  --app_id value                 feishu robot app secret\n  --app_secret value             feishu robot app secret\n  --chat_id value                feishu robot send group chat_id,Please use , to separate multiple\n  --bot_title value              feishu robot send release title\n  --path value [ --path value ]  Filter commits by path(s). Can use multiple times.\n  --config value, -c value       specifies a different configuration file to pick up (default: \".chglog/mr_config.yml\")\n  --template value, -t value     specifies a template file to pick up. If not specified, use the one in config\n  --repository-url value         specifies git repo URL. If not specified, use 'repository_url' in config\n  --token value                  specifies git repo token. If not specified, use 'token' in config\n  --output value, -o value       output path and filename for the changelogs. If not specified, output to stdout\n  --next-tag value               treat unreleased commits as specified tags (EXPERIMENTAL)\n  --create-tag value             create tag by CHANGELOG\n  --ai                           use ai create CHANGELOG (default: false)\n  --ai-type value                which ai API to use create CHANGELOG (default: poe)\n  --bot                          push mr-chglog changelog to feishu group (default: false)\n  --help, -h                     show help\n  --version, -v                  print the version\n  \nEXAMPLE:\n\n  $ mr-chglog\n\n    If \u003ctag query\u003e is not specified, it corresponds to all tags.\n    This is the simplest example.\n\n  $ mr-chglog 1.0.0..2.0.0\n\n    The above is a command to generate CHANGELOG including MR of 1.0.0 to 2.0.0.\n\n  $ mr-chglog 1.0.0\n\n    The above is a command to generate CHANGELOG including MR of only 1.0.0.\n\n  $ mr-chglog $(git describe --tags $(git rev-list --tags --max-count=1))\n\n    The above is a command to generate CHANGELOG with the MR included in the latest tag.\n\n  $ mr-chglog --output CHANGELOG.md\n\n    The above is a command to output to CHANGELOG.md instead of standard output.\n\n  $ mr-chglog --config custom/dir/config.yml\n\n    The above is a command that uses a configuration file placed other than \".chglog/config.yml\".\n\n  $ mr-chglog --path path/to/my/component --output CHANGELOG.component.md\n\n    Filter commits by specific paths or files in git and output to a component specific changelog.\n  $ mr-chglog --bot \n    Push mr-chglog Changelog to Feishu Group\n  $ mr-chglog --ai \n    Use ai create CHANGELOG\n\n```\n\n## MR Description约定\n### 数据库变更\n![image](https://github.com/lwydyby/mr-chglog/assets/30611869/5a7b11f7-509a-4cfd-95d8-aa2e1cda8b8e)\n### break变更\n![image](https://github.com/lwydyby/mr-chglog/assets/30611869/a7f2474b-0be7-444b-bdf5-fd7723da8d1a)\n\n\n\n## TODO\n\n- [x] 支持更丰富的模板\n- [x] 支持解析MR的描述,更完善的CHANGELOG\n- [x] 直接将MR Diff发送给Chatgpt(或者其他AI) 生成更准确的CHANGELOG\n- [x] 支持自动生成TAG 并上传CHANGELOG\n\n## Thanks\n[git-chlog](https://github.com/git-chglog/git-chglog)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwydyby%2Fmr-chglog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwydyby%2Fmr-chglog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwydyby%2Fmr-chglog/lists"}