MCPcopy Create free account
hub / github.com/ipython/ipython / split_pulls

Function split_pulls

tools/github_stats.py:52–62  ·  view source on GitHub ↗

split a list of closed issues into non-PR Issues and Pull Requests

(all_issues, project="ipython/ipython")

Source from the content-addressed store, hash-verified

50 return idict
51
52def split_pulls(all_issues, project="ipython/ipython"):
53 """split a list of closed issues into non-PR Issues and Pull Requests"""
54 pulls = []
55 issues = []
56 for i in all_issues:
57 if is_pull_request(i):
58 pull = get_pull_request(project, i['number'], auth=True)
59 pulls.append(pull)
60 else:
61 issues.append(i)
62 return issues, pulls
63
64
65def issues_closed_since(period=timedelta(days=365), project="ipython/ipython", pulls=False):

Callers 1

github_stats.pyFile · 0.85

Calls 2

is_pull_requestFunction · 0.90
get_pull_requestFunction · 0.90

Tested by

no test coverage detected