ドキュメントには頻繁に更新が加えられ、その都度公開されています。本ページの翻訳はまだ未完成な部分があることをご了承ください。最新の情報については、英語のドキュメンテーションをご参照ください。本ページの翻訳に問題がある場合はこちらまでご連絡ください。

Searching discussions

You can search for discussions on GitHub and narrow the results using search qualifiers.

ここには以下の内容があります:

ノート: GitHub Discussionsは現在ベータで、変更されることがあります。

About searching for discussions

You can search for discussions globally across all of GitHub, or search for discussions within a particular organization or repository. 詳細は「GitHub での検索について」を参照してください。

Tips:

  • 検索結果を改良する検索修飾子を追加できる検索構文のリストについては、「検索構文を理解する」を参照してください。
  • 複数単語の検索用語は引用符で囲みます。 たとえば "In progress" というラベルを持つ Issue を検索したい場合は、label:"in progress" とします。 検索では、大文字と小文字は区別されません。

タイトル、本文、またはコメントで検索

With the in qualifier you can restrict your search for discussions to the title, body, or comments. You can also combine qualifiers to search a combination of title, body, or comments. When you omit the in qualifier, GitHub searches the title, body, and comments.

修飾子サンプル
in:titlewelcome in:title matches discussions with "welcome" in the title.
in:bodyonboard in:title,body matches discussions with "onboard" in the title or body.
in:commentsthanks in:comments matches discussions with "thanks" in the comments for the discussion.

ユーザまたは Organization のリポジトリ内の検索

To search discussions in all repositories owned by a certain user or organization, you can use the user or org qualifier. To search discussions in a specific repository, you can use the repo qualifier.

修飾子サンプル
user:USERNAMEuser:octocat feedback matches discussions with the word "feedback" from repositories owned by @octocat.
org:ORGNAMEorg:github matches discussions in repositories owned by the GitHub organization.
repo:USERNAME/REPOSITORYrepo:nodejs/node created:<2021-01-01 matches discussions from @nodejs' Node.js runtime project that were created before January 2021.

リポジトリの可視性によるフィルタ

You can filter by the visibility of the repository containing the discussions using the is qualifier. 詳細は「リポジトリの可視性について」を参照してください。

| Qualifier | Example | :- | :- | | is:public | is:public matches discussions in public repositories. | is:internal | is:internal matches discussions in internal repositories. | is:private | is:private tiramisu matches discussions that contain the word "tiramisu" in private repositories you can access.

作者で検索

The author qualifier finds discussions created by a certain user.

修飾子サンプル
author:USERNAMEcool author:octocat matches discussions with the word "cool" that were created by @octocat.
bootstrap in:body author:octocat matches discussions created by @octocat that contain the word "bootstrap" in the body.

コメントした人で検索

The commenter qualifier finds discussions that contain a comment from a certain user.

修飾子サンプル
commenter:USERNAMEgithub commenter:becca org:github matches discussions in repositories owned by GitHub, that contain the word "github," and have a comment by @becca.

Search by a user that's involved in a discussion

You can use the involves qualifier to find discussions that involve a certain user. The qualifier returns discussions that were either created by a certain user, mention the user, or contain comments by the user. The involves qualifier is a logical OR between the author, mentions, and commenter qualifiers for a single user.

修飾子サンプル
involves:USERNAMEinvolves:becca involves:octocat matches discussions either @becca or @octocat are involved in.
NOT beta in:body involves:becca matches discussions @becca is involved in that do not contain the word "beta" in the body.

コメントの数で検索

You can use the comments qualifier along with greater than, less than, and range qualifiers to search by the number of comments. 詳しい情報については、「検索構文を理解する」を参照してください。

修飾子サンプル
comments:ncomments:>100 matches discussions with more than 100 comments.
comments:500..1000 matches discussions with comments ranging from 500 to 1,000.

インタラクションの数で検索

You can filter discussions by the number of interactions with the interactions qualifier along with greater than, less than, and range qualifiers. The interactions count is the number of reactions and comments on a discussion. 詳しい情報については、「検索構文を理解する」を参照してください。

修飾子サンプル
interactions:n interactions:>2000 matches discussions with more than 2,000 interactions.
interactions:500..1000 matches discussions with interactions ranging from 500 to 1,000.

リアクションの数で検索

You can filter discussions by the number of reactions using the reactions qualifier along with greater than, less than, and range qualifiers. 詳しい情報については、「検索構文を理解する」を参照してください。

修飾子サンプル
reactions:n reactions:>1000 matches discussions with more than 500 reactions.
reactions:500..1000 matches discussions with reactions ranging from 500 to 1,000.

Search by when a discussion was created or last updated

You can filter discussions based on times of creation, or when the discussion was last updated. For discussion creation, you can use the created qualifier; to find out when an discussion was last updated, use the updated qualifier.

Both qualifiers take a date as a parameter. 日付の形式は ISO8601標準に従い、YYYY-MM-DD(年-月-日) とする必要があります。 オプションの時間情報のTHH:MM:SS+00:00を日付の後に付けて、時、分、秒で検索できるようにすることもできます。 これはTの後にHH:MM:SS(時-分-秒)、そしてUTCオフセット(+00:00)を続けたものです。

When you search for a date, you can use greater than, less than, and range qualifiers to further filter results. 詳しい情報については、「検索構文を理解する」を参照してください。

修飾子サンプル
created:YYYY-MM-DDcreated:>2020-11-15 matches discussions that were created after November 15, 2020.
updated:YYYY-MM-DDweird in:body updated:>=2020-02-01 matches discussions with the word "weird" in the body that were updated after December 2020.

参考リンク

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

OR, learn how to contribute.