mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-08 08:56:35 +02:00
Merge pull request #124 from jrafanie/not_in_issue_pr_filter
Add cheat for documented but not visible negative and merged filters.
This commit is contained in:
32
README.md
32
README.md
@@ -23,6 +23,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
|
|||||||
- [Cross-Link Issues](#cross-link-issues)
|
- [Cross-Link Issues](#cross-link-issues)
|
||||||
- [Locking Conversations](#locking-conversations)
|
- [Locking Conversations](#locking-conversations)
|
||||||
- [CI Status on Pull Requests](#ci-status-on-pull-requests)
|
- [CI Status on Pull Requests](#ci-status-on-pull-requests)
|
||||||
|
- [Filters](#filters)
|
||||||
- [Syntax Highlighting in Markdown Files](#syntax-highlighting-in-markdown-files)
|
- [Syntax Highlighting in Markdown Files](#syntax-highlighting-in-markdown-files)
|
||||||
- [Emojis](#emojis)
|
- [Emojis](#emojis)
|
||||||
- [Images/GIFs](#imagesgifs)
|
- [Images/GIFs](#imagesgifs)
|
||||||
@@ -287,6 +288,37 @@ If set up correctly, every time you receive a Pull Request, [Travis CI](https://
|
|||||||
|
|
||||||
[*Read more about the commit status API.*](https://github.com/blog/1227-commit-status-api)
|
[*Read more about the commit status API.*](https://github.com/blog/1227-commit-status-api)
|
||||||
|
|
||||||
|
### Filters
|
||||||
|
|
||||||
|
Both issues and pull requests allow filtering in the user interface.
|
||||||
|
|
||||||
|
For the Rails repo: https://github.com/rails/rails/issues, the following filter is built by selecting the label "activerecord":
|
||||||
|
|
||||||
|
`is:issue label:activerecord`
|
||||||
|
|
||||||
|
But, you can also find all issues that are NOT labeled activerecord:
|
||||||
|
|
||||||
|
`is:issue -label:activerecord`
|
||||||
|
|
||||||
|
Additionally, this also works for pull requests:
|
||||||
|
|
||||||
|
`is:pr -label:activerecord`
|
||||||
|
|
||||||
|
Github has tabs for displaying open or closed issues and pull requests but you
|
||||||
|
can also see merged pull requests. Just put the following in the filter:
|
||||||
|
|
||||||
|
`is:merged`
|
||||||
|
|
||||||
|
[*Read more about searching issues.*](https://help.github.com/articles/searching-issues)
|
||||||
|
|
||||||
|
Finally, github now allows you to filter by the Status API's status.
|
||||||
|
|
||||||
|
Pull requests with only successful statuses:
|
||||||
|
|
||||||
|
`status:success`
|
||||||
|
|
||||||
|
[*Read more about searching on the Status API.*](https://github.com/blog/2014-filter-pull-requests-by-status)
|
||||||
|
|
||||||
### Syntax Highlighting in Markdown Files
|
### Syntax Highlighting in Markdown Files
|
||||||
For example, to syntax highlight Ruby code in your Markdown files write:
|
For example, to syntax highlight Ruby code in your Markdown files write:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user