This commit is contained in:
@@ -621,17 +621,20 @@ jobs:
|
||||
echo "👥 收集贡献者..."
|
||||
|
||||
# 收集贡献者 (去除 bot)
|
||||
# 动态过滤配置的 bot 用户名
|
||||
if [ "$COMMIT_RANGE" = "HEAD" ]; then
|
||||
CONTRIBUTORS=$(git log --pretty=format:"%an" --no-merges | \
|
||||
grep -v "github-actions\[bot\]" | \
|
||||
grep -v "dependabot\[bot\]" | \
|
||||
grep -v "renovate\[bot\]" | \
|
||||
grep -v "^${{ env.GIT_USER_NAME }}$" | \
|
||||
sort -u)
|
||||
else
|
||||
CONTRIBUTORS=$(git log $COMMIT_RANGE --pretty=format:"%an" --no-merges | \
|
||||
grep -v "github-actions\[bot\]" | \
|
||||
grep -v "dependabot\[bot\]" | \
|
||||
grep -v "renovate\[bot\]" | \
|
||||
grep -v "^${{ env.GIT_USER_NAME }}$" | \
|
||||
sort -u)
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user