Skip to content

Commit fb621fc

Browse files
Preview/Revert Commands, Bug Fixes, Testing Cleanup and More (#26)
2 parents eccaefe + f75b388 commit fb621fc

33 files changed

+3973
-1037
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@labcatr/labcommitr": minor
3+
---
4+
5+
feat: add init command alias and improve help text
6+
7+
- Add `i` alias for `init` command for faster access
8+
- Update help examples to use `lab` instead of `labcommitr` consistently
9+
- Add concise examples showing both full commands and aliases
10+
- Add note clarifying both `lab` and `labcommitr` can be used
11+
- Update README to document `init|i` alias
12+
- Remove duplicate pagination text from preview and revert commands
13+
- Improve help text clarity and consistency across all commands
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@labcatr/labcommitr": minor
3+
---
4+
5+
feat: add toggle functionality for body and files in preview
6+
7+
- Add toggle state for body and files visibility in commit detail view
8+
- Implement `b` key to toggle body visibility on/off
9+
- Implement `f` key to toggle files visibility on/off
10+
- Reset toggles when viewing new commit or returning to list
11+
- Update prompt text to indicate toggle behavior
12+
- Fixes issue where pressing `b`/`f` caused repeated rendering
13+
- Improves UX by allowing users to hide/show sections as needed
14+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@labcatr/labcommitr": patch
3+
---
4+
5+
fix: move config existence check before Clef intro animation
6+
7+
- Perform early validation before any UI/animation in init command
8+
- Check for existing config immediately after project root detection
9+
- Only show Clef intro animation if initialization will proceed
10+
- Provides better UX by failing fast with clear error message
11+
- Prevents unnecessary animation when config already exists
12+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@labcatr/labcommitr": patch
3+
---
4+
5+
fix: exclude subject line from commit body extraction
6+
7+
- Split commit message by first blank line to separate subject and body
8+
- Only return content after blank line as body in preview command
9+
- Prevents subject line from appearing in body section
10+
- Fixes incorrect display where commit subject was shown as part of body
11+

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
steps:
1616
- uses: actions/labeler@v4
1717
with:
18-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
18+
repo-token: "${{ secrets.LAB_ACTIONS_TOKEN }}"
1919
sync-labels: true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ jobs:
5151
title: "[ci] release"
5252
env:
5353
# Uses built-in GITHUB_TOKEN (automatically available, no secret needed)
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GITHUB_TOKEN: ${{ secrets.LAB_ACTIONS_TOKEN }}
5555
# Needs access to publish to npm
5656
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ coverage/
3636
*.lcov
3737

3838
# Testing
39-
# Sandbox directory for testing Labcommitr commands (scripts in scripts/ are tracked)
39+
# Sandbox directory for testing Labcommitr commands
4040
.sandbox/
4141
test-results/
4242

43+
# Documentation
44+
# Architecture and development documentation (not tracked)
45+
docs/
46+
4347
# npm/yarn/pnpm
4448
npm-debug.log*
4549
yarn-debug.log*
@@ -75,10 +79,11 @@ Thumbs.db
7579
rust-src/
7680

7781
### Documentation
78-
# Ignore all .md files except README.md, CHANGELOG.md, and .changeset/*.md (local reference only)
82+
# Ignore all .md files except README.md, CHANGELOG.md, TESTING.md, and .changeset/*.md
7983
*.md
8084
!README.md
8185
!CHANGELOG.md
86+
!TESTING.md
8287
!.changeset/*.md
8388

8489
### Labcommitr Configuration

.npmignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Exclude development-only files from published package
2+
dist/cli/commands/test/
3+
dist/cli/program-dev.js
4+
dist/cli/program-dev.d.ts
5+
dist/cli/program-dev.js.map
6+
dist/index-dev.js
7+
dist/index-dev.d.ts
8+
dist/index-dev.js.map
9+
10+
# Exclude source files
11+
src/
12+
*.ts
13+
!*.d.ts
14+
15+
# Exclude development files
16+
.git/
17+
.sandbox/
18+
docs/
19+
*.md
20+
!README.md
21+
!CHANGELOG.md
22+
!TESTING.md
23+
!.changeset/*.md
24+
25+
# Exclude build artifacts
26+
*.map
27+
tsconfig.json
28+
.prettierrc*
29+
30+
# Exclude test and development scripts
31+
scripts/
32+

0 commit comments

Comments
 (0)