update some comments and redundant code

This commit is contained in:
crazywhalecc
2023-01-13 14:20:23 +08:00
parent 7c39a7fe39
commit 54f526b1c6
3 changed files with 3 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ function _zm_setup_loader()
return true;
});
// TODO: 然后加载插件目录的插件
// 这里好像没必要加载插件目录的插件,插件理论上不能在 Master 被加载
// 解析所有注册路径的文件,获取注解
$parser->parse();

View File

@@ -68,6 +68,7 @@ class TextGenerateCommand extends Command
continue;
}
$time = '> 更新时间:' . date('Y-m-d', strtotime($v['published_at']));
// TODO: 匹配用户名 @xxx 和 PR 链接 https://xxx.com添加可点击的访问链接
$line .= '## v' . $v['tag_name'] . "\r\n\r\n" . $time . "\r\n\r\n" . trim(str_replace("## What's Changed", '', $v['body'])) . "\r\n\r\n";
}
$line = str_replace("\r\n", "\n", $line);

View File

@@ -24,7 +24,7 @@ class PluginMeta implements \JsonSerializable
private array $dependencies;
/** @var null|string 插件的根目录 */
private ?string $root_dir = null;
private ?string $root_dir;
/** @var int 插件类型 */
private int $plugin_type;