Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: ci update #1394

Merged
merged 5 commits into from
Feb 9, 2025
Merged

refactor: ci update #1394

merged 5 commits into from
Feb 9, 2025

Conversation

lss233
Copy link
Owner

@lss233 lss233 commented Feb 9, 2025

Summary by Sourcery

更新 CI 工作流以包含额外的分支,重命名构件,并更新依赖项。

新特性:

  • 引入 Windows 快速入门脚本。

增强:

  • 在 Windows 快速入门工作流中将 go-cqhttp 替换为 kirara-ai。

CI:

  • 在 Windows 快速入门工作流中添加 "master"、"dev" 和 "refactoring-v3-mvp" 分支。
  • 将 Windows 快速入门工作流构件从 "quickstart-windows-go-cqhttp-amd64.zip" 重命名为 "quickstart-windows-kirara-ai-amd64.zip"。
  • 在 Docker 最新版本和标签工作流中,将 Docker 镜像标签从 "lss233/chatgpt-mirai-qq-bot" 更新为 "lss233/kirara-agent-framework"。

测试:

  • 移除 go-cqhttp 相关文件和配置。
Original summary in English

Summary by Sourcery

Update CI workflows to include additional branches, rename artifacts, and update dependencies.

New Features:

  • Introduce Windows quickstart scripts.

Enhancements:

  • Replace go-cqhttp with kirara-ai in the Windows quickstart workflow.

CI:

  • Add "master", "dev", and "refactoring-v3-mvp" branches to the Windows quickstart workflow.
  • Rename Windows quickstart workflow artifact from "quickstart-windows-go-cqhttp-amd64.zip" to "quickstart-windows-kirara-ai-amd64.zip".
  • Update Docker image tags in Docker latest and tag workflows from "lss233/chatgpt-mirai-qq-bot" to "lss233/kirara-agent-framework".

Tests:

  • Remove go-cqhttp related files and configurations.

Copy link
Contributor

sourcery-ai bot commented Feb 9, 2025

Here's the translation to Chinese:

审阅者指南 by Sourcery

此拉取请求重构了 CI/CD 配置,以更新和简化 Windows 快速入门和 Docker 工作流。更改包括重命名工作流、调整分支触发器、切换文件夹名称和制品名称从 go-cqhttp/chatgpt-mirai-qq-bot 到 kirara_ai/kirara-agent-framework,并清理过时的配置文件和脚本。

未生成图表,因为更改看起来简单,不需要可视化表示。

文件级更改

更改 详情 文件
重构 Windows 快速入门 CI 工作流
  • 将工作流从 'Windows Quickstart Dev (go-cqhttp)' 重命名为 'Windows Quickstart'。
  • 更新分支触发器以包括 master、dev 和 refactoring-v3-mvp 的推送和拉取请求事件。
  • 替换 go-cqhttp 可执行文件下载,使用对应的 kirara_ai 相关文件夹更新。
  • 在目录创建和文件复制步骤中,将文件夹名称从 'chatgpt' 更改为 'kirara_ai'。
  • 将制品命名从 quickstart-windows-go-cqhttp-amd64.zip 更新为 quickstart-windows-kirara-ai-amd64.zip。
.github/workflows/quickstart-windows-dev-gocqhttp.yml
更新 Docker 工作流的镜像标记和分支目标
  • 在 docker-latest 工作流中将分支触发器从 'browser-version' 更改为 'master'。
  • 将 Docker 镜像标记从 'lss233/chatgpt-mirai-qq-bot:browser-version' 更新为 'lss233/kirara-agent-framework:latest'。
  • 修改 Docker 标记工作流以使用新的 kirara-agent-framework 标记构建镜像。
.github/workflows/docker-latest.yml
.github/workflows/docker-tag.yml
删除过时的 go-cqhttp 和 mirai 配置及文件
  • 删除与 go-cqhttp 相关的配置文件和文件夹,包括 config.example.go-cqhttp.cfg、config.yml、device.json 和对应的脚本文件。
  • 删除不再使用的 mirai 相关工作流和脚本文件。
.github/quickstarts/windows/config.example.go-cqhttp.cfg
.github/quickstarts/windows/go-cqhttp/config.yml
.github/quickstarts/windows/go-cqhttp/device.json
.github/quickstarts/windows/go-cqhttp/scripts/初始化.cmd
.github/quickstarts/windows/go-cqhttp/scripts/ChatGPT.cmd
.github/quickstarts/windows/go-cqhttp/scripts/go-cqhttp.cmd
.github/quickstarts/windows/mirai-http-api-settings.yml
.github/quickstarts/windows/mirai/scripts/初始化.cmd
.github/quickstarts/windows/mirai/scripts/ChatGPT.cmd
.github/quickstarts/windows/mirai/scripts/Mirai.cmd
.github/workflows/docker-dev.yml
.github/workflows/quickstart-windows-dev-mirai.yaml
.github/workflows/quickstart-windows-gocqhttp.yml
.github/workflows/quickstart-windows-mirai.yml

提示和命令

