加载笔记内容...
加载笔记内容...
注意:如果你的搜索语句包含特殊字符(比如 .
,:
,/
等),你可能需要在它们前面加上 \
来使其有效。例如,你需要搜索 user-content
,那么搜索语句就应该是 user\-content
。
希望这些搜索技巧可以帮助你更有效地找到所需要的信息!
如果你想在 GitHub 上查看某个人的所有 PR(Pull Requests)和 Issues,你可以使用以下的方法:
is:pr author:USERNAME
,其中 USERNAME
是你想要查找的 GitHub 用户名。Enter
或者点击搜索按钮。is:issue author:USERNAME
,其中 USERNAME
是你想要查找的 GitHub 用户名。Enter
或者点击搜索按钮。注意,你可以添加 repo:OWNER/REPO
到你的搜索中以便限制结果在某个特定的仓库。例如,如果你想查看某个用户在特定仓库的所有 PR,你可以输入 is:pr author:USERNAME repo:OWNER/REPO
。
在这里 OWNER
是仓库的所有者,REPO
是仓库的名字。
GitHub 提供了一套全面的搜索语法,以帮助你更精确地查找信息。以下是一些更多的高级搜索技巧:
is:pr is:open author:USERNAME
会搜索指定用户的所有打开的 Pull Requests。is:issue author:USERNAME created:2020-01-01..2020-12-31
会搜索指定用户在 2020 年内创建的所有 Issues。is:pr author:USERNAME comments:>=10
会搜索指定用户的评论数大于或等于 10 的所有 Pull Requests。is:pr author:USERNAME review:approved
会搜索指定用户的所有已经被审批的 Pull Requests。is:issue assignee:USERNAME
会搜索被指定用户分配的所有 Issues。is:pr mentions:USERNAME
会搜索提及指定用户的所有 Pull Requests。You can filter pull requests based on when they were merged, using the merged
qualifier.
This qualifier takes a date as its parameter. Date formatting must follow the ISO8601 standard, which is YYYY-MM-DD
(year-month-day). You can also add optional time information THH:MM:SS+00:00
after the date, to search by the hour, minute, and second. That's T
, followed by HH:MM:SS
(hour-minutes-seconds), and a UTC offset (+00:00
).
When you search for a date, you can use greater than, less than, and range qualifiers to further filter results. For more information, see "Understanding the search syntax."
Qualifier | Example |
---|---|
language:LANGUAGE merged:<YYYY-MM-DD | language:javascript merged:<2011-01-01 matches pull requests in JavaScript repositories that were merged before 2011. |
in:title language:LANGUAGE merged:>YYYY-MM-DD | fast in:title language:ruby merged:>=2014-05-01 matches pull requests in Ruby with the word "fast" in the title that were merged after May 2014. |
You can filter pull requests based on whether they're merged or unmerged using the is
qualifier.
Qualifier | Example |
---|---|
is:merged | bug is:pr is:merged matches merged pull requests with the word "bug." |
is:unmerged | error is:unmerged matches pull requests with the word "error" that are either open or were closed without being merged. |
点击直达我提交的被合并的PR:https://github.com/search?q=is%3Apr+author%3Apowerfulyang+is%3Amerged+&type=pullrequests