t-bug-catcher 0.6.10__tar.gz → 0.6.11__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.6.10 → t_bug_catcher-0.6.11}/PKG-INFO +1 -1
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/setup.cfg +1 -1
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/setup.py +1 -1
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/__init__.py +1 -1
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/jira.py +18 -3
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher.egg-info/PKG-INFO +1 -1
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/MANIFEST.in +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/README.rst +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/pyproject.toml +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/requirements.txt +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/bug_catcher.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/bug_snag.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/config.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/exceptions.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/resources/whispers_config.yml +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/stack_saver.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/utils/__init__.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/utils/common.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/utils/logger.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher/workitems.py +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher.egg-info/SOURCES.txt +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher.egg-info/dependency_links.txt +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher.egg-info/not-zip-safe +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher.egg-info/requires.txt +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/t_bug_catcher.egg-info/top_level.txt +0 -0
- {t_bug_catcher-0.6.10 → t_bug_catcher-0.6.11}/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.6.
|
|
29
|
+
version="0.6.11",
|
|
30
30
|
zip_safe=False,
|
|
31
31
|
install_requires=install_requirements,
|
|
32
32
|
include_package_data=True,
|
|
@@ -58,6 +58,7 @@ class Jira:
|
|
|
58
58
|
self._auth = None
|
|
59
59
|
self._default_assignee = None
|
|
60
60
|
self._build_info: Optional[dict] = None
|
|
61
|
+
self._status_to_transition = ["to do", "open", "backlog"]
|
|
61
62
|
|
|
62
63
|
@staticmethod
|
|
63
64
|
def _is_json_response(response) -> bool:
|
|
@@ -310,7 +311,7 @@ class Jira:
|
|
|
310
311
|
Returns:
|
|
311
312
|
dict: The board information
|
|
312
313
|
"""
|
|
313
|
-
if self._transition_types.get(
|
|
314
|
+
if any(self._transition_types.get(status) for status in self._status_to_transition):
|
|
314
315
|
return self._transition_types
|
|
315
316
|
|
|
316
317
|
response = requests.request(
|
|
@@ -1145,10 +1146,24 @@ class Jira:
|
|
|
1145
1146
|
"""
|
|
1146
1147
|
issue_status = self.check_issue_status(existing_ticket["id"])
|
|
1147
1148
|
self._transition_types = self.__get_transtion_types(issue_id=existing_ticket["id"])
|
|
1148
|
-
|
|
1149
|
+
transition_id = next(
|
|
1150
|
+
(
|
|
1151
|
+
self._transition_types.get(status)
|
|
1152
|
+
for status in self._status_to_transition
|
|
1153
|
+
if self._transition_types.get(status)
|
|
1154
|
+
),
|
|
1155
|
+
None,
|
|
1156
|
+
)
|
|
1157
|
+
if not transition_id:
|
|
1158
|
+
transitions_str = [k for k in self._transition_types.keys()]
|
|
1159
|
+
raise BadRequestError(
|
|
1160
|
+
f"Transition ID not found for statuses: {self._status_to_transition}. "
|
|
1161
|
+
f"Available transitions: {transitions_str}"
|
|
1162
|
+
)
|
|
1163
|
+
if issue_status.lower() not in self._status_to_transition:
|
|
1149
1164
|
self.issue_transition(
|
|
1150
1165
|
ticket_id=existing_ticket["id"],
|
|
1151
|
-
transition_id=
|
|
1166
|
+
transition_id=transition_id,
|
|
1152
1167
|
)
|
|
1153
1168
|
self.update_comment(
|
|
1154
1169
|
ticket_id=existing_ticket["id"],
|
|
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
|