Skip to content

Commit 6a6c94d

Browse files
committed
fix: skip linguist and gist update when no file changes found
1 parent bc9e806 commit 6a6c94d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ const main = async () => {
127127
console.log('\n');
128128

129129
const files = processCommits(commits);
130+
if (files.length === 0) {
131+
console.log('No file changes found. Skipping gist update.');
132+
return;
133+
}
134+
130135
const langs = await runLinguist(files);
131136
console.log('\nLanguage statistics:');
132137
for (const lang of langs) {

0 commit comments

Comments
 (0)