X Tutup
The Wayback Machine - https://web.archive.org/web/20221219150935/https://github.com/python/devguide/issues/860
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Gmail search queries/filters #860

Open
ezio-melotti opened this issue May 8, 2022 · 0 comments
Open

Document Gmail search queries/filters #860

ezio-melotti opened this issue May 8, 2022 · 0 comments

Comments

@ezio-melotti
Copy link
Member

ezio-melotti commented May 8, 2022

I spent some time figuring out some useful search queries for Gmail that can also be used as filters (e.g. to assign label):

  • Issues: subject:(Issue -PR)
    • might miss some issues that include "PR" in the subject
  • PRs: subject:(PR)
    • might include some issues that include "PR" in the subject
    • subject:(PR -Issue) could be used instead
      • it will miss PRs that include "issue" (somewhat more common)
  • Merged PRs: subject:PR ((Merged AROUND 1 "into main") OR (Merged AROUND 1 "into master"))
    • You can add entries for other branches too (e.g. (Merged AROUND 1 "into 3.10"))
    • Still has a few false positives
      • "I merged into main" or "I merged this into main" match (because "into main" is within 1 word of "merged")
      • "I merged this PR into main" doesn't match (because "into main" is 2+ words away from "merged")
  • Closed issues: subject:Issue "closed"
    • quite unreliable -- it matches any issue that contains the word "closed"
  • Closed issues (by a linked PR): subject:Issue "closed AROUND 1 via"
    • pretty reliable, but only works for issues closed automatically by a linked PR

Note:

This should be documented somewhere in the devguide, so that other people could easily copy them to set up filters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants
X Tutup