Skip to content

Commit

Permalink
chore: refine pr reminder bot (#9317)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn committed Jun 24, 2022
1 parent 42c832f commit 3dde551
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions scripts/pr_reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
docs_cn_url = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr'
docs_url = 'https://github.com/pingcap/docs/pulls?q=is%3Apr'
open_url = '+is%3Aopen+is%3Apr'
close_url = '+is%3Aclosed+label%3Atranslation%2Fdoing'
close_url = '+is%3Amerged+label%3Atranslation%2Fdoing'
sig_sql_infra = '+label%3Asig%2Fsql-infra'
sig_planner = '+label%3Asig%2Fplanner'
sig_engine = '+label%3Asig%2Fengine'
Expand All @@ -26,22 +26,22 @@
type_enhancement = '+label%3Atype%2Fenhancement'
# docs-cn PR URL lists
compat_open_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Aopen+is%3Apr+label%3Atype%2Fcompatibility-or-feature-change'
compat_close_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Aclosed+is%3Apr+label%3Atype%2Fcompatibility-or-feature-change+label%3Atranslation%2Fdoing'
compat_close_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Amerged+is%3Apr+label%3Atype%2Fcompatibility-or-feature-change+label%3Atranslation%2Fdoing'
oncall_open_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr+label%3AONCALL+is%3Aopen+'
oncall_close_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr+label%3AONCALL+is%3Aclosed+label%3Atranslation%2Fdoing+'
oncall_close_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr+label%3AONCALL+is%3Amerged+label%3Atranslation%2Fdoing+'
bugfix_open_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr+label%3Atype%2Fbug-fix+is%3Aopen+'
bugfix_close_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr+label%3Atype%2Fbug-fix+is%3Aclosed+label%3Atranslation%2Fdoing'
bugfix_close_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr+label%3Atype%2Fbug-fix+is%3Amerged+label%3Atranslation%2Fdoing'
enhance_open_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Aopen+is%3Apr+label%3Atype%2Fenhancement'
enhance_close_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr+label%3Atype%2Fenhancement+is%3Aclosed+label%3Atranslation%2Fdoing'
enhance_close_url_zh = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr+label%3Atype%2Fenhancement+is%3Amerged+label%3Atranslation%2Fdoing'
# docs PR URL lists
compat_open_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Aopen+is%3Apr+label%3Atype%2Fcompatibility-or-feature-change'
compat_close_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Aclosed+is%3Apr+label%3Atype%2Fcompatibility-or-feature-change+label%3Atranslation%2Fdoing'
compat_close_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Amerged+is%3Apr+label%3Atype%2Fcompatibility-or-feature-change+label%3Atranslation%2Fdoing'
oncall_open_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Apr+label%3AONCALL+is%3Aopen+'
oncall_close_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Apr+label%3AONCALL+is%3Aclosed+label%3Atranslation%2Fdoing+'
oncall_close_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Apr+label%3AONCALL+is%3Amerged+label%3Atranslation%2Fdoing+'
bugfix_open_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Apr+label%3Atype%2Fbug-fix+is%3Aopen+'
bugfix_close_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Apr+label%3Atype%2Fbug-fix+is%3Aclosed+label%3Atranslation%2Fdoing'
bugfix_close_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Apr+label%3Atype%2Fbug-fix+is%3Amerged+label%3Atranslation%2Fdoing'
enhance_open_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Aopen+is%3Apr+label%3Atype%2Fenhancement'
enhance_close_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Apr+label%3Atype%2Fenhancement+is%3Aclosed+label%3Atranslation%2Fdoing'
enhance_close_url_en = 'https://github.com/pingcap/docs/pulls?q=is%3Apr+label%3Atype%2Fenhancement+is%3Amerged+label%3Atranslation%2Fdoing'


def get_pr_no(url):
Expand Down
2 changes: 1 addition & 1 deletion scripts/pr_reminder_basedon_assignee.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
docs_cn_url = 'https://github.com/pingcap/docs-cn/pulls?q=is%3Apr'
docs_url = 'https://github.com/pingcap/docs/pulls?q=is%3Apr'
open_url = '+is%3Aopen+is%3Apr'
close_url = '+is%3Aclosed+label%3Atranslation%2Fdoing'
close_url = '+is%3Amerged+label%3Atranslation%2Fdoing'
v61 = '+label%3Av6.1'
type_compatibility_change = '+label%3Atype%2Fcompatibility-or-feature-change'
type_oncall = '+label%3AONCALL'
Expand Down

0 comments on commit 3dde551

Please sign in to comment.