{"meta":{"title":"使用查询参数自动化发行版表单","intro":"要通过使用自定义信息自动填充新发行版表单来快速创建发行版，可以添加查询参数到发行版表单页面的 URL。","product":"存储库","breadcrumbs":[{"href":"/zh/repositories","title":"存储库"},{"href":"/zh/repositories/releasing-projects-on-github","title":"发布项目"},{"href":"/zh/repositories/releasing-projects-on-github/automation-for-release-forms-with-query-parameters","title":"自动发布表单"}],"documentType":"article"},"body":"# 使用查询参数自动化发行版表单\n\n要通过使用自定义信息自动填充新发行版表单来快速创建发行版，可以添加查询参数到发行版表单页面的 URL。\n\n查询参数是 URL 的可选部分，可以自定义以共享特定的网页视图，例如搜索结果、问题模板或发布 GitHub表单页面。 要创建自己的查询参数，必须将键与值进行配对。\n\n必须具有适当的权限才可执行使用相关查询参数的操作。 例如，必须具有创建发行版的权限才可预填发行版表单。 有关详细信息，请参阅“[管理存储库中的发行版](/zh/repositories/releasing-projects-on-github/managing-releases-in-a-repository)”。\n\n如果使用查询参数创建无效的 URL，或者没有适当的权限，URL 将返回 404 错误页。\n\n## 支持的查询参数\n\n| 查询参数                                                                                                                 | 示例 |\n| -------------------------------------------------------------------------------------------------------------------- | -- |\n| `tag`                                                                                                                |    |\n| `https://github.com/octo-org/octo-repo/releases/new?tag=v1.0.1` 基于名为“v1.0.1”的标记创建发行版本。                               |    |\n| `target`                                                                                                             |    |\n| `https://github.com/octo-org/octo-repo/releases/new?target=release-1.0.1` 基于对“release-1.0.1”分支的最新提交创建发布。             |    |\n| `title`                                                                                                              |    |\n| `https://github.com/octo-org/octo-repo/releases/new?tag=v1.0.1&title=octo-1.0.1` 基于名为“v1.0.1”的标签创建名为“octo-1.0.1”的发布。 |    |\n| `body`                                                                                                               |    |\n| `https://github.com/octo-org/octo-repo/releases/new?body=Adds+widgets+support` 创建在发布正文中包含描述“添加小组件支持”的发布。             |    |\n| `prerelease`                                                                                                         |    |\n| `https://github.com/octo-org/octo-repo/releases/new?prerelease=1` 创建标识为非生产就绪的发布。                                     |    |\n\n## 其他阅读材料\n\n* [创建议题](/zh/issues/tracking-your-work-with-issues/using-issues/creating-an-issue#creating-an-issue-from-a-url-query)\n* [使用查询参数创建拉取请求](/zh/pull-requests/reference/using-query-parameters-to-create-a-pull-request)"}