与 Sourcery 交互

  • 触发新审阅: 在拉取请求中评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审阅评论。
  • 从审阅评论生成 GitHub 问题: 通过回复审阅评论,要求 Sourcery 创建一个问题。您也可以用 @sourcery-ai issue 回复审阅评论来创建问题。
  • 生成拉取请求标题: 在拉取请求标题的任何位置写 @sourcery-ai 以随时生成标题。您也可以在拉取请求中评论 @sourcery-ai title 以随时(重新)生成标题。
  • 生成拉取请求摘要: 在拉取请求正文的任何位置写 @sourcery-ai summary 以在您想要的确切位置生成 PR 摘要。您也可以在拉取请求中评论 @sourcery-ai summary 以随时(重新)生成摘要。
  • 生成审阅者指南: 在拉取请求中评论 @sourcery-ai guide 以随时(重新)生成审阅者指南。
  • 解决所有 Sourcery 评论: 在拉取请求中评论 @sourcery-ai resolve 以解决所有 Sourcery 评论。如果您已经处理了所有评论并且不想再看到它们,这很有用。
  • 取消所有 Sourcery 审阅: 在拉取请求中评论 @sourcery-ai dismiss 以取消所有现有的 Sourcery 审阅。特别适用于想要重新开始审阅的情况 - 别忘了评论 @sourcery-ai review 以触发新的审阅!
  • 为问题生成行动计划: 在问题中评论 @sourcery-ai plan 以为其生成行动计划。

自定义您的体验

访问您的仪表板以:

  • 启用或禁用审阅功能,如 Sourcery 生成的拉取请求摘要、审阅者指南等。
  • 更改审阅语言。
  • 添加、删除或编辑自定义审阅说明。
  • 调整其他审阅设置。

获取帮助

Original review guide in English

Reviewer's Guide by Sourcery

This pull request refactors the CI/CD configuration to update and streamline the Windows quickstart and Docker workflows. The changes include renaming workflows, adjusting branch triggers, switching folder names and artifact names from go-cqhttp/chatgpt-mirai-qq-bot to kirara_ai/kirara-agent-framework, and cleaning up deprecated configuration files and scripts.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Refactored Windows quickstart CI workflow
  • Renamed the workflow from 'Windows Quickstart Dev (go-cqhttp)' to 'Windows Quickstart'.
  • Updated branch triggers to include master, dev, and refactoring-v3-mvp for push and pull_request events.
  • Replaced go-cqhttp executable download with corresponding update to use kirara_ai related folders.
  • Changed folder names from 'chatgpt' to 'kirara_ai' in directory creation and file copy steps.
  • Updated artifact naming from quickstart-windows-go-cqhttp-amd64.zip to quickstart-windows-kirara-ai-amd64.zip.
.github/workflows/quickstart-windows-dev-gocqhttp.yml
Updated Docker workflows for image tagging and branch targeting
  • Changed branch trigger from 'browser-version' to 'master' in the docker-latest workflow.
  • Updated Docker image tag from 'lss233/chatgpt-mirai-qq-bot:browser-version' to 'lss233/kirara-agent-framework:latest'.
  • Modified Docker tag workflow to build images with the new kirara-agent-framework tag.
.github/workflows/docker-latest.yml
.github/workflows/docker-tag.yml
Removed deprecated go-cqhttp and mirai configurations and files
  • Removed configuration files and folders related to go-cqhttp including config.example.go-cqhttp.cfg, config.yml, device.json, and corresponding script files.
  • Deleted mirai-related workflow and script files that were no longer used.
.github/quickstarts/windows/config.example.go-cqhttp.cfg
.github/quickstarts/windows/go-cqhttp/config.yml
.github/quickstarts/windows/go-cqhttp/device.json
.github/quickstarts/windows/go-cqhttp/scripts/初始化.cmd
.github/quickstarts/windows/go-cqhttp/scripts/ChatGPT.cmd
.github/quickstarts/windows/go-cqhttp/scripts/go-cqhttp.cmd
.github/quickstarts/windows/mirai-http-api-settings.yml
.github/quickstarts/windows/mirai/scripts/初始化.cmd
.github/quickstarts/windows/mirai/scripts/ChatGPT.cmd
.github/quickstarts/windows/mirai/scripts/Mirai.cmd
.github/workflows/docker-dev.yml
.github/workflows/quickstart-windows-dev-mirai.yaml
.github/workflows/quickstart-windows-gocqhttp.yml
.github/workflows/quickstart-windows-mirai.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lss233 - 我已经审查了你的更改 - 以下是一些反馈:

整体评论

  • 仔细检查所有与已移除的 go-cqhttp 资源相关的引用和文件操作是否intentionally被 kirara_ai 替换。
  • 考虑跨工作流程集中分支过滤器配置,以简化未来的更新。
以下是我在审查期间查看的内容
  • 🟢 一般问题:一切看起来都很好
  • 🟢 安全性:一切看起来都很好
  • 🟢 测试:一切看起来都很好
  • 🟢 复杂性:一切看起来都很好
  • 🟢 文档:一切看起来都很好

Sourcery 对开源是免费的 - 如果你喜欢我们的评论,请考虑分享它们 ✨
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我将使用这些反馈来改进你的评论。
Original comment in English

Hey @lss233 - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Double-check that all references and file operations tied to the removed go-cqhttp assets are intentionally replaced by kirara_ai.
  • Consider centralizing the branch filter configuration across workflows to simplify future updates.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@lss233 lss233 force-pushed the feature/ci_auto_packaging branch from 78a1a81 to 8497d5d Compare February 9, 2025 15:48
@lss233 lss233 force-pushed the feature/ci_auto_packaging branch 6 times, most recently from b50617e to 3c2351b Compare February 9, 2025 16:43
@lss233 lss233 force-pushed the feature/ci_auto_packaging branch from 3c2351b to 572a642 Compare February 9, 2025 16:47
@lss233 lss233 merged commit c2c6f41 into refactoring-v3-mvp Feb 9, 2025
2 checks passed
@lss233 lss233 deleted the feature/ci_auto_packaging branch February 16, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant