git-jira-shortcuts 1.0.1 → 1.0.3
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 +1 -1
- package/bin/cli.js +1 -1
- package/package.json +1 -1
- package/shell/git-extras.sh +24 -3
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Running `git-jira-shortcuts init` creates `~/.git-jira-shortcuts.env` with:
|
|
|
18
18
|
|
|
19
19
|
| Variable | Required | Description |
|
|
20
20
|
|----------|----------|-------------|
|
|
21
|
-
| `GJS_TICKET_PREFIX` | Yes | Jira project key (e.g. `
|
|
21
|
+
| `GJS_TICKET_PREFIX` | Yes | Jira project key (e.g. `MYPROJ`, `ACME`) |
|
|
22
22
|
| `GJS_JIRA_DOMAIN` | Yes | Jira domain (e.g. `yourco.atlassian.net`) |
|
|
23
23
|
| `GJS_JIRA_API_TOKEN` | Yes | Base64-encoded Jira API token |
|
|
24
24
|
| `GJS_BRANCH_WEBHOOK_URL` | No | Optional webhook for branch name generation |
|
package/bin/cli.js
CHANGED
package/package.json
CHANGED
package/shell/git-extras.sh
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# https://github.com/chipallen2/git-jira-shortcuts
|
|
4
4
|
#
|
|
5
5
|
# Configuration (set in ~/.git-jira-shortcuts.env):
|
|
6
|
-
# GJS_TICKET_PREFIX — Jira project key (e.g.
|
|
6
|
+
# GJS_TICKET_PREFIX — Jira project key (e.g. MYPROJ, ACME)
|
|
7
7
|
# GJS_JIRA_DOMAIN — Jira domain (e.g. yourco.atlassian.net)
|
|
8
8
|
# GJS_JIRA_API_TOKEN — Base64 Jira API token
|
|
9
9
|
# GJS_BRANCH_WEBHOOK_URL — Optional webhook for branch name generation
|
|
@@ -299,7 +299,7 @@ ghelp() { # ghelp | Show all git-jira-shortcuts commands
|
|
|
299
299
|
gp Pull (no rebase, no editor)
|
|
300
300
|
|
|
301
301
|
── Merge & Diff ───────────────────────────────────────────────
|
|
302
|
-
gm [branch] Merge
|
|
302
|
+
gm [branch] Merge another branch INTO your current branch
|
|
303
303
|
gmerge (same)
|
|
304
304
|
gdiff [branch] Files changed vs target branch + GitHub compare link
|
|
305
305
|
|
|
@@ -312,7 +312,28 @@ ghelp() { # ghelp | Show all git-jira-shortcuts commands
|
|
|
312
312
|
testJira / tj Test your Jira API connection
|
|
313
313
|
ghelp This help screen
|
|
314
314
|
|
|
315
|
-
|
|
315
|
+
── Tips ───────────────────────────────────────────────────────
|
|
316
|
+
Ticket numbers:
|
|
317
|
+
Just type the number — no need to type the full branch name.
|
|
318
|
+
Example: gw 1234 → switches to PROJ-1234-whatever-the-branch-is
|
|
319
|
+
gt 1234 → creates a branch named from the Jira story title
|
|
320
|
+
|
|
321
|
+
Interactive picker:
|
|
322
|
+
Leave the branch empty on gw, gdel, or gm and you'll get an
|
|
323
|
+
arrow-key menu of your recent branches to pick from.
|
|
324
|
+
|
|
325
|
+
Merge workflow (gm):
|
|
326
|
+
Stay on YOUR branch, then tell it which branch to merge in.
|
|
327
|
+
It pulls latest on that branch first, then merges it into yours.
|
|
328
|
+
Example: (on feature branch) gm develop
|
|
329
|
+
→ pulls latest develop → merges develop into your branch
|
|
330
|
+
|
|
331
|
+
Auto-prefixed commits:
|
|
332
|
+
On a ticket branch like PROJ-1234-fix-bug, your commit messages
|
|
333
|
+
are automatically prefixed: gf "fixed it" → "PROJ-1234: fixed it"
|
|
334
|
+
|
|
335
|
+
Branch shorthand:
|
|
336
|
+
m → master d → develop
|
|
316
337
|
EOF
|
|
317
338
|
}
|
|
318
339
|
|