Skip to main content

Participating in a discussion

You can converse with the community and maintainers in a forum within the repository for a project on GitHub Enterprise Cloud.

Who can use this feature

People with read access to a repository can participate in discussions and polls in the repository. People with read access to the source repository for organization discussions can participate in discussions and polls in that organization. Members of an enterprise with managed users can only interact with repositories within their enterprise.

About participation in a discussion

GitHub Discussions 是在 GitHub Enterprise Cloud 上供存储库或组织的维护者和社区之间进行对话的开放论坛。 For more information, see "About discussions."

In addition to starting or viewing discussions and polls, you can:

  • Comment in response to the original comment from the author of the discussion
  • Create a comment thread by replying to an individual comment that another community member made within the discussion
  • React to comments with emoji
  • Upvote discussions and top-level comments to give them more visibility

You can block users and report disruptive content to maintain a safe and pleasant environment for yourself on GitHub Enterprise Cloud. For more information, see "Maintaining your safety on GitHub."

Prerequisites

GitHub Discussions must be enabled for the repository or organization for you to participate in a discussion in the repository or organization. For more information, see "Enabling or disabling GitHub Discussions for a repository" and "Enabling or disabling GitHub Discussions for an organization."

Creating a discussion

  1. On GitHub.com, navigate to the main page of the repository or organization where you want to start a discussion.
  2. 在存储库或组织名称下,单击 “讨论”。 存储库的“讨论”选项卡
  3. Click New discussion. "New discussion" button within the "Discussions" tab for a repository
  4. Select the Select Category drop-down menu, and click a category for your discussion. "Select Category" drop-down menu and list of available categories in a repository
  5. Type a title and body for your discussion. Text fields for new discussion's title and body
  6. Click Start discussion. "Start discussion" button

Creating a poll

  1. On GitHub.com, navigate to the main page of the repository. 1. 在存储库或组织名称下,单击 “讨论”。 存储库的“讨论”选项卡
  2. 在类别列表中,单击“投票”。 显示“投票”类别的屏幕截图
  3. 在右侧,单击“开始投票”。 显示“开始投票”按钮的屏幕截图
  4. 为投票键入标题和可选正文。 显示标题和正文的文本字段的屏幕截图
  5. 输入投票问题。 显示投票问题的文本字段的屏幕截图
  6. 至少输入两个投票选项。 显示投票选项的文本字段的屏幕截图
  7. (可选)若要添加额外的投票选项,请单击“添加选项”。 显示“添加选项”按钮的屏幕截图
  8. 单击“开始投票”。 显示“开始投票”按钮的屏幕截图

Marking a comment as an answer

Discussion authors and users with the triage role or greater for a repository can mark a comment as the answer to a discussion in the repository. Similarly, discussion authors and users with the triage role or greater for the source repository for organization discussions can mark a comment as the answer to a discussion in the organization.

如果讨论属于接受答案的类别,您可以将讨论中的评论标记为讨论的答案。 有关详细信息,请参阅“关于讨论”。

当您将问题标记为答案时,GitHub Enterprise Cloud 将突出显示注释和对评论的回复,以帮助访问者快速找到答案。

评论标记为讨论的答案

您不能将评论回复标记为讨论的答案。 您也不能将最小化的评论标记为讨论的答案。

  1. On GitHub.com, navigate to the main page of the repository or organization. 1. 在存储库或组织名称下,单击 “讨论”。 存储库的“讨论”选项卡
  2. 在讨论列表中,单击要标记为已回答的未回答讨论。 未回答的讨论
  3. 在讨论中,找到要标记为答案的评论。
  4. 在评论的右上角,单击 用于将注释标记为讨论答案的“标记为答案”圆形复选图标
  5. (可选)要将评论取消标记为答案,请单击

Upvoting a discussion

You can upvote discussions to give more visibility to the topics that matter to you, and sort discussions to see which have been upvoted the most. For more information on sorting discussions, see "Sorting the list of discussions."

  1. On GitHub.com, navigate to the main page of the repository.

  2. 在存储库或组织名称下,单击 “讨论”。 存储库的“讨论”选项卡

  3. In the list of discussions, find the discussion you want to upvote.

  4. To the left of the discussion, click the upvote arrow.

    Discussion list and upvote button for upvoting discussions

  5. Optionally, click the upvote arrow again to remove your upvote.

Upvoting a comment

You can upvote top-level comments in discussions, and sort top-level comments to see which comments have been upvoted the most. For more information on sorting comments, see "Sorting top-level comments in discussions."

  1. On GitHub.com, navigate to the main page of the repository.

  2. 在存储库或组织名称下,单击 “讨论”。 存储库的“讨论”选项卡

  3. 在讨论列表中,单击要查看的讨论。 讨论列表中的讨论

  4. In the discussion, find a top-level comment you want to upvote.

  5. Click on the upvote arrow at the bottom left of the comment.

    Top-level comment and upvote button for upvoting comments

  6. Optionally, click the upvote arrow again to remove your upvote.