Technitribe

interesting problems (and a few solutions, too)

Technitribe
  • About the Authors
  • Log In
  • Log Out
  • Lost Password
  • Register
  • Reset Password
    • 20 Jan 2017

      [Updated] GitHub + Gmail — Filtering for Review Requests and Mentions

      Written by Tim Bielawa

      Update – 2017-01-27

      Just 3 days after publishing this blog post GitHub made a new blog post:

      Pull request reviews are a great way to share the weight of building software, and with review requests you can get the exact feedback you need.

      To make it easier to find the pull requests that need your attention, you can now filter by review status from your repository pull request index.

      Source: Filter pull request reviews and review requests

      I have tried this out and it’s great! Like most everything else on GitHub it’s very intuitive and simple to use. I won’t steal their thunder and describe it all here. So go check out the blog post for yourself and read up on the details (screenshots included!).

      Continue reading if you’re still interested in incorporating this kind of filtering and labeling into your Gmail account.

      The Problem

      I’ve been looking for a way to filter my GitHub Pull Request lists under the condition that a review is requested of me. The online docs didn’t show any filter options for this, so I checked out the @GitHubHelp twitter account. The answer was there on the front page — they don’t support filtering PRs by review-requested-by:me yet:

      @zaghnaboot Adding a filter for reviewers is definitely on our radar, though I don’t have a specific timeline to share. –SJ

      — GitHub Support (@GitHubHelp) January 19, 2017

      So what is one to do? I’m using Gmail so I began considering what filter options were available to me there. My objectives were to clearly label and highlight:

      •  PRs where review has been requested
      • Comments where I am @mention‘d

      Interested in knowing more? Read on after the break for all the setup details.

      Review Requested

      Applying labels for PRs where a review is requested of me is a little hacky, but the solution I came up with works well enough. When your review is requested you should receive an email from GitHub with a predictable message in it

      @kwoodson requested your review on: openshift/openshift-ansible#3130 Adding oc_version to lib_openshift..

      That highlighted part there, requested your review on:, is the key.

      In Gmail we’re going to add a new filter. You can reach the new filter menu through the settings interface or by hitting the subtle little down-triangle (▾) left of the magnifying glass (🔍) button in the search bar.

      • In the “Has the words” input box put (in quotes!): "requested your review on:" (You can pick a specific repo if you wish by including it in the search terms)
      • Press the Create filter with this search » link

      • Use the “Apply the label” option to create a new label, for example, “Review Requested”
      • You might want to check the “Also apply filter to X matching conversations” box
      • Create the new filter

      Mentions

      Labeling @mention‘s in Gmail is a little easier and less prone to error than the review request filter could be. It also follows a similar process.

      1. Create a new filter
      2. In the “To” input box put: Mention <mention@noreply.github.com>
      3. Press the Create filter with this search » link
      4. Continue from step 4 in the previous example

       

       

      • Tags »
      • Filtering GitHub Gmail Gmail labels Mentions

    2 Comment on “[Updated] GitHub + Gmail — Filtering for Review Requests and Mentions”

    • Links 23/1/2017: Wine Releases, Microsoft Layoffs | Techrights

      23 Jan 2017 08:01 am

      […] GitHub + Gmail — Filtering for Review Requests and Mentions […]

    • Tim Bielawa: GitHub + Gmail — Filtering for Review Requests and Mentions – Kevinhng86 Blog

      23 Jan 2017 10:01 pm

      […] Source From: fedoraplanet.org | Original article title: Tim Bielawa: GitHub + Gmail — Filtering for Review Requests and Mentions | This full article can be read at: Tim Bielawa: GitHub + Gmail — Filtering for Review Requests and Mentions. […]

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    • The Authors
    • Virtual Disk Guide

      Interested in virtualization? Do QCOWs rule your filesystem? Are you a libvirt or KVM+QEMU wizard? I wrote a book about virtual disk management. Check out the The Linux Sysadmin's Guide to Virtual Disks online for free at ScribesGuides.com.


      Consider supporting the author by purchasing a hard copy of the first edition for just $10.00 on Lulu.com.

    • bitmath

      bitmath is a Python library for dealing with file size units (GiB's, kB's, etc) in a sane way. bitmath supports arithmetic, rich comparison, conversion, automatic best human-readable representation, and many other utility functions. Read some examples on the docs site or check out the source on GitHub.

    • latest posts

      • Querying block device sizes in Python on Linux and Mac OS X February 4, 2023
      • Using jq to filter an array of objects from JSON September 9, 2019
      • Two Year Break — And we’re back! November 16, 2018
    • tags

      bitmath blog conference css dblatex DNS DocBook eclipse Emacs Erlang Fedora fedora 22 filter GNU Screen Haiku Introduction java jboss LCSEE Linux locale locales fix slicehost ubuntu Macports module nist nXML-Mode opengl open source OS X package packaging pki prefix units presentation project pypi Python scholarship si summit Tutorial ubuntu xcode XML XMPP
    • h4ck teh world

      tbielawatbielawa
      • Watch
        spotDL/spotify-downloader
        March 27, 2023 - 2:52 pm UTC
      • Watch
        exaloop/codon
        March 19, 2023 - 3:05 pm UTC
      • Issue Comment
        hashicorp/vault
        March 2, 2023 - 2:40 pm UTC
      • Issue Comment
        bitmath
        February 15, 2023 - 10:26 pm UTC
      • Issue Comment
        bitmath
        February 15, 2023 - 10:25 pm UTC

Creative Commons License
Technitribe by Tim Bielawa is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.