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
  • Save octonato/cf10009e38a3e8664ff71d2a85ba4de9 to your computer and use it in GitHub Desktop.
Save octonato/cf10009e38a3e8664ff71d2a85ba4de9 to your computer and use it in GitHub Desktop.
Gmail and GitHub - Filters

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])

label: gh-assignments

Mentions

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

label: gh-mentions

Review Requested

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

label: gh-review-requested

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).
  • 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:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment