Skip to content

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Nov 4, 2025

Summary by cubic

Add a simple CLI to find git file hotspots. It lists the most edited files in the last N days, sorted by edit count.

  • New Features
    • scripts/analyze-file-hotspots.js: counts file edits since N days and prints top N as TSV (countpath).
    • Usage: node scripts/analyze-file-hotspots.js [days=30] [limit=20]

Written for commit e846c7c. Summary will update automatically on new commits.

@sestinj sestinj requested a review from a team as a code owner November 4, 2025 19:54
@sestinj sestinj requested review from Patrick-Erichsen and removed request for a team November 4, 2025 19:54
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Nov 4, 2025
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

⚠️ PR Title Format

Your PR title doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend using this format for better project organization.

Expected Format:

<type>[optional scope]: <description>

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

✅ Review Complete

Code Review Summary

⚠️ Continue API authentication failed. Please check your CONTINUE_API_KEY.


@sestinj sestinj merged commit 7a19114 into main Nov 4, 2025
41 of 43 checks passed
@sestinj sestinj deleted the nate/add-file-hotspots-analysis-script branch November 4, 2025 19:55
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PRs Nov 4, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="scripts/analyze-file-hotspots.js">

<violation number="1" location="scripts/analyze-file-hotspots.js:13">
The fallback logic treats a valid `0` days argument as falsy, so `node scripts/analyze-file-hotspots.js 0` unexpectedly reverts to the 30-day default; please handle `NaN` explicitly so zero-day runs work as intended.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.


// Parse command line arguments
const args = process.argv.slice(2);
const days = parseInt(args[0]) || 30;
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Nov 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fallback logic treats a valid 0 days argument as falsy, so node scripts/analyze-file-hotspots.js 0 unexpectedly reverts to the 30-day default; please handle NaN explicitly so zero-day runs work as intended.

Prompt for AI agents
Address the following comment on scripts/analyze-file-hotspots.js at line 13:

<comment>The fallback logic treats a valid `0` days argument as falsy, so `node scripts/analyze-file-hotspots.js 0` unexpectedly reverts to the 30-day default; please handle `NaN` explicitly so zero-day runs work as intended.</comment>

<file context>
@@ -0,0 +1,52 @@
+
+// Parse command line arguments
+const args = process.argv.slice(2);
+const days = parseInt(args[0]) || 30;
+const limit = parseInt(args[1]) || 20;
+
</file context>
Fix with Cubic

@sestinj
Copy link
Contributor Author

sestinj commented Nov 7, 2025

🎉 This PR is included in version 1.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Nov 18, 2025

🎉 This PR is included in version 1.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Nov 19, 2025

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Nov 20, 2025

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

released size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants