Gathering detailed insights and metrics for gitlog-author
Gathering detailed insights and metrics for gitlog-author
Gathering detailed insights and metrics for gitlog-author
Gathering detailed insights and metrics for gitlog-author
Generate detailed git logs, code review and productivity metrics for specific authors
npm install gitlog-author
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
69 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Feb 08, 2025
Latest Version
0.0.10
Package Id
gitlog-author@0.0.10
Unpacked Size
159.67 kB
Size
39.57 kB
File Count
30
NPM Version
9.8.1
Node Version
18.18.0
Published on
Feb 08, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A powerful CLI tool to generate rich, author-focused Git commit logs with metrics and trends in Markdown format.
⚠️ IMPORTANT DISCLAIMER Before using this tool with AI services, any third party services or sharing logs, please be aware that:
--review
flagManaging and tracking contributions in Git repositories can be challenging, especially in large projects with multiple contributors. Traditional Git logs can be overwhelming and difficult to parse when you need to focus on specific authors' contributions.
Ever wondered why senior developers insist on meaningful commit messages? This tool showcases exactly why - well-structured commit histories become invaluable for career growth, team collaboration, and project maintenance. Your future self (or your team) will thank you for those detailed commit messages when preparing for interviews or tracking down changes months later.
--since
and --until
--verify
option--list-authors
--skip-fetch
--no-metrics
)--trend=<period>
:
--review
:
This tool operates through several key steps:
Repository Validation & Setup
--skip-fetch
used)Author Processing
--verify
--list-authors
Data Collection
Analysis & Metrics (when --no-metrics
not used)
Trend Analysis (with --trend
)
Code Review (with --review
)
Output Generation
Safety Measures:
The tool runs entirely locally using Git commands. No data is sent to external services. However, be cautious when sharing generated logs as they may contain sensitive information from commit messages, code diffs, or file paths.
1# Option 1: Use directly with npx 2npx gitlog-author "John Doe" 3 4# Option 2: Install globally via npm 5npm install -g gitlog-author 6 7# Option 3: Clone and install locally 8git clone https://github.com/bayuagpr/gitlog-author.git 9cd gitlog-author 10npm install -g .
1npx gitlog-author <author> [--since=<date>] [--until=<date>] [--verify] [--no-metrics] [--trend=<period>] [--review] [--include-dirs=<dirs>] [--exclude-dirs=<dirs>]
author
: Author name or email to filter commits by--since
: Show commits more recent than a specific date (optional)--until
: Show commits older than a specific date (optional)--verify
: Verify author existence and show matching authors--list-authors
: Show all authors in the repository--skip-fetch
: Skip fetching latest changes from remote--no-metrics
: Skip productivity metrics calculation--trend=<period>
: Generate contribution trend report (daily, weekly, or monthly)--review
: Generate detailed code review report with risk assessment--include-dirs=<dirs>
: Only include commits affecting these directories (comma-separated)--exclude-dirs=<dirs>
: Exclude commits affecting these directories (comma-separated)--help
, -h
: Show help message1# Basic usage with author name 2npx gitlog-author "John Doe" 3 4# Using email address 5npx gitlog-author "john@example.com" 6 7# With date range 8npx gitlog-author "John Doe" --since="1 week ago" --until="today" 9 10# Using ISO dates 11npx gitlog-author "John Doe" --since="2023-01-01" --until="2023-12-31" 12 13# Skip fetching latest changes from remote 14npx gitlog-author "John Doe" --skip-fetch 15 16# Skip metrics calculation 17npx gitlog-author "John Doe" --no-metrics 18 19# Verify author existence 20npx gitlog-author "John" --verify 21 22# List all authors 23npx gitlog-author --list-authors 24 25# Generate trend reports 26npx gitlog-author "John Doe" --trend=daily # Show last 7 days trends 27npx gitlog-author "John Doe" --trend=daily --since="2023-01-01" --until="2023-12-31" 28 29# Show based on date range 30npx gitlog-author "John Doe" --trend=weekly # Show last 4 weeks trends 31npx gitlog-author "John Doe" --trend=monthly # Show last 6 months trends 32 33# Filter by directories 34npx gitlog-author "John Doe" --include-dirs="src,tests" # Only include src and tests directories 35npx gitlog-author "John Doe" --trend=monthly --exclude-dirs="core/backend,core/shared" # Exclude some directories and show last 6 months trends 36 37# Code review functionality 38npx gitlog-author "John Doe" --review # Generate detailed code review report 39npx gitlog-author "John Doe" --review --since="1 week ago" # Review code changes from the last week
Supports various date formats:
The --include-dirs
and --exclude-dirs
options accept comma-separated lists of directory paths:
node_modules/
dist/
build/
.nx/
coverage/
.next/
.cache/
package-lock.json
yarn.lock
.min.js
, .min.css
).map
).d.ts
)Examples:
1# Only include src and tests directories 2npx gitlog-author "John Doe" --include-dirs="src,tests" 3 4# Exclude core backend and shared code 5npx gitlog-author "John Doe" --exclude-dirs="core/backend,core/shared" 6 7# Include src directory with trend analysis 8npx gitlog-author "John Doe" --trend=monthly --include-dirs="src"
The script generates the following Markdown files in the git-logs
directory:
<author>_commits_<timestamp>.md
)Generated by default unless using --verify
, --list-authors
, --review
or --trend
:
<author>_metrics_<timestamp>.md
)Generated by default unless using --no-metrics
, --review
or --trend
:
<author>_<period>_trend_<timestamp>.md
)Generated with --trend=<period>
:
<author>_review_<timestamp>.md
)Generated with --review
:
All files include:
You can check the output example (commit log version) in the output-example/output-example.md file
Git Not Found
git --version
to verify installationPermission Denied
No Commits Found
Invalid Date Format
Memory Issues
For more issues, please check the Issues section.
We welcome contributions! Here's how you can help:
Fork the Repository
1git clone https://github.com/bayuagpr/gitlog-author.git 2cd gitlog-author 3npm install
Create a Branch
1git checkout -b feature/your-feature-name
Make Changes
Run Tests
1npm test
Submit PR
MIT License
Copyright (c) 2025 by Bayu Prakoso (bayuagpr/bayuagprx)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
No security vulnerabilities found.