+def find_pull_request(content):
+ git_re = re.compile('^The following changes since commit .*' +
+ '^are available in the git repository at:\n'
+ '^\s*(git://[^\n]+)$',
+ re.DOTALL | re.MULTILINE)
+ match = git_re.search(content)
+ if match:
+ return match.group(1)
+ return None
+