MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / split_pulls

Function split_pulls

tools/github_stats.py:92–102  ·  view source on GitHub ↗

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

(all_issues, project="matplotlib/matplotlib")

Source from the content-addressed store, hash-verified

90
91
92def split_pulls(all_issues, project="matplotlib/matplotlib"):
93 """Split a list of closed issues into non-PR Issues and Pull Requests."""
94 pulls = []
95 issues = []
96 for i in all_issues:
97 if is_pull_request(i):
98 pull = get_pull_request(project, i['number'], auth=True)
99 pulls.append(pull)
100 else:
101 issues.append(i)
102 return issues, pulls
103
104
105def issues_closed_since(period=timedelta(days=365),

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…