本文整理汇总了Python中search.Search.get_issue_count方法的典型用法代码示例。如果您正苦于以下问题:Python Search.get_issue_count方法的具体用法?Python Search.get_issue_count怎么用?Python Search.get_issue_count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search.Search
的用法示例。
在下文中一共展示了Search.get_issue_count方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_issues_with_label
# 需要导入模块: from search import Search [as 别名]
# 或者: from search.Search import get_issue_count [as 别名]
def get_issues_with_label():
i = 0
y = 0
for label in labels:
issues = Search(search_query + "AND labels = '%s'" % label)
print(label)
print("%s total issues. %s total points.") % (
issues.get_issue_count(), issues.get_point_sum())
i = i + issues.get_point_sum()
y = y + issues.get_issue_count()
print("Total issues: %s Total Points: %s") % (y, i)
示例2: get_issues_no_label
# 需要导入模块: from search import Search [as 别名]
# 或者: from search.Search import get_issue_count [as 别名]
def get_issues_no_label():
issues = Search(search_query + "AND labels NOT IN('%s')" % label)
print(label)
print("%s total issues. %s total points.") % (
issues.get_issue_count(), issues.get_point_sum())
示例3: len
# 需要导入模块: from search import Search [as 别名]
# 或者: from search.Search import get_issue_count [as 别名]
###### Sprint Closing Metrics ########
if len(sys.argv) > 1:
current_sprint = sys.argv[1]
else:
print("Sprint ID required. Example: script_name.py 3234")
sys.exit()
# https://one.rackspace.com/display/cdns/Sprint+Planning
issues_closed = Search(
'project = "Cloud DNS"'
' AND Sprint in (%s)'
' AND status in ("Research Done", "closed")'
' ORDER BY cf[10008] DESC' % current_sprint)
print("%s total issues. %s total points.") % (
issues_closed.get_issue_count(), issues_closed.get_point_sum())
ea_issues_closed = Search(
'priority = Blocker'
' AND project = "Cloud DNS"'
' AND Sprint = %s'
' AND status in ("Research Done", "closed")'
' ORDER BY cf[10008] DESC' % current_sprint)
print("%s EA issues. %s EA points.") % (ea_issues_closed.get_issue_count(), ea_issues_closed.get_point_sum())
ea_remain = Search('priority = Blocker'
' AND project = "Cloud DNS"'
' AND status not in ("closed")')
print("%s issues and %s pointsremain in EA") % (ea_remain.get_issue_count(),
ea_remain.get_point_sum())