Skip to content

Commit 0910289

Browse files
committed
chore(ci): exclude bot accounts from contributors list
Filter out bot accounts from the nightly contributors update: - Exclude accounts with type "Bot" - Exclude accounts with [bot] suffix in login name
1 parent 99292b0 commit 0910289

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/contributors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
env:
1818
GH_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN }}
1919
run: |
20-
# Fetch contributors from GitHub API
21-
contributors=$(gh api repos/dtvem/dtvem/contributors --paginate --jq '.[] | "<a href=\"\(.html_url)\"><img src=\"\(.avatar_url)\" width=\"64\" height=\"64\" alt=\"\(.login)\"/></a>"')
20+
# Fetch contributors from GitHub API (exclude bots)
21+
contributors=$(gh api repos/dtvem/dtvem/contributors --paginate --jq '.[] | select(.type != "Bot") | select(.login | test("\\[bot\\]$") | not) | "<a href=\"\(.html_url)\"><img src=\"\(.avatar_url)\" width=\"64\" height=\"64\" alt=\"\(.login)\"/></a>"')
2222
2323
# Build the contributors section
2424
contrib_section="<!-- readme: contributors -start -->

0 commit comments

Comments
 (0)