-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgh_pr.sh
97 lines (78 loc) · 2.42 KB
/
gh_pr.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
if ! is_bin_in_path gh; then
SF_WARNS+=("[gh_issue plugin]: $(__sf_missing_binary_message 'gh')")
return
fi
if [[ $GH_PLUGIN_SOURCED != true ]]; then
SF_WARNS+=("[gh_issue plugin]: $(__sf_missing_plugin_message 'gh')")
return
fi
#
# FUNCTIONS
#
gh_pr_aliases() { __sf_show_plugin_aliases 'gh_pr'; }
#
# ALIASES
#
alias ghp='gh pr'
alias ghpco='gh pr checkout'
alias ghpcod='gh pr checkout --detach'
alias ghpcof='gh pr checkout --force'
alias ghpcor='gh pr checkout --recurse-submodules'
alias ghpcs='gh pr checks'
alias ghpcsr='gh pr checks --required'
alias ghpcsW='gh pr checks --watch'
alias ghpcsw='gh pr checks --web'
alias ghpcl='gh pr close'
alias ghpcld='gh pr close --delete-branch'
alias ghpcm='gh pr comment'
alias ghpcme='gh pr comment --editor'
alias ghpcml='gh pr comment --edit-last'
alias ghpcmw='gh pr comment --web'
alias ghpcr='gh pr create'
alias ghpcra='gh pr create --assignee'
alias ghpcrd='gh pr create --draft'
alias ghpcrf='gh pr create --fill'
alias ghpcrl='gh pr create --label'
alias ghpcrm='gh pr create --milestone'
alias ghpcrn='gh pr create --no-maintainer-edit'
alias ghpcrp='gh pr create --project'
alias ghpcrw='gh pr create --web'
alias ghpd='gh pr diff'
alias ghpdn='gh pr diff --name-only'
alias ghpdp='gh pr diff --patch'
alias ghpdw='gh pr diff --web'
alias ghpe='gh pr edit'
alias ghpl='gh pr list'
alias ghpla='gh pr list --assignee'
alias ghplA='gh pr list --author'
alias ghplb='gh pr list --base'
alias ghpld='gh pr list --draft'
alias ghplh='gh pr list --head'
alias ghplj='gh pr list --json'
alias ghpll='gh pr list --label'
alias ghplL='gh pr list --limit'
alias ghplS='gh pr list --search'
alias ghpls='gh pr list --state'
alias ghplw='gh pr list --web'
alias ghpm='gh pr merge'
alias ghpma='gh pr merge --admin'
alias ghpmau='gh pr merge --auto'
alias ghpmd='gh pr merge --delete-branch'
alias ghpmda='gh pr merge --disable-auto'
alias ghpmm='gh pr merge --merge'
alias ghpmr='gh pr merge --rebase'
alias ghpms='gh pr merge --squash'
alias ghprd='gh pr ready'
alias ghprdu='gh pr ready --undo'
alias ghpro='gh pr reopen'
alias ghprv='gh pr review'
alias ghprva='gh pr review --approve'
alias ghprvc='gh pr review --comment'
alias ghprvr='gh pr review --request-changes'
alias ghps='gh pr status'
alias ghpsc='gh pr status --conflict-status'
alias ghpsj='gh pr status --json'
alias ghpv='gh pr view'
alias ghpvc='gh pr view --comments'
alias ghpvj='gh pr view --json'
alias ghpvw='gh pr view --web'