add a new ExemptFromDailyDRIReport filter (#5818)

This commit is contained in:
Hung-chih Yang 2020-04-27 12:17:39 -07:00 коммит произвёл GitHub
Родитель 0c81ea95da
Коммит 8819e4fd93
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -20,6 +20,7 @@ SUPPORTABILITY_LABEL = 'supportability'
CUSTOMER_REPLIED_TO_LABEL = 'customer-replied-to'
ADAPTIVE_LABEL = 'adaptive'
BUG_LABEL = 'bug'
EXEMPT_FROM_DAILY_DRI_REPORT_LABEL = 'ExemptFromDailyDRIReport'
MILESTONE_LABELS = [
'4.5',
'4.6',
@ -115,5 +116,8 @@ def filter_customer_replied_label(issue):
def filter_adaptive_label(issue):
return any(label.name == ADAPTIVE_LABEL for label in issue.labels)
def filter_exempt_from_dri_label(issue):
return any(label.name == EXEMPT_FROM_DAILY_DRI_REPORT_LABEL for label in issue.labels)
def filter_milestone_label(issue):
return any(label.name in MILESTONE_LABELS or label.name == BUG_LABEL for label in issue.labels)

Просмотреть файл

@ -19,7 +19,7 @@ setup_html
from helpers import get_msorg_members, last_touched_by_microsoft, filter_azure, \
filter_bot_service_label, filter_adaptive_label, filter_customer_replied_label, \
filter_customer_reported_label, filter_stale_customer_issues, add_last_comment, \
filter_milestone_label
filter_milestone_label, filter_exempt_from_dri_label
HOW_TO_SET_CREDS = """
@ -125,7 +125,7 @@ def main():
print_status(f' Total open issues after {START_DATE} : {len(open_issues)}', 'tab1')
# Filter out adaptive issues
open_issues = [issue for issue in open_issues if not filter_adaptive_label(issue)]
open_issues = [issue for issue in open_issues if not filter_adaptive_label(issue) and not filter_exempt_from_dri_label(issue)]
user_filtered = True
if repo.name in BYPASS_USERFILTER_REPOS:
user_filtered_issues = [issue for issue in open_issues if not issue.pull_request]