From 4ecba0a593143e9fb47bee30bdb756f92503c732 Mon Sep 17 00:00:00 2001 From: Clement Li Date: Thu, 6 Jan 2022 17:10:12 +0800 Subject: [PATCH] event_obj structure optimization --- resources/data_agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/data_agent.py b/resources/data_agent.py index 36214fd..31abd14 100644 --- a/resources/data_agent.py +++ b/resources/data_agent.py @@ -31,6 +31,8 @@ class Issue(Resource): 'issueContent': request.json['issueContent'], } + 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}') @@ -52,7 +54,7 @@ class Issue(Resource): 'targetLabel': target_label, 'targetAssigneeID': target_assignee_id, 'pushTime': rule_json['exeTime'], - 'repoInfo': request.json['repoInfo'] + 'repoInfo': repoInfo } -- Gitee