8000 Merge pull request #124 from jrafanie/not_in_issue_pr_filter · kevinSuttle/github-cheat-sheet@96f050f · GitHub
[go: up one dir, main page]

Skip to content

Commit 96f050f

Browse files
committed
Merge pull request tiimgreen#124 from jrafanie/not_in_issue_pr_filter
Add cheat for documented but not visible negative and merged filters.
2 parents 517c054 + ce79653 commit 96f050f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
2323
- [Cross-Link Issues](#cross-link-issues)
2424
- [Locking Conversations](#locking-conversations)
2525
- [CI Status on Pull Requests](#ci-status-on-pull-requests)
26+
- [Filters](#filters)
2627
- [Syntax Highlighting in Markdown Files](#syntax-highlighting-in-markdown-files)
2728
- [Emojis](#emojis)
2829
- [Images/GIFs](#imagesgifs)
@@ -287,6 +288,37 @@ If set up correctly, every time you receive a Pull Request, [Travis CI](https://
287288

288289
[*Read more about the commit status API.*](https://github.com/blog/1227-commit-status-api)
289290

291+
### Filters
292+
293+
Both issues and pull requests allow filtering in the user interface.
294+
295+
For the Rails repo: https://github.com/rails/rails/issues, the following filter is built by selecting the label "activerecord":
296+
297+
`is:issue label:activerecord`
298+
299+
But, you can also find all issues that are NOT labeled activerecord:
300+
301+
`is:issue -label:activerecord`
302+
303+
Additionally, this also works for pull requests:
304+
305+
`is:pr -label:activerecord`
306+
307+
Github has tabs for displaying open or closed issues and pull requests but you
308+
can also see merged pull requests. Just put the following in the filter:
309+
310+
`is:merged`
311+
312+
[*Read more about searching issues.*](https://help.github.com/articles/searching-issues)
313+
314+
Finally, github now allows you to filter by the Status API's status.
315+
316+
Pull requests with only successful statuses:
317+
318+
`status:success`
319+
320+
[*Read more about searching on the Status API.*](https://github.com/blog/2014-filter-pull-requests-by-status)
321+
290322
### Syntax Highlighting in Markdown Files
291323
For example, to syntax highlight Ruby code in your Markdown files write:
292324

0 commit comments

Comments
 (0)
0