From 5d845708380267ec6eb95bf5a495956a1cfb1a96 Mon Sep 17 00:00:00 2001 From: guoqiangqi Date: Sat, 8 Jan 2022 17:09:12 +0800 Subject: [PATCH] Include issue repoInfo in the object sent to EventRuleHandler. --- resources/data_agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/data_agent.py b/resources/data_agent.py index 31abd14..47283f9 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}') -- Gitee