Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/services/contributors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { getBackend, getConfig } from '../config';
import type { Env } from '../types';

const botNames = ['semantic-release-bot', 'revanced-bot', 'dependabot[bot]', 'github-actions[bot]', 'pre-commit-ci[bot]'];
Comment thread
SayanthD marked this conversation as resolved.
Outdated

export async function getContributors(env: Env) {
const backend = getBackend(env);
const { organization, contributorRepos } = getConfig(env);
Expand All @@ -11,7 +13,9 @@ export async function getContributors(env: Env) {
return {
name,
url: backend.repositoryUrl(organization, repo),
contributors: contributors.map((contributor) => ({
contributors: contributors
.filter((contributor) => !botNames.includes(contributor.name))
.map((contributor) => ({
name: contributor.name,
avatar_url: contributor.avatarUrl,
url: contributor.url,
Expand Down