-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: support validate requires version for theme #3150
Conversation
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.
/lgtm
可以使用 halo-dev/console#826 配合测试。
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
) #### What type of PR is this? /kind feature #### What this PR does / why we need it: 修改主题的 `spec.require` 字段为 `spec.requires`,以及支持显示错误信息。适配:halo-dev/halo#3150 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#3088 #### Screenshots: <img width="1692" alt="image" src="https://user-images.githubusercontent.com/21301288/212800478-0fe53ae8-4e31-4810-89aa-4b06d1b700fb.png"> <img width="1056" alt="image" src="https://user-images.githubusercontent.com/21301288/212800550-7edd7c0a-564c-4df4-baee-b3ffe6b3352d.png"> #### Special notes for your reviewer: 测试方式: 1. Halo 切换到 halo-dev/halo#3150 分支。 2. Console 需要 `pnpm install`。 3. 修改主题的 `spec.requires`,根据 halo-dev/halo#3150 中的测试条件修改这个值。 4. 检查是否可以显示异常版本信息。 #### Does this PR introduce a user-facing change? ```release-note Console 端支持显示主题的版本异常信息 ```
…alo-dev/console#826) #### What type of PR is this? /kind feature #### What this PR does / why we need it: 修改主题的 `spec.require` 字段为 `spec.requires`,以及支持显示错误信息。适配:halo-dev#3150 #### Which issue(s) this PR fixes: Fixes halo-dev#3088 #### Screenshots: <img width="1692" alt="image" src="https://user-images.githubusercontent.com/21301288/212800478-0fe53ae8-4e31-4810-89aa-4b06d1b700fb.png"> <img width="1056" alt="image" src="https://user-images.githubusercontent.com/21301288/212800550-7edd7c0a-564c-4df4-baee-b3ffe6b3352d.png"> #### Special notes for your reviewer: 测试方式: 1. Halo 切换到 halo-dev#3150 分支。 2. Console 需要 `pnpm install`。 3. 修改主题的 `spec.requires`,根据 halo-dev#3150 中的测试条件修改这个值。 4. 检查是否可以显示异常版本信息。 #### Does this PR introduce a user-facing change? ```release-note Console 端支持显示主题的版本异常信息 ```
What type of PR is this?
/kind feature
/milestone 2.2.x
/kind api-change
What this PR does / why we need it:
主题支持 requires 版本验证
Console 需要做适配
综上,console 应该需要:
Halo 版本要求
的字段取值,从 require -> requiresWhich issue(s) this PR fixes:
Fixes #3088
Special notes for your reviewer:
how to test it?
/cc @halo-dev/sig-halo
Does this PR introduce a user-facing change?