Skip to content

Instantly share code, notes, and snippets.

@octonato
Forked from ldez/gmail-github-filters.md
Created April 8, 2020 10:21
Show Gist options
  • Select an option

  • Save octonato/cf10009e38a3e8664ff71d2a85ba4de9 to your computer and use it in GitHub Desktop.

Select an option

Save octonato/cf10009e38a3e8664ff71d2a85ba4de9 to your computer and use it in GitHub Desktop.

Revisions

  1. @ldez ldez revised this gist Jul 6, 2017. 1 changed file with 21 additions and 27 deletions.
    48 changes: 21 additions & 27 deletions gmail-github-filters.md
    Original file line number Diff line number Diff line change
    @@ -12,20 +12,12 @@ label: `gh-pull-request`

    from:([email protected]) cc:([email protected])

    or

    from:([email protected]) "Assigned to @ldez"

    label: `gh-assignments`

    ## Mentions

    from:([email protected]) cc:([email protected])

    or

    from:([email protected]) @ldez

    label: `gh-mentions`

    ## Review Requested
    @@ -34,25 +26,7 @@ label: `gh-mentions`

    label: `gh-review-requested`

    ## Closed (~)

    from:([email protected]) "Closed \#"

    label: `gh-closed`

    ## Merged (~)

    from:([email protected]) "Merged \#"

    label: `gh-merged`

    ## Issue (~)

    from:([email protected]) "What did you expect to see?"

    label: `gh-issue`

    ## More
    ## GitHub emails

    - `subscribed`: The notification arrived because you’re watching the repository.
    - `manual`: The notification arrived because you’ve specifically decided to subscribe to the thread (via an Issue or Pull Request).
    @@ -68,6 +42,26 @@ example:
    - [email protected]
    - [email protected]

    ## Approximate rules

    ### Closed (~)

    from:([email protected]) "Closed \#"

    label: `gh-closed`

    ### Merged (~)

    from:([email protected]) "Merged \#"

    label: `gh-merged`

    ### Issue (~)

    from:([email protected]) "What did you expect to see?"

    label: `gh-issue`

    ## References

    - http://radek.io/2015/06/07/5-useful-gmail-filters-for-github-users/
  2. @ldez ldez revised this gist Apr 13, 2017. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions gmail-github-filters.md
    Original file line number Diff line number Diff line change
    @@ -28,6 +28,12 @@ or

    label: `gh-mentions`

    ## Review Requested

    from:([email protected]) {cc:([email protected]) "requested your review on"}

    label: `gh-review-requested`

    ## Closed (~)

    from:([email protected]) "Closed \#"
    @@ -46,12 +52,6 @@ label: `gh-merged`

    label: `gh-issue`

    ## Review Requested

    from:([email protected]) {cc:([email protected]) "requested your review on"}

    label: `gh-review-requested`

    ## More

    - `subscribed`: The notification arrived because you’re watching the repository.
  3. @ldez ldez created this gist Apr 13, 2017.
    77 changes: 77 additions & 0 deletions gmail-github-filters.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,77 @@
    # Gmail and GitHub

    Create new filters and create new labels.

    ## Pull Request

    from:([email protected]) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}

    label: `gh-pull-request`

    ## Assignments

    from:([email protected]) cc:([email protected])

    or

    from:([email protected]) "Assigned to @ldez"

    label: `gh-assignments`

    ## Mentions

    from:([email protected]) cc:([email protected])

    or

    from:([email protected]) @ldez

    label: `gh-mentions`

    ## Closed (~)

    from:([email protected]) "Closed \#"

    label: `gh-closed`

    ## Merged (~)

    from:([email protected]) "Merged \#"

    label: `gh-merged`

    ## Issue (~)

    from:([email protected]) "What did you expect to see?"

    label: `gh-issue`

    ## Review Requested

    from:([email protected]) {cc:([email protected]) "requested your review on"}

    label: `gh-review-requested`

    ## More

    - `subscribed`: The notification arrived because you’re watching the repository.
    - `manual`: The notification arrived because you’ve specifically decided to subscribe to the thread (via an Issue or Pull Request).
    - `author`: The notification arrived because you’ve created the thread.
    - `comment`: The notification arrived because you’ve commented on the thread.
    - `mention`: The notification arrived because you were specifically @mentioned in the content.
    - `team_mention`: The notification arrived because you were on a team that was mentioned (like @org/team).
    - `state_change`: The notification arrived because you changed the thread state (like closing an Issue or merging a Pull Request).
    - `assign`: The notification arrived because you were assigned to the Issue.
    - `review_requested`: The notification arrived because your review is required.

    example:
    - [email protected]
    - [email protected]

    ## References

    - http://radek.io/2015/06/07/5-useful-gmail-filters-for-github-users/
    - http://lyzidiamond.com/posts/github-notifications-google-script
    - http://126kr.com/article/8t3endsbz2q
    - https://developer.github.com/v3/activity/notifications/#notification-reasons
    - https://support.google.com/mail/answer/7190?hl=en