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

Function is_pull_request

tools/gh_api.py:191–193  ·  view source on GitHub ↗

Return True if the given issue is a pull request.

(issue)

Source from the content-addressed store, hash-verified

189 raise ValueError("milestone %s not found" % milestone)
190
191def is_pull_request(issue):
192 """Return True if the given issue is a pull request."""
193 return bool(issue.get('pull_request', {}).get('html_url', None))
194
195def get_authors(pr):
196 print("getting authors for #%i" % pr['number'], file=sys.stderr)

Callers 3

should_backportFunction · 0.90
split_pullsFunction · 0.90
issues_closed_sinceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected