@@ -23,6 +23,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
23
23
- [ Cross-Link Issues] ( #cross-link-issues )
24
24
- [ Locking Conversations] ( #locking-conversations )
25
25
- [ CI Status on Pull Requests] ( #ci-status-on-pull-requests )
26
+ - [ Filters] ( #filters )
26
27
- [ Syntax Highlighting in Markdown Files] ( #syntax-highlighting-in-markdown-files )
27
28
- [ Emojis] ( #emojis )
28
29
- [ Images/GIFs] ( #imagesgifs )
@@ -287,6 +288,37 @@ If set up correctly, every time you receive a Pull Request, [Travis CI](https://
287
288
288
289
[ * Read more about the commit status API.* ] ( https://github.com/blog/1227-commit-status-api )
289
290
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
+
290
322
### Syntax Highlighting in Markdown Files
291
323
For example, to syntax highlight Ruby code in your Markdown files write:
292
324
0 commit comments