Skip to content

Commit 5f9479a

Browse files
committed
show all commit data by default
1 parent d2a4af0 commit 5f9479a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

components/homeData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function HomeData({ isVisible }: HomeDataType) {
1919
.filter((c) => !isNaN(c))
2020
.sort((a, b) => b - a);
2121

22-
const [year, setYear] = useState<number | null>(years[0]);
22+
const [year, setYear] = useState<number | null>(0);
2323

2424
const yearCommits = commits[year || 'all'] as YearCommitType;
2525
const firstCommitDate = convertDate(yearCommits?.first);

generate-commits-all.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import prettier from 'prettier';
44
import commitsAll from './data/commits-all.js';
55

66
const yearStart = 2016;
7-
const yearEnd = 2025;
7+
const yearEnd = 2026;
88
const update = true;
99
const GITHUB_USERNAME = 'beumsk';
1010
const OUTPUT_FILE = yearStart === yearEnd ? `data/c${year}.js` : `data/commits-all.js`;
11-
// https://github.com/settings/tokens with repo access !!
11+
// https://github.com/settings/tokens (classic) with repo access !!
1212
const TOKEN = ''; // PUSH EMPTY!!
1313

1414
const header = TOKEN

0 commit comments

Comments
 (0)