Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c69bea3
docs: update README with comprehensive command documentation
SatanshuMishra Nov 24, 2025
d7fad7c
feat: add preview and revert commands
SatanshuMishra Nov 24, 2025
2c84fa6
feat: implement new testing architecture
SatanshuMishra Nov 24, 2025
43c0756
refactor: remove legacy testing scripts
SatanshuMishra Nov 24, 2025
58a970e
docs: reorganize documentation structure
SatanshuMishra Nov 24, 2025
dca96bd
chore: exclude docs directory from version control
SatanshuMishra Nov 24, 2025
dd152af
fix: enable next batch pagination in preview command
SatanshuMishra Nov 29, 2025
b732a00
feat: add previous batch navigation to preview command
SatanshuMishra Nov 29, 2025
7cd66a2
feat: apply preview navigation improvements to revert command
SatanshuMishra Nov 29, 2025
e9565a2
fix: ensure lib directory exists in test scenario generator
SatanshuMishra Nov 29, 2025
80d189d
fix: exclude subject line from commit body extraction
SatanshuMishra Nov 30, 2025
a123eec
feat: add toggle functionality for body and files in preview
SatanshuMishra Nov 30, 2025
50ee622
fix: move config existence check before Clef intro animation
SatanshuMishra Nov 30, 2025
f81536f
feat: make test commands development-only
SatanshuMishra Nov 30, 2025
5731b77
docs: update documentation for dev-only test commands
SatanshuMishra Nov 30, 2025
4597502
chore: add changeset for preview body extraction fix
SatanshuMishra Nov 30, 2025
8a8d29c
chore: add changeset for preview toggle functionality
SatanshuMishra Nov 30, 2025
43df95c
chore: add changeset for init config check timing fix
SatanshuMishra Nov 30, 2025
c435d38
feat: add init command alias and improve help text
SatanshuMishra Nov 30, 2025
ac62329
refactor: improve help text examples and consistency
SatanshuMishra Nov 30, 2025
af75ab5
feat: add 'i' alias for init command
SatanshuMishra Nov 30, 2025
0ddbe05
fix: remove duplicate pagination text from commit lists
SatanshuMishra Nov 30, 2025
e7b1d00
docs: add preview and revert command documentation
SatanshuMishra Nov 30, 2025
32a7e66
fix: Token Update
SatanshuMishra Nov 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/add-command-aliases-and-help-improvements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@labcatr/labcommitr": minor
---

feat: add init command alias and improve help text

- Add `i` alias for `init` command for faster access
- Update help examples to use `lab` instead of `labcommitr` consistently
- Add concise examples showing both full commands and aliases
- Add note clarifying both `lab` and `labcommitr` can be used
- Update README to document `init|i` alias
- Remove duplicate pagination text from preview and revert commands
- Improve help text clarity and consistency across all commands

14 changes: 14 additions & 0 deletions .changeset/add-preview-toggle-functionality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@labcatr/labcommitr": minor
---

feat: add toggle functionality for body and files in preview

- Add toggle state for body and files visibility in commit detail view
- Implement `b` key to toggle body visibility on/off
- Implement `f` key to toggle files visibility on/off
- Reset toggles when viewing new commit or returning to list
- Update prompt text to indicate toggle behavior
- Fixes issue where pressing `b`/`f` caused repeated rendering
- Improves UX by allowing users to hide/show sections as needed

12 changes: 12 additions & 0 deletions .changeset/fix-init-config-check-timing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@labcatr/labcommitr": patch
---

fix: move config existence check before Clef intro animation

- Perform early validation before any UI/animation in init command
- Check for existing config immediately after project root detection
- Only show Clef intro animation if initialization will proceed
- Provides better UX by failing fast with clear error message
- Prevents unnecessary animation when config already exists

11 changes: 11 additions & 0 deletions .changeset/fix-preview-body-extraction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@labcatr/labcommitr": patch
---

fix: exclude subject line from commit body extraction

- Split commit message by first blank line to separate subject and body
- Only return content after blank line as body in preview command
- Prevents subject line from appearing in body section
- Fixes incorrect display where commit subject was shown as part of body

2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
repo-token: "${{ secrets.LAB_ACTIONS_TOKEN }}"
sync-labels: true
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ jobs:
title: "[ci] release"
env:
# Uses built-in GITHUB_TOKEN (automatically available, no secret needed)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.LAB_ACTIONS_TOKEN }}
# Needs access to publish to npm
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ coverage/
*.lcov

# Testing
# Sandbox directory for testing Labcommitr commands (scripts in scripts/ are tracked)
# Sandbox directory for testing Labcommitr commands
.sandbox/
test-results/

# Documentation
# Architecture and development documentation (not tracked)
docs/

# npm/yarn/pnpm
npm-debug.log*
yarn-debug.log*
Expand Down Expand Up @@ -75,10 +79,11 @@ Thumbs.db
rust-src/

### Documentation
# Ignore all .md files except README.md, CHANGELOG.md, and .changeset/*.md (local reference only)
# Ignore all .md files except README.md, CHANGELOG.md, TESTING.md, and .changeset/*.md
*.md
!README.md
!CHANGELOG.md
!TESTING.md
!.changeset/*.md

### Labcommitr Configuration
Expand Down
32 changes: 32 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Exclude development-only files from published package
dist/cli/commands/test/
dist/cli/program-dev.js
dist/cli/program-dev.d.ts
dist/cli/program-dev.js.map
dist/index-dev.js
dist/index-dev.d.ts
dist/index-dev.js.map

# Exclude source files
src/
*.ts
!*.d.ts

# Exclude development files
.git/
.sandbox/
docs/
*.md
!README.md
!CHANGELOG.md
!TESTING.md
!.changeset/*.md

# Exclude build artifacts
*.map
tsconfig.json
.prettierrc*

# Exclude test and development scripts
scripts/

Loading