diff --git a/resources/data_agent.py b/resources/data_agent.py index 31abd146cb08ff96675ecfd7cd3eb6d4f6c43b71..47283f9410c938cf9589a139616e1f49ef548c1e 100644 --- a/resources/data_agent.py +++ b/resources/data_agent.py @@ -18,6 +18,7 @@ class Issue(Resource): # it into an empty string, find out why # res = requests.post(RULE_HANDLER_URL, json=json.dumps(request.json, indent=4)) + repoInfo = request.json['repoInfo'] rule_req_obj = { 'issueID': request.json['issueID'], @@ -29,10 +30,9 @@ class Issue(Resource): 'issueLabel': request.json['issueLabel'], 'issueTitle': request.json['issueTitle'], 'issueContent': request.json['issueContent'], + 'repoInfo': repoInfo, } - repoInfo = request.json['repoInfo'] - res = requests.post(RULE_HANDLER_URL, json=rule_req_obj) if res.status_code >= 300: logger.error(f'error status_code: {res.status_code}, content: {res.text}')