Skip to content

Commit 684f079

Browse files
committed
feat: add auto-update checker and GitHub Actions release
Features: - SessionStart hook checks for plugin updates via GitHub Releases API - Fallback to git commit SHA comparison when no releases exist - Subtle promotional footer in update notifications - Stop hook shows task completion with optional promo (30% chance) - Fallback to systemMessage when macOS notifications unavailable Improvements: - Clean up privacy-sensitive content (paths, branch names) - Simplify MONITOR_README.md documentation - Add Support & Community section to README - Add GitHub Actions workflow for automatic releases Hooks: - on-session-start.py: Update checker with GitHub Releases API - on-stop.py: Task completion notification with fallback
1 parent b728fa8 commit 684f079

File tree

15 files changed

+564
-192
lines changed

15 files changed

+564
-192
lines changed

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Generate changelog
21+
id: changelog
22+
run: |
23+
# Get previous tag
24+
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
25+
26+
if [ -z "$PREV_TAG" ]; then
27+
# First release, get all commits
28+
CHANGELOG=$(git log --pretty=format:"- %s (%h)" HEAD)
29+
else
30+
# Get commits since last tag
31+
CHANGELOG=$(git log --pretty=format:"- %s (%h)" ${PREV_TAG}..HEAD)
32+
fi
33+
34+
# Save to file for multi-line support
35+
echo "$CHANGELOG" > changelog.txt
36+
echo "Generated changelog:"
37+
cat changelog.txt
38+
39+
- name: Create Release
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
name: ${{ github.ref_name }}
43+
body_path: changelog.txt
44+
draft: false
45+
prerelease: false
46+
generate_release_notes: true
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Manage large coding tasks using git worktrees and background Claude Code session
1111
- **Merge**: Merge completed feature branches with automatic conflict resolution
1212
- **Rebase**: Rebase branches with automatic conflict resolution
1313
- **Alert**: macOS notifications when tasks complete or fail
14+
- **Auto-Update Check**: Notifies you when plugin updates are available via `/plugin` commands
1415

1516
## Usage
1617

@@ -30,10 +31,10 @@ Manage large coding tasks using git worktrees and background Claude Code session
3031
/worktree-task:cleanup my-task --keep-worktree
3132

3233
# Merge completed feature branch (run from target branch like dev/main)
33-
/worktree-task:merge featureA
34+
/worktree-task:merge feature-branch
3435

3536
# Rebase current branch onto feature branch
36-
/worktree-task:rebase featureA
37+
/worktree-task:rebase feature-branch
3738
```
3839

3940
### Via Skill (automatic)
@@ -63,8 +64,9 @@ worktree-task/
6364
├── hooks/
6465
│ ├── hooks.json # Hook registrations
6566
│ └── handlers/
66-
│ ├── on-stop.py # Task completion notification
67-
│ └── on-session-end.py
67+
│ ├── on-session-start.py # Update checker
68+
│ ├── on-stop.py # Task completion notification
69+
│ └── on-session-end.py # Session end handler
6870
├── scripts/
6971
│ ├── launch.py # Task launcher
7072
│ ├── status.py # Status checker
@@ -102,3 +104,14 @@ Logs are stored in `~/.claude/worktree-tasks/logs/`.
102104
- tmux
103105
- git
104106
- Python 3.8+
107+
108+
## Support & Community
109+
110+
-**Star this repo** if you find it useful!
111+
- 🐛 [Report issues](https://github.com/ourines/worktree-task-plugin/issues)
112+
- 💡 [Request features](https://github.com/ourines/worktree-task-plugin/issues/new)
113+
- 🐦 Follow [@user_name](https://x.com/ourines_) for updates
114+
115+
## License
116+
117+
MIT

commands/cleanup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Provide:
1515

1616
## Example
1717

18-
User: "Cleanup the proxy worktree task"
19-
User: "Cleanup proxy and remove the worktree"
18+
User: "Cleanup the my-feature worktree task"
19+
User: "Cleanup my-feature and remove the worktree"
2020

2121
## Execution
2222

commands/launch.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ Launch a background Claude Code session in a separate git worktree to execute a
1010
## Usage
1111

1212
Provide:
13-
1. **Branch name** - The git branch for this task (e.g., `feature/add-proxy-support`)
13+
14+
1. **Branch name** - The git branch for this task (e.g., `feature/my-task`)
1415
2. **Task description** - What the background Claude should do
1516

1617
## Example
1718

18-
User: "Launch a worktree task on branch feature/add-auth to implement the authentication module"
19+
User: "Launch a worktree task on branch feature/auth to implement the authentication module"
1920

2021
## Execution
2122

commands/merge.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Provide the feature branch name to merge into the current branch.
1313

1414
## Example
1515

16-
User on `dev` branch: "Merge featureA into dev"
17-
User on `main` branch: "Merge feature/add-auth into main"
16+
User on `dev` branch: "Merge feature-auth into dev"
17+
User on `main` branch: "Merge feature/new-api into main"
1818

1919
## Execution
2020

commands/rebase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Provide the feature branch name to rebase the current branch onto.
1313

1414
## Example
1515

16-
User on `dev` branch: "Rebase dev onto featureA"
17-
User on `main` branch: "Rebase main onto feature/add-auth"
16+
User on `dev` branch: "Rebase dev onto feature-auth"
17+
User on `main` branch: "Rebase main onto feature/new-api"
1818

1919
## Execution
2020

commands/resume.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Provide:
1515

1616
## Example
1717

18-
User: "Resume the proxy worktree task"
19-
User: "Resume proxy with message 'Continue from phase 4'"
18+
User: "Resume the my-feature worktree task"
19+
User: "Resume my-feature with message 'Continue from phase 4'"
2020

2121
## Execution
2222

commands/status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Check the status of background worktree tasks.
1515
## Example
1616

1717
User: "Check status of worktree tasks"
18-
User: "What's the status of the proxy task?"
18+
User: "What's the status of the my-feature task?"
1919

2020
## Execution
2121

0 commit comments

Comments
 (0)