t-bug-catcher 0.5.10__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/PKG-INFO +1 -1
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/setup.cfg +1 -1
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/setup.py +1 -1
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/__init__.py +1 -1
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/jira.py +19 -22
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher.egg-info/PKG-INFO +1 -1
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/MANIFEST.in +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/README.rst +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/pyproject.toml +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/requirements.txt +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/bug_catcher.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/bug_snag.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/config.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/exceptions.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/resources/whispers_config.yml +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/stack_saver.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/utils/__init__.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/utils/common.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/utils/logger.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher/workitems.py +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher.egg-info/SOURCES.txt +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher.egg-info/dependency_links.txt +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher.egg-info/not-zip-safe +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher.egg-info/requires.txt +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/t_bug_catcher.egg-info/top_level.txt +0 -0
- {t_bug_catcher-0.5.10 → t_bug_catcher-0.6.0}/tests/test_t_bug_catcher.py +0 -0
|
@@ -26,7 +26,7 @@ setup(
|
|
|
26
26
|
packages=find_packages(include=["t_bug_catcher", "t_bug_catcher.*"]),
|
|
27
27
|
test_suite="tests",
|
|
28
28
|
url="https://www.thoughtful.ai/",
|
|
29
|
-
version="0.
|
|
29
|
+
version="0.6.0",
|
|
30
30
|
zip_safe=False,
|
|
31
31
|
install_requires=install_requirements,
|
|
32
32
|
include_package_data=True,
|
|
@@ -1177,26 +1177,25 @@ class Jira:
|
|
|
1177
1177
|
or self._issue_types.get("epic")
|
|
1178
1178
|
)
|
|
1179
1179
|
|
|
1180
|
-
|
|
1181
|
-
summary
|
|
1182
|
-
description
|
|
1183
|
-
assignee
|
|
1184
|
-
issue_type
|
|
1185
|
-
project_key
|
|
1186
|
-
labels
|
|
1187
|
-
priority
|
|
1188
|
-
|
|
1180
|
+
issue_body = {
|
|
1181
|
+
"summary": summary[:255].split("\n")[0],
|
|
1182
|
+
"description": description,
|
|
1183
|
+
"assignee": assignee_id,
|
|
1184
|
+
"issue_type": issue_type,
|
|
1185
|
+
"project_key": project_key,
|
|
1186
|
+
"labels": labels,
|
|
1187
|
+
"priority": priority,
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
issue = self.__generate_issue_body(**issue_body)
|
|
1191
|
+
|
|
1189
1192
|
response = self.post_ticket(issue=issue)
|
|
1190
1193
|
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
issue_type=issue_type,
|
|
1197
|
-
project_key=project_key,
|
|
1198
|
-
priority=priority,
|
|
1199
|
-
)
|
|
1194
|
+
errors = response.json().get("errors", {})
|
|
1195
|
+
|
|
1196
|
+
if errors:
|
|
1197
|
+
issue_body = {key: value for key, value in issue_body.items() if key not in errors}
|
|
1198
|
+
issue = self.__generate_issue_body(**issue_body)
|
|
1200
1199
|
response = self.post_ticket(issue=issue)
|
|
1201
1200
|
|
|
1202
1201
|
if response.status_code != 201:
|
|
@@ -1349,7 +1348,7 @@ class Jira:
|
|
|
1349
1348
|
metadata=metadata,
|
|
1350
1349
|
)
|
|
1351
1350
|
|
|
1352
|
-
priority = CONFIG.TICKET_PRIORITIES.HIGH
|
|
1351
|
+
priority = CONFIG.TICKET_PRIORITIES.HIGH
|
|
1353
1352
|
|
|
1354
1353
|
response = self.__create_new_ticket(
|
|
1355
1354
|
summary=summary,
|
|
@@ -1412,9 +1411,7 @@ class Jira:
|
|
|
1412
1411
|
error_id=error_id,
|
|
1413
1412
|
)
|
|
1414
1413
|
|
|
1415
|
-
priority =
|
|
1416
|
-
CONFIG.TICKET_PRIORITIES.HIGHEST if CONFIG.STAGE and CONFIG.STAGE.lower() == "hypercare" else None
|
|
1417
|
-
)
|
|
1414
|
+
priority = CONFIG.TICKET_PRIORITIES.HIGHEST
|
|
1418
1415
|
|
|
1419
1416
|
response = self.__create_new_ticket(
|
|
1420
1417
|
summary=summary,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|