
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/drallgood/changelog-generator/actions/workflows/build.yml/badge.svg](https://github.com/drallgood/changelog-generator/actions/workflows/build.yml) https://github.com/drallgood/changelog-generator/actions/workflows/intellij_build.yml/badge.svg](https://github.com/drallgood/changelog-generator/actions/workflows/intellij_build.yml)
Generate changelogs (or release notes) in complex, high-frequency projects with ease.
This project was inspired by https://about.gitlab.com/blog/2018/07/03/solving-gitlabs-changelog-conflict-crisis/ of creating Changelogs.
The format is based on Keep a Changelog
For simple projects, a simple CHANGELOG.md file or even git commit messages are sufficient to document all significant changes.
For more complex, multi repository projects, centralized changelogs or release notes are often instituted (e.g in a separate tool or repository).
However, the more complex a project becomes, the less effective these approaches are.
Here are a few reasons:
CHANGELOG.md) cause merge conflicts if there are multiple people working on the same file.That's where Gitlab's approach is great. Each change is encapsulated in a single (or multiple) files. Changelogs/release notes can be generated out of them
Changelogs are comprehensive lists of the new features, enhancements, bugs, and other changes in reverse chronological order. Changelogs usually link to specific issues or feature requests within a change management system and also may include links to the developer who supplied the change.
Release notes are a set of documents delivered to customers with the intent to provide a verbose description of the release of a new version of a product or service. These artifacts are generally created by a marketing team or product owner and contain feature summaries, bug fixes, use cases, and other support material. The release notes are used as a quick guide to what changed outside of the user documentation. Release notes can be derived from Changlogs.
The process can be described in a few simple steps:
/changelogs/ on his branch, e.g. /changelogs/MyTicket-123.jsonCHANGELOG.md file.Each entry has a predefined type:
security - A change done due to enhance securityremoved - Functionality or code was removedfixed - A bug was fixeddeprecated - Functionality or code was deprecatedchanged - Functionality was adaptedperformance - A change done to improve performanceadded - New functionality addedother - Anything elseEach change is documented in a convenient JSON file. A file can contain multiple entries, e.g. to add, deprecate and remove at the same time.
Example:
[ { "title": "Descriptive text describing what was added", "reference": "TICKET-XXXXXX", "type": "added" }, { "title": "Fixed some flaw that would have broken everything when someone called Beetlejuice three times.", "reference": "TICKET-XXXXXX", "type": "fixed" }, ]
This project provides two ways of generating Changelogs out of the provided files:
See generate.gradle (TBD)
The CLI is swift based and should run on all systems currently supported by Swift (e.g. Linux, macOS, Windows). For convenience we provide a docker container.
It uses a config file to define some common settings. You can either provide the config file location directly to the cli using the -c <config-file> option, or provide a default file by placing it at ~/.config/changelog-generator.json:
{ "gitUrl": "https://gitlab.com", "gitAccessToken": "", "gitExecutablePath": "/usr/bin/git", "gitConnectorType": "Gitlab", "ticketBaseUrl":"https://jira.com/browse/" }
The CLI has a help section built-in
USAGE: changelog-generator [--config-file <config-file>] [--debug] <subcommand> OPTIONS: -c, --config-file <config-file> --debug Enable debug logging -h, --help Show help information. SUBCOMMANDS: create Create a changelog JSON file check Check changelogs for a (set of) project(s) generate Generate Changelogs for a project generate-all Generate Changelogs for all projects clear Clear changelogs for a (set of) project(s), e.g. to set up for a new version See 'changelog-generator help <subcommand>' for detailed help.
Connectors
In order to be able to create merge requests, we're providing connectors for different git services.
Currently supported:
Using docker
To run the cli:
docker run -ti --rm drallgood/changelog-generator:latest
For example:
docker run -ti --rm \ -v ~/.gitconfig:/root/.gitconfig \ -v ~/.ssh/known_hosts:/root/.ssh/known_hosts \ -v ~/.ssh/id_rsa:/root/.ssh/id_rsa \ -v ~/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub \ -v "$PWD"/projects.json:/projects.json \ -v ~/.config/changelog-generator:/config.json \ drallgood/changelog-generator:latest generate-all -p /projects.json -c /config.json -m --push -b master 1.0.0
From source
You need to have Swift installed to complile this.
Run
swift build -c release ln -s $PWD/.build/release/changelog-generator /usr/local/bin/
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务