Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _add_comment(self, issue, body, is_internal):
data = {
'body': body,
'properties': [{'key': 'sd.public.comment', 'value': {'internal': is_internal}}, ]
}
url = self.manager._get_url('issue/{0}/comment'.format(issue))
r = self.manager._session.post(
url, data=json.dumps(data))
comment = Comment(self._options, self._session, raw=json_loads(r))
return comment
def _add_comment(self, issue, body, is_internal):
data = {
'body': body,
'properties': [
{'key': 'sd.public.comment', 'value': {'internal': is_internal}},
],
}
url = self.manager._get_url('issue/{0}/comment'.format(issue))
response = self.manager._session.post(url, data=json.dumps(data))
comment = Comment(
self.manager._options, self.manager._session, raw=json_loads(response)
)
return comment