1hub-pr(1) hub manual hub-pr(1)
2
3
4
6 hub-pr - Manage GitHub Pull Requests for the current repository.
7
9 hub pr list [-s STATE] [-h HEAD] [-b BASE] [-o SORT_KEY [-^]] [-f
10 FORMAT] [-L LIMIT]
11 hub pr checkout PR-NUMBER [BRANCH]
12 hub pr show [-uc] [-h HEAD]
13 hub pr show [-uc] PR-NUMBER
14
16 list
17 List pull requests in the current repository.
18
19 checkout
20 Check out the head of a pull request in a new branch.
21
22 show
23 Open a pull request page in a web browser.
24
26 -s, --state STATE
27 Filter pull requests by STATE. Supported values are: "open"
28 (default), "closed", "merged", or "all".
29
30 -h, --head BRANCH
31 Show pull requests started from the specified head BRANCH. The
32 "OWNER:BRANCH" format must be used for pull requests from forks.
33
34 -b, --base BRANCH
35 Show pull requests based off the specified BRANCH.
36
37 -f, --format FORMAT
38 Pretty print the list of pull requests using format FORMAT
39 (default: "%pC%>(8)%i%Creset %t% l%n"). See the "PRETTY FORMATS"
40 section of git-log(1) for some additional details on how
41 placeholders are used in format. The available placeholders are:
42
43 %I: pull request number
44
45 %i: pull request number prefixed with "#"
46
47 %U: the URL of this pull request
48
49 %S: state ("open" or "closed")
50
51 %pS: pull request state ("open", "draft", "merged", or "closed")
52
53 %sC: set color to red or green, depending on state
54
55 %pC: set color according to pull request state
56
57 %t: title
58
59 %l: colored labels
60
61 %L: raw, comma-separated labels
62
63 %b: body
64
65 %B: base branch
66
67 %sB: base commit SHA
68
69 %H: head branch
70
71 %sH: head commit SHA
72
73 %sm: merge commit SHA
74
75 %au: login name of author
76
77 %as: comma-separated list of assignees
78
79 %rs: comma-separated list of requested reviewers
80
81 %Mn: milestone number
82
83 %Mt: milestone title
84
85 %cD: created date-only (no time of day)
86
87 %cr: created date, relative
88
89 %ct: created date, UNIX timestamp
90
91 %cI: created date, ISO 8601 format
92
93 %uD: updated date-only (no time of day)
94
95 %ur: updated date, relative
96
97 %ut: updated date, UNIX timestamp
98
99 %uI: updated date, ISO 8601 format
100
101 %mD: merged date-only (no time of day)
102
103 %mr: merged date, relative
104
105 %mt: merged date, UNIX timestamp
106
107 %mI: merged date, ISO 8601 format
108
109 %n: newline
110
111 %%: a literal %
112
113 --color[=WHEN]
114 Enable colored output even if stdout is not a terminal. WHEN can be
115 one of "always" (default for --color), "never", or "auto"
116 (default).
117
118 -o, --sort KEY
119 Sort displayed issues by "created" (default), "updated",
120 "popularity", or "long-running".
121
122 -^, --sort-ascending
123 Sort by ascending dates instead of descending.
124
125 -L, --limit LIMIT
126 Display only the first LIMIT issues.
127
128 -u, --url
129 Print the pull request URL instead of opening it.
130
131 -c, --copy
132 Put the pull request URL to clipboard instead of opening it.
133
135 hub-issue(1), hub-pull-request(1), hub(1)
136
137
138
139
140hub version 2.12.8 03 Oct 2019 hub-pr(1)