Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
github
hub
提交
4813e859
H
hub
项目概览
github
/
hub
10 个月 前同步成功
通知
3
Star
22523
Fork
2406
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4813e859
编写于
9月 29, 2019
作者:
M
Mislav Marohnić
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[docs] Clarify `--message`, `--file`, and `--edit` flags
上级
a5c0ac97
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
15 deletion
+30
-15
commands/issue.go
commands/issue.go
+9
-4
commands/pull_request.go
commands/pull_request.go
+9
-4
commands/release.go
commands/release.go
+12
-7
未找到文件。
commands/issue.go
浏览文件 @
4813e859
...
@@ -117,14 +117,19 @@ With no arguments, show a list of open issues.
...
@@ -117,14 +117,19 @@ With no arguments, show a list of open issues.
The text up to the first blank line in <MESSAGE> is treated as the issue
The text up to the first blank line in <MESSAGE> is treated as the issue
title, and the rest is used as issue description in Markdown format.
title, and the rest is used as issue description in Markdown format.
If multiple <MESSAGE> options are given, their values are concatenated as
When multiple '--message' are passed, their values are concatenated with a
separate paragraphs.
blank line in-between.
When neither '--message' nor '--file' were supplied to 'issue create', a
text editor will open to author the title and description in.
-F, --file <FILE>
-F, --file <FILE>
Read the issue title and description from <FILE>.
Read the issue title and description from <FILE>. Pass "-" to read from
standard input instead. See '--message' for the formatting rules.
-e, --edit
-e, --edit
Further edit the contents of <FILE> in a text editor before submitting.
Open the issue title and description in a text editor before submitting.
This can be used in combination with '--message' or '--file'.
-o, --browse
-o, --browse
Open the new issue in a web browser.
Open the new issue in a web browser.
...
...
commands/pull_request.go
浏览文件 @
4813e859
...
@@ -32,18 +32,23 @@ pull-request -i <ISSUE>
...
@@ -32,18 +32,23 @@ pull-request -i <ISSUE>
request title, and the rest is used as pull request description in Markdown
request title, and the rest is used as pull request description in Markdown
format.
format.
If multiple <MESSAGE> options are given, their values are concatenated as
When multiple '--message' are passed, their values are concatenated with a
separate paragraphs.
blank line in-between.
When neither '--message' nor '--file' were supplied, a text editor will open
to author the title and description in.
--no-edit
--no-edit
Use the message from the first commit on the branch as pull request title
Use the message from the first commit on the branch as pull request title
and description without opening a text editor.
and description without opening a text editor.
-F, --file <FILE>
-F, --file <FILE>
Read the pull request title and description from <FILE>.
Read the pull request title and description from <FILE>. Pass "-" to read
from standard input instead. See '--message' for the formatting rules.
-e, --edit
-e, --edit
Further edit the contents of <FILE> in a text editor before submitting.
Open the pull request title and description in a text editor before
submitting. This can be used in combination with '--message' or '--file'.
-i, --issue <ISSUE>
-i, --issue <ISSUE>
Convert <ISSUE> (referenced by its number) to a pull request.
Convert <ISSUE> (referenced by its number) to a pull request.
...
...
commands/release.go
浏览文件 @
4813e859
...
@@ -46,9 +46,9 @@ With '--exclude-prereleases', exclude non-stable releases from the listing.
...
@@ -46,9 +46,9 @@ With '--exclude-prereleases', exclude non-stable releases from the listing.
Edit the GitHub release for the specified <TAG> name. Accepts the same
Edit the GitHub release for the specified <TAG> name. Accepts the same
options as _create_ command. Publish a draft with '--draft=false'.
options as _create_ command. Publish a draft with '--draft=false'.
W
hen <MESSAGE> or <FILE> are not specified, a text editor will open
W
ithout '--message' or '--file', a text editor will open pre-populated with
pre-populated with current release title and body. To re-use existing title
the current release title and body. To re-use existing title and body
and body
unchanged, pass '-m ""'.
unchanged, pass '-m ""'.
* _download_:
* _download_:
Download the assets attached to release for the specified <TAG>.
Download the assets attached to release for the specified <TAG>.
...
@@ -77,14 +77,19 @@ With '--exclude-prereleases', exclude non-stable releases from the listing.
...
@@ -77,14 +77,19 @@ With '--exclude-prereleases', exclude non-stable releases from the listing.
The text up to the first blank line in <MESSAGE> is treated as the release
The text up to the first blank line in <MESSAGE> is treated as the release
title, and the rest is used as release description in Markdown format.
title, and the rest is used as release description in Markdown format.
If multiple <MESSAGE> options are given, their values are concatenated as
When multiple '--message' are passed, their values are concatenated with a
separate paragraphs.
blank line in-between.
When neither '--message' nor '--file' were supplied to 'release create', a
text editor will open to author the title and description in.
-F, --file <FILE>
-F, --file <FILE>
Read the release title and description from <FILE>.
Read the release title and description from <FILE>. Pass "-" to read from
standard input instead. See '--message' for the formatting rules.
-e, --edit
-e, --edit
Further edit the contents of <FILE> in a text editor before submitting.
Open the release title and description in a text editor before submitting.
This can be used in combination with '--message' or '--file'.
-o, --browse
-o, --browse
Open the new release in a web browser.
Open the new release in a web browser.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录