Skip to main content

このバージョンの GitHub Enterprise はこの日付をもって終了となりました: 2022-10-12. 重大なセキュリティの問題に対してであっても、パッチリリースは作成されません。 パフォーマンスの向上、セキュリティの向上、新機能の向上を図るために、最新バージョンの GitHub Enterprise にアップグレードします。 アップグレードに関するヘルプについては、GitHub Enterprise サポートにお問い合わせく� さい

プルリクエストへのコメント

リポジトリのプルリクエストのオープン後、コラボレーターや Team メンバーは、特定の 2 つのブランチ間におけるファイルの比較について、またプロジェクト全体についてコメントできます。

プルリクエストのコメントについて

pull request の [Conversation](会話) タブには、一般的なコメント、質問、提案などを書き込むことができます。 プルリクエストの作者がコメントから直接適用できる変更を提案することもできます。

プルリクエストの会話

または、pull request の [Files changed](変更したファイル) タブにあるファイルの特定のセクションについては、個々の行コメントの形式で、または pull request レビューの一部として、コメントすることもできます。 行コメントを追� することは、インプリメンテーションについての問題を話し合ったり、作者にフィードバックを行ったりする上でよい方法です。

pull request レビューへの行コメントの追� に関する詳細については、「pull request で提案された変更をレビューする」を参照してく� さい。

注: pull request に対してメールで返信する� �合、コメントは、pull request レビューの一部としてではなく、 [Conversation](会話) タブに追� されます。

既存の行コメントに返信するには、 [Conversation](会話) タブまたは [Files changed](変更したファイル) タブのいずれかでコメントに移動して、その下に追� の行コメントを追� します。

ヒント:

  • pull request のコメントは、GitHub Enterprise Server のコメントと同じフォーマット (@mentions、絵文字、参照など) をサポートしています。
  • pull request 内のコメントに対する反応は、 [Files changed](変更したファイル) タブに追� できます。

プルリクエストに行コメントを追� する

  1. リポジトリ名の下にある [pull request] をクリックします。 [pull request] タブの選択
  2. プルリクエストのリストで、行コメントをしたいプルリクエストをクリックします。
  3. On the pull request, click Files changed. Pull Request Files changed tab 1. コメントを追� するコード行にカーソルを合わせ、青いコメント アイコンをクリックします。 複数行にコメントを追� するには、クリックしてドラッグして行の範囲を選択し、青いコメント アイコンをクリックします。 青いコメント アイコン 1. コメントフィールドにコメントを入力してく� さい。 コメント フィールド 1. Optionally, to suggest a specific change to the line or lines, click , then edit the text within the suggestion block. Suggestion block
  4. 完了したら、 [Add single comment](1 つのコメントの追� ) をクリックします。 行内コメントのウィンドウ

プルリクエストまたはリポジトリを Watch している全員が、コメントの通知を受信します。

Resolving conversations

You can resolve a conversation in a pull request if you opened the pull request or if you have write access to the repository where the pull request was opened.

To indicate that a conversation on the Files changed tab is complete, click Resolve conversation.

Pull request conversation with Resolve conversation button

The entire conversation will be collapsed and marked as resolved, making it easier to find conversations that still need to be addressed.

Resolved conversation

If the suggestion in a comment is out of your pull request's scope, you can open a new issue that tracks the feedback and links back to the original comment. For more information, see "Opening an issue from a comment."

Discovering and navigating conversations

You can discover and navigate to all the conversations in your pull request using the Conversations menu that's shown at the top of the Files Changed tab.

From this view, you can see which conversations are unresolved, resolved, and outdated. This makes it easy to discover and resolve conversations.

Showing the conversations menu

参考資料