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

[BUG] task-handler 文件中 git log 格式错误 #5587

Open
1 of 2 tasks
cn-ryh opened this issue May 9, 2024 · 1 comment
Open
1 of 2 tasks

[BUG] task-handler 文件中 git log 格式错误 #5587

cn-ryh opened this issue May 9, 2024 · 1 comment
Labels

Comments

@cn-ryh
Copy link

cn-ryh commented May 9, 2024

请选择:

  • 我已经读过了 F.A.Q.,进行了搜索,但没有得到答案
  • 我正在着手修复这个问题

我遇到了这样的问题

scripts/post-build/commits-info/task-handler.ts 文件中,readCommitsLog 函数获取提交信息时给出了如下的格式说明:

/**
* Format:
*
* >Date
* <AuthorEmail
* <CoAuthorEmail
* <...
* >Date
* <AuthorEmail
* <...
*/

然而我尝试输出 log:console.log(log);,发现实际运行时似乎 Date 前面并没有一个 >,这使得接下来的代码:

const commits = log.trim().slice(1).split("\n>");

在分离各项提交时出现了问题。

我重新查看了部署步骤和我的文件结构,似乎并没有问题。

我确认这个问题可以这样复现

No response

@cn-ryh cn-ryh added the Other Bug / 内容无关的 Bug 内容无关的 bug label May 9, 2024
Copy link

welcome bot commented May 9, 2024

感谢你对 OI Wiki 的关注!记得在 Issue 中表达清楚自己的意思哦~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant