{"meta":{"title":"クエリ パラメーターを使って pull request を作成する","intro":"クエリ パラメーターを使用して、事前入力されたタイトル、説明、ラベルなどを含むプル要求を開くカスタム URL を作成します。","product":"Pull Request","breadcrumbs":[{"href":"/ja/enterprise-cloud@latest/pull-requests","title":"Pull Request"},{"href":"/ja/enterprise-cloud@latest/pull-requests/reference","title":"Reference"},{"href":"/ja/enterprise-cloud@latest/pull-requests/reference/using-query-parameters-to-create-a-pull-request","title":"クエリ パラメーターを使って pull request を作成する"}],"documentType":"article"},"body":"# クエリ パラメーターを使って pull request を作成する\n\nクエリ パラメーターを使用して、事前入力されたタイトル、説明、ラベルなどを含むプル要求を開くカスタム URL を作成します。\n\n比較 URL にクエリ パラメーターを追加して、事前に設定されたフィールドを含むプル要求を開くことができます。 pull request テンプレートについては、 [リポジトリ用のプルリクエストテンプレートの作成](/ja/enterprise-cloud@latest/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository) を参照してください。\n\n| パラメーター       | Purpose                                                                             | 例                                                                                                                  |\n| ------------ | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |\n| `quick_pull` | 比較されたブランチの \\[Pull request を開く] ページを開きます。                                            | `https://github.com/octo-org/octo-repo/compare/main...my-branch?quick_pull=1`                                      |\n| `title`      | pull request タイトルを追加します。 スペースには `+` を使用します。                                         | `https://github.com/octo-org/octo-repo/compare/main...my-branch?quick_pull=1&labels=bug&title=Bug+fix`             |\n| `body`       | pull request 本文にテキストを追加します。 スペースには `+` を使用します。                                      | `https://github.com/octo-org/octo-repo/compare/main...my-branch?quick_pull=1&title=Bug+fix&body=Describe+the+fix.` |\n| `labels`     | 1 つ以上のラベルを追加します。 複数のラベルはコンマで区切ります。                                                  | `https://github.com/octo-org/octo-repo/compare/main...my-branch?quick_pull=1&labels=help+wanted,bug`               |\n| `milestone`  | マイルストーンを追加します。 スペースには `+` を使用します。                                                   | `https://github.com/octo-org/octo-repo/compare/main...my-branch?quick_pull=1&milestone=testing+milestones`         |\n| `assignees`  | プル要求を 1 人以上のユーザーに割り当てます。 複数のユーザーをコンマで区切ります。                                         | `https://github.com/octo-org/octo-repo/compare/main...my-branch?quick_pull=1&assignees=octocat`                    |\n| `projects`   | プル要求をプロジェクトに追加します。                                                                  | `https://github.com/octo-org/octo-repo/compare/main...my-branch?quick_pull=1&title=Bug+fix&projects=octo-org/1`    |\n| `template`   | ルート、`docs/`、または`.github/` ディレクトリの`PULL_REQUEST_TEMPLATE`サブディレクトリからプル要求テンプレートを追加します。 | `https://github.com/octo-org/octo-repo/compare/main...my-branch?quick_pull=1&template=issue_template.md`           |\n\nクエリ パラメーターを使用するには、同等のアクションを完了するためのアクセス許可が必要です。 たとえば、 `labels`を使用するラベルを追加する権限が必要です。 「[Organizationのリポジトリロール](/ja/enterprise-cloud@latest/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization)」を参照してください。\n\nクエリ パラメーターが無効であるか、アクセス許可が不十分な場合、 `404 Not Found` エラーが返されます。 サーバーの制限を超える URL は、 `414 URI Too Long` エラーを返します。"}