-
Notifications
You must be signed in to change notification settings - Fork 8
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
Build with cake #11
base: main
Are you sure you want to change the base?
Build with cake #11
Conversation
审阅者指南 by Sourcery此拉取请求引入了使用 Cake 和 PowerShell 脚本的新构建流程,更新了 GitHub Actions 工作流,并修改了 BuildInfo 类以包含动态版本控制。同时简化了 README 中的开发设置说明。 显示 BuildInfo 变更的类图classDiagram
class BuildInfo {
+string Name
+string Description
+string Author
+string Company
-string Version
+string GitVersion
+string BuildDate
+string DownloadLink
}
note for BuildInfo "版本现在是自动生成的
增加了 GitVersion 和 BuildDate"
新构建流程的流程图graph TD
A[开始构建] --> B[还原 .NET 工具]
B --> C[运行 Cake 脚本]
C --> D[获取 Git 版本信息]
D --> E[生成 BuildInfo.g.cs]
E --> F[还原依赖项]
F --> G[构建解决方案]
G --> H[输出 AquaMai.dll]
文件级变更
提示和命令与 Sourcery 交互
自定义您的体验访问您的仪表板以:
获取帮助Original review guide in EnglishReviewer's Guide by SourceryThis pull request introduces a new build process using Cake and PowerShell scripts, updates the GitHub Actions workflow, and modifies the BuildInfo class to include dynamic versioning. It also simplifies the development setup instructions in the README. Class diagram showing BuildInfo changesclassDiagram
class BuildInfo {
+string Name
+string Description
+string Author
+string Company
-string Version
+string GitVersion
+string BuildDate
+string DownloadLink
}
note for BuildInfo "Version is now auto-generated
Added GitVersion and BuildDate"
Flow diagram of the new build processgraph TD
A[Start Build] --> B[Restore .NET Tools]
B --> C[Run Cake Script]
C --> D[Get Git Version Info]
D --> E[Generate BuildInfo.g.cs]
E --> F[Restore Dependencies]
F --> G[Build Solution]
G --> H[Output AquaMai.dll]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嘿 @clansty - 我已经审查了你的更改,看起来很棒!
以下是我在审查期间查看的内容
- 🟡 一般性问题:发现1个问题
- 🟢 安全性:一切看起来都很好
- 🟢 测试:一切看起来都很好
- 🟢 复杂性:一切看起来都很好
- 🟢 文档:一切看起来都很好
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我将使用这些反馈来改进你的评论。
Original comment in English
Hey @clansty - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Task("PreBuild") | ||
.Does(() => | ||
{ | ||
var gitDescribe = GitDescribe(".", GitDescribeStrategy.Tags).Substring(1); // 获取 git describe 的输出 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
问题: 为 git describe 返回没有标签的情况添加错误处理
Substring(1) 调用可能会在仓库没有标签或 git describe 返回空字符串时抛出异常。请考虑添加适当的错误处理。
Original comment in English
issue: Add error handling for the case where git describe returns no tags
The Substring(1) call could throw an exception if the repository has no tags or if git describe returns an empty string. Consider adding appropriate error handling.
在 tag 上 build 也测了 |
我在想要不要把现在的 AquaMai.Build 也合并进去
Summary by Sourcery
将 Cake 构建自动化集成到项目中,更新构建流程和 CI 工作流以使用新的脚本。修改 README 以指导开发者使用新的构建系统。
构建:
CI:
文档:
Original summary in English
Summary by Sourcery
Integrate Cake build automation into the project, updating the build process and CI workflow to utilize the new script. Modify the README to guide developers on using the new build system.
Build:
CI:
Documentation: