-
Notifications
You must be signed in to change notification settings - Fork 75
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
ci: Add automatic update of spiderpool authors #3506
Conversation
4bffe6d
to
02ff7e8
Compare
Makefile
Outdated
@@ -499,3 +499,10 @@ lint_chart_trivy: | |||
.PHONY: build-chart | |||
build-chart: | |||
@ cd charts ; make | |||
|
|||
update-authors: |
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.
185 行已经有 update-author , 作用类似 ? 建议保持 makefile 的干净,不需要这么多,进行必要的整合
然后这个target 的位置 放在 makefile 合适的位置,不是 随意的加在最后
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.
done
tools/scripts/extract_authors.sh
Outdated
|
||
# exclusion list | ||
# Exclude bots and non-compliant lists | ||
excluded_name=("dependabot[bot]" "root" "weizhou.lan@daocloud.io") |
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.
为什么有 hardcode
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.
不是一个“真的”贡献者?没有必要加到 authors 里面吧?
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.
为什么有 exclude 逻辑
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.
done
AUTHORS
Outdated
swatchgame a865316182@gmail.com | ||
twoodpecker tysuper@yeah.net | ||
weizhouBlue weizhou.lan@daocloud.io |
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.
这里有bug 就是, 我早期用 weizhouBlue , 后来用 weizhoublue , 对应同一个 email
那么应该取为 最新的 weizhoublue
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.
done
29b61cd
to
96dd279
Compare
|
||
# Copyright 2024 Authors of spidernet-io | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
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.
shell 代码 健壮性太差
shell 代码顶部 应该有常规的 set -x 等之类的 返回码异常 判断,加强健壮性
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.
done
Makefile
Outdated
@@ -181,13 +181,12 @@ dev-doctor: | |||
|
|||
#============ tools ==================== | |||
|
|||
.PHONY: update-authors | |||
update-authors: ## Update AUTHORS file for the repository. | |||
update-authors: | |||
@echo "Updating AUTHORS file..." | |||
@echo "The following people, in alphabetical order, have either authored or signed" > AUTHORS |
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.
如果 extractAuthors.sh 有失败,这里直接 已经 提前 其他把 文件清空了,就会有 bug ,提交一份错的 空文件上来
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.
先用 变量 存住 脚本输出,判断返回码,再 打印到文件
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.
done
|
||
- name: update authors of spiderpool | ||
run: | | ||
make update-authors |
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.
这里没有任何返回码的判断,如果直接失败了,产生的文件 可能是错的,这里直接提交 错误的
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.
done
96dd279
to
46a1163
Compare
Signed-off-by: tao.yang <tao.yang@daocloud.io> Signed-off-by: ty-dc <tao.yang@daocloud.io>
46a1163
to
992ebb5
Compare
Thanks for contributing!
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: