MCPcopy
hub / github.com/NullArray/AutoSploit / ensure_no_issue

Function ensure_no_issue

lib/creation/issue_creator.py:112–130  ·  view source on GitHub ↗

ensure that there is not already an issue that has been created for yours

(param)

Source from the content-addressed store, hash-verified

110
111
112def ensure_no_issue(param):
113 """
114 ensure that there is not already an issue that has been created for yours
115 """
116 urls = (
117 "https://github.com/NullArray/AutoSploit/issues",
118 "https://github.com/NullArray/AutoSploit/issues?q=is%3Aissue+is%3Aclosed"
119 )
120 for url in urls:
121 req = requests.get(url)
122 param = re.compile(param)
123 try:
124 if param.search(req.content) is not None:
125 return True
126 except:
127 content = str(req.content)
128 if param.search(content) is not None:
129 return True
130 return False
131
132
133def find_url(params):

Callers 1

request_issue_creationFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected