t-bug-catcher 0.1.3__tar.gz → 0.1.4__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.1.3 → t_bug_catcher-0.1.4}/PKG-INFO +1 -1
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/setup.cfg +1 -1
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/setup.py +1 -1
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/__init__.py +1 -1
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/bug_catcher.py +6 -6
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/jira.py +2 -2
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher.egg-info/PKG-INFO +1 -1
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/MANIFEST.in +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/README.rst +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/pyproject.toml +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/requirements.txt +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/bug_snag.py +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/config.py +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/exceptions.py +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/utils/__init__.py +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/utils/logger.py +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher/workitems.py +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher.egg-info/SOURCES.txt +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher.egg-info/dependency_links.txt +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher.egg-info/not-zip-safe +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher.egg-info/requires.txt +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/t_bug_catcher.egg-info/top_level.txt +0 -0
- {t_bug_catcher-0.1.3 → t_bug_catcher-0.1.4}/tests/test_t_bug_catcher.py +0 -0
|
@@ -8,10 +8,10 @@ from .jira import Jira
|
|
|
8
8
|
class Configurator:
|
|
9
9
|
"""Configurer class for configuring the JiraPoster and BugSnag."""
|
|
10
10
|
|
|
11
|
-
def __init__(self, jira, bugsnag):
|
|
11
|
+
def __init__(self, jira: Jira, bugsnag: BugSnag):
|
|
12
12
|
"""Initializes the Configurer class."""
|
|
13
|
-
self.__jira = jira
|
|
14
|
-
self.__bug_snag = bugsnag
|
|
13
|
+
self.__jira: Jira = jira
|
|
14
|
+
self.__bug_snag: BugSnag = bugsnag
|
|
15
15
|
|
|
16
16
|
def jira(
|
|
17
17
|
self,
|
|
@@ -63,9 +63,9 @@ class BugCatcher:
|
|
|
63
63
|
|
|
64
64
|
def __init__(self):
|
|
65
65
|
"""Initializes the BugCatcher class."""
|
|
66
|
-
self.__jira = Jira()
|
|
67
|
-
self.__bug_snag = BugSnag()
|
|
68
|
-
self.__configurator = Configurator(self.__jira, self.__bug_snag)
|
|
66
|
+
self.__jira: Jira = Jira()
|
|
67
|
+
self.__bug_snag: BugSnag = BugSnag()
|
|
68
|
+
self.__configurator: Configurator = Configurator(self.__jira, self.__bug_snag)
|
|
69
69
|
|
|
70
70
|
@property
|
|
71
71
|
def configure(self):
|
|
@@ -770,7 +770,7 @@ class Jira:
|
|
|
770
770
|
summary=summary[:255].split("\n")[0],
|
|
771
771
|
description=description,
|
|
772
772
|
assignee=assignee_id,
|
|
773
|
-
issue_type=self._issue_types
|
|
773
|
+
issue_type=self._issue_types.get("bug", self._issue_types["task"]),
|
|
774
774
|
)
|
|
775
775
|
response = self.create_ticket(issue=issue)
|
|
776
776
|
|
|
@@ -792,7 +792,7 @@ class Jira:
|
|
|
792
792
|
logger.info("Jira issue created successfully.")
|
|
793
793
|
return True, response
|
|
794
794
|
except Exception as ex:
|
|
795
|
-
logger.warning(f"Failed to create Jira issue due to: {ex}")
|
|
795
|
+
logger.warning(f"Failed to create Jira issue due to: {ex.__class__.__name__}: {ex}")
|
|
796
796
|
return False
|
|
797
797
|
|
|
798
798
|
@retry_if_bad_request
|
|
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
|