python / python/devguide

Document Gmail search queries/filters

Đang mở
#860 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@ezio-melotti đang làm issue này rồi.

Từ ngày 8/5/2022.

good first issue help wanted topic-github type-feature
Ngôn ngữ chính
Python
Star
2.1k
Fork
1k
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
12

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.