Skip to content

Commit ac07d8a

Browse files
committed
fix(reports): eliminate contributor duplicates
Remove automatic sponsorUrl from monthly report contributor cards. The component already handles sponsor buttons correctly when sponsorUrl is provided (donations page pattern). Monthly reports now show clean contributor recognition without fundraising CTAs. Changes: - Remove sponsorUrl generation from markdown generator - Keep contributor separation (new vs continuing) to prevent duplicates - Regenerate Dec 2025 and Jan 2026 reports with clean cards - Minor whitespace cleanup in GitHubProfileCard component
1 parent c6780ca commit ac07d8a

File tree

4 files changed

+22
-60
lines changed

4 files changed

+22
-60
lines changed

reports/2025-12-31-report.mdx

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -374,42 +374,16 @@ Thank you to our continuing contributors!
374374

375375
<GitHubProfileCard username="renner0e" />
376376

377-
<GitHubProfileCard username="dreamyukii" />
378-
379377
<GitHubProfileCard username="castrojo" />
380378

381379
<GitHubProfileCard username="coxde" />
382380

383381
<GitHubProfileCard username="sebjag" />
384382

385-
<GitHubProfileCard username="tulilirockz" />
386-
387383
<GitHubProfileCard username="inffy" />
388384

389-
<GitHubProfileCard username="ahmedadan" />
390-
391-
<GitHubProfileCard username="joshyorko" />
392-
393385
<GitHubProfileCard username="hanthor" />
394386

395-
<GitHubProfileCard username="KiKaraage" />
396-
397-
<GitHubProfileCard username="theMimolet" />
398-
399-
<GitHubProfileCard username="tunix" />
400-
401-
<GitHubProfileCard username="jumpyvi" />
402-
403-
<GitHubProfileCard username="eltorrero" />
404-
405-
<GitHubProfileCard username="fizzyizzy05" />
406-
407-
<GitHubProfileCard username="bronson" />
408-
409-
<GitHubProfileCard username="AnthonyStainer" />
410-
411-
<GitHubProfileCard username="wommy" />
412-
413387
<GitHubProfileCard username="sideeffffect" />
414388

415389
</div>

reports/2026-01-31-report.mdx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -644,12 +644,8 @@ Thank you to our continuing contributors!
644644

645645
<GitHubProfileCard username="tulilirockz" />
646646

647-
<GitHubProfileCard username="Micro856" />
648-
649647
<GitHubProfileCard username="castrojo" />
650648

651-
<GitHubProfileCard username="LorbusChris" />
652-
653649
<GitHubProfileCard username="KiKaraage" />
654650

655651
<GitHubProfileCard username="inffy" />
@@ -660,34 +656,18 @@ Thank you to our continuing contributors!
660656

661657
<GitHubProfileCard username="renner0e" />
662658

663-
<GitHubProfileCard username="rwaltr" />
664-
665659
<GitHubProfileCard username="sebjag" />
666660

667661
<GitHubProfileCard username="coxde" />
668662

669663
<GitHubProfileCard username="theMimolet" />
670664

671-
<GitHubProfileCard username="rrenomeron" />
672-
673-
<GitHubProfileCard username="ledif" />
674-
675665
<GitHubProfileCard username="lambdaclan" />
676666

677-
<GitHubProfileCard username="leafyoung" />
678-
679-
<GitHubProfileCard username="AlexanderVanhee" />
680-
681-
<GitHubProfileCard username="RaduAvramescu" />
682-
683-
<GitHubProfileCard username="hecknt" />
684-
685667
<GitHubProfileCard username="jumpyvi" />
686668

687669
<GitHubProfileCard username="sideeffffect" />
688670

689-
<GitHubProfileCard username="alatiera" />
690-
691671
</div>
692672

693673
---
@@ -698,5 +678,5 @@ Thank you to our continuing contributors!
698678

699679
---
700680

701-
*Generated on 2026-01-27*
681+
*Generated on 2026-01-28*
702682
[View Project Board](https://todo.projectbluefin.io) | [Report an Issue](https://github.com/projectbluefin/common/issues/new)

scripts/lib/markdown-generator.mjs

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -732,27 +732,34 @@ function generateContributorsSection(contributors, newContributors) {
732732
section += `<div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: '1.5rem', marginBottom: '2rem' }}>\n\n`;
733733

734734
const newContributorCards = newContributors
735-
.map(
736-
(username) =>
737-
`<GitHubProfileCard username="${username}" highlight={true} />`,
738-
)
735+
.map((username) => {
736+
return `<GitHubProfileCard username="${username}" highlight={true} />`;
737+
})
739738
.join("\n\n");
740739

741740
section += newContributorCards;
742741
section += `\n\n</div>\n\n`;
743742
}
744743

745-
// Section 2: All Contributors (without highlight)
746-
section += `## Contributors\n\n`;
747-
section += `Thank you to our continuing contributors!\n\n`;
748-
section += `<div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: '1.5rem', marginBottom: '2rem' }}>\n\n`;
744+
// Section 2: Continuing Contributors (excluding new contributors to avoid duplicates)
745+
const continuingContributors = contributors.filter(
746+
(username) => !newContributors.includes(username),
747+
);
749748

750-
const allContributorCards = contributors
751-
.map((username) => `<GitHubProfileCard username="${username}" />`)
752-
.join("\n\n");
749+
if (continuingContributors.length > 0) {
750+
section += `## Contributors\n\n`;
751+
section += `Thank you to our continuing contributors!\n\n`;
752+
section += `<div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: '1.5rem', marginBottom: '2rem' }}>\n\n`;
753753

754-
section += allContributorCards;
755-
section += `\n\n</div>`;
754+
const continuingContributorCards = continuingContributors
755+
.map((username) => {
756+
return `<GitHubProfileCard username="${username}" />`;
757+
})
758+
.join("\n\n");
759+
760+
section += continuingContributorCards;
761+
section += `\n\n</div>`;
762+
}
756763

757764
return section;
758765
}

src/components/GitHubProfileCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ const fetchGitHubProfile = async (username: string): Promise<GitHubUser> => {
121121
}
122122

123123
const data = await response.json();
124+
124125
return {
125126
login: data.login,
126127
name: data.name,

0 commit comments

Comments
 (0)