add a new ExemptFromDailyDRIReport filter
This commit is contained in:
Родитель
0c81ea95da
Коммит
41be398d24
|
@ -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]
|
||||
|
|
Загрузка…
Ссылка в новой задаче