Skip to content

Commit e7a8b1e

Browse files
authored
Add documentation for ":branch" placeholder
1 parent 55a13a3 commit e7a8b1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/cmd/api/api.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func NewCmdApi(f *cmdutil.Factory, runF func(*ApiOptions) error) *cobra.Command
5757
The endpoint argument should either be a path of a GitHub API v3 endpoint, or
5858
"graphql" to access the GitHub API v4.
5959
60-
Placeholder values ":owner" and ":repo" in the endpoint argument will get replaced
61-
with values from the repository of the current directory.
60+
Placeholder values ":owner", ":repo", and ":branch" in the endpoint argument will
61+
get replaced with values from the repository of the current directory.
6262
6363
The default HTTP request method is "GET" normally and "POST" if any parameters
6464
were added. Override the method with '--method'.
@@ -71,8 +71,8 @@ on the format of the value:
7171
7272
- literal values "true", "false", "null", and integer numbers get converted to
7373
appropriate JSON types;
74-
- placeholder values ":owner" and ":repo" get populated with values from the
75-
repository of the current directory;
74+
- placeholder values ":owner", ":repo", and ":branch" get populated with values
75+
from the repository of the current directory;
7676
- if the value starts with "@", the rest of the value is interpreted as a
7777
filename to read the value from. Pass "-" to read from standard input.
7878

0 commit comments

Comments
 (0)