feat: add contributor author #14
Reference in New Issue
Block a user
Delete Branch "Jvlegod/go2spec:feat/spdx-file-contributor-author"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
本次更改是添加了提交签名的选项
GO2SPEC_AUTHOR配置签名, 内容为姓名 <邮箱>-author选项覆盖环境变量的签名-author和GO2SPEC_AUTHOR为空则不添加签名手动演示如下.
假设已经构建完了工程, 并安装.
以 github.com/xeipuuv/gojsonschema 为例.
pack, 不设置 author, 不生成 contributor
pack, 使用 GO2SPEC_AUTHOR
pack, -author 优先于环境变量
pack, author 格式错误会报错
update, 不设置 author, 正常更新但不补 contributor
update, 使用 GO2SPEC_AUTHOR 追加 contributor
update, 同 author 不重复
update, 不同 author 追加新署名
update, -author 优先于环境变量
Feat/spdx file contributor authorto feat: add contributor author"SPDX-FileContributor" 应该只有人类进行手动更改的情况下才加上,直接使用的话不应该加上这个;如果这样看的话,这也意味着不应该由机器生成?🤔
确实, 如果这么来看, 这个 feature 确实和工具的初衷相违背了
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.