git-watchtower 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/bin/git-watchtower.js +829 -1521
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,6 +198,28 @@ GIT_POLL_INTERVAL=10000 git-watchtower
|
|
|
198
198
|
| `u` | Undo last branch switch |
|
|
199
199
|
| `p` | Force pull current branch |
|
|
200
200
|
| `f` | Fetch all branches + refresh sparklines |
|
|
201
|
+
| `b` | Branch actions modal (see below) |
|
|
202
|
+
|
|
203
|
+
### Branch Actions (`b`)
|
|
204
|
+
|
|
205
|
+
Press `b` on any branch to open an interactive action modal. All actions are always visible — unavailable ones are grayed out with reasons (e.g., "Requires gh CLI", "Run: gh auth login").
|
|
206
|
+
|
|
207
|
+
| Key | Action | Requires |
|
|
208
|
+
|-----|--------|----------|
|
|
209
|
+
| `b` | Open branch on GitHub/GitLab/Bitbucket/Azure DevOps | - |
|
|
210
|
+
| `c` | Open Claude Code session in browser | Claude branch with session URL |
|
|
211
|
+
| `p` | Create PR (or view existing PR) | `gh` or `glab` CLI |
|
|
212
|
+
| `d` | View PR diff on GitHub/GitLab | Open PR |
|
|
213
|
+
| `a` | Approve pull request | `gh` or `glab` CLI + open PR |
|
|
214
|
+
| `m` | Merge pull request (squash + delete branch) | `gh` or `glab` CLI + open PR |
|
|
215
|
+
| `i` | Check CI status | `gh` or `glab` CLI |
|
|
216
|
+
| `Esc` | Close modal | - |
|
|
217
|
+
|
|
218
|
+
The modal opens instantly and loads PR info in the background. Results are cached per branch and invalidated when the branch receives new commits. The modal auto-detects:
|
|
219
|
+
- **Claude Code branches** (`claude/` prefix) and extracts session URLs from commit messages
|
|
220
|
+
- **Git hosting platform** from the remote URL (GitHub, GitLab, Bitbucket, Azure DevOps)
|
|
221
|
+
- **Existing PRs** and their review/CI status
|
|
222
|
+
- **CLI tool availability** — shows install/auth hints when `gh` or `glab` isn't set up
|
|
201
223
|
|
|
202
224
|
### Server Controls
|
|
203
225
|
| Key | Mode | Action |
|