import styled from '@emotion/styled'; import AvatarList from 'sentry/components/avatar/avatarList'; import {t, tn} from 'sentry/locale'; import {space} from 'sentry/styles/space'; import type {Release} from 'sentry/types'; type Props = { release: Release; withHeading: boolean; }; function ReleaseCardCommits({release, withHeading = true}: Props) { const commitCount = release.commitCount || 0; const authorCount = release.authors?.length || 0; if (commitCount === 0) { return null; } const releaseSummary = [ tn('%s commit', '%s commits', commitCount), t('by'), tn('%s author', '%s authors', authorCount), ].join(' '); return (