PyBugReporter 1.0.10__tar.gz → 1.0.12__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.
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PKG-INFO +1 -1
- pybugreporter-1.0.12/PyBugReporter/_version.py +1 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter/src/BugReporter.py +19 -3
- pybugreporter-1.0.12/PyBugReporter/src/__init__.py +0 -0
- pybugreporter-1.0.12/PyBugReporter/src/py.typed +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter.egg-info/PKG-INFO +1 -1
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter.egg-info/SOURCES.txt +3 -1
- pybugreporter-1.0.10/PyBugReporter/_version.py +0 -1
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/LICENSE +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter/__init__.py +0 -0
- /pybugreporter-1.0.10/PyBugReporter/src/__init__.py → /pybugreporter-1.0.12/PyBugReporter/py.typed +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter/requirements.txt +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter/src/DiscordBot.py +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter.egg-info/dependency_links.txt +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter.egg-info/requires.txt +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/PyBugReporter.egg-info/top_level.txt +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/README.md +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/setup.cfg +0 -0
- {pybugreporter-1.0.10 → pybugreporter-1.0.12}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyBugReporter
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.12
|
|
4
4
|
Summary: A python library for catching thrown exceptions and automatically creating issues on a GitHub repo.
|
|
5
5
|
Home-page: https://github.com/byuawsfhtl/PyBugReporter.git
|
|
6
6
|
Author: Record Linking Lab
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.0.12'
|
|
@@ -366,6 +366,17 @@ class BugReporter:
|
|
|
366
366
|
def manualBugReport(cls, repoName: str, errorTitle: str, errorMessage: str) -> None:
|
|
367
367
|
"""Manually sends a bug report to the Github repository.
|
|
368
368
|
|
|
369
|
+
Args:
|
|
370
|
+
repoName (str): the name of the repo to report to
|
|
371
|
+
errorTitle (str): the title of the error
|
|
372
|
+
errorMessage (str): the error message
|
|
373
|
+
"""
|
|
374
|
+
asyncio.run(cls.manualBugReportAsync(repoName,errorTitle,errorMessage))
|
|
375
|
+
|
|
376
|
+
@classmethod
|
|
377
|
+
async def manualBugReportAsync(cls, repoName: str, errorTitle: str, errorMessage: str) -> None:
|
|
378
|
+
"""Manually sends a bug report to the Github repository.
|
|
379
|
+
|
|
369
380
|
Args:
|
|
370
381
|
repoName (str): the name of the repo to report to
|
|
371
382
|
errorTitle (str): the title of the error
|
|
@@ -381,7 +392,7 @@ class BugReporter:
|
|
|
381
392
|
headers = {"Authorization": f"Bearer {handler.githubKey}"}
|
|
382
393
|
|
|
383
394
|
# query variables
|
|
384
|
-
repoId = cls.
|
|
395
|
+
repoId = await cls._getRepoId_async(cls, handler)
|
|
385
396
|
bugLabel = "LA_kwDOJ3JPj88AAAABU1q15w"
|
|
386
397
|
autoLabel = "LA_kwDOJ3JPj88AAAABU1q2DA"
|
|
387
398
|
|
|
@@ -414,10 +425,15 @@ class BugReporter:
|
|
|
414
425
|
}
|
|
415
426
|
}
|
|
416
427
|
|
|
417
|
-
issueExists = cls.
|
|
428
|
+
issueExists = await cls._checkIfIssueExists_async(cls, handler, errorTitle)
|
|
429
|
+
|
|
430
|
+
# Send to Discord if applicable
|
|
431
|
+
if cls.handlers[repoName].useDiscord:
|
|
432
|
+
discordBot = DiscordBot(cls.handlers[repoName].botToken, cls.handlers[repoName].channelId)
|
|
433
|
+
await discordBot.send_message(f"## {repoName}: {errorTitle}\n{errorMessage}", issueExists)
|
|
418
434
|
|
|
419
435
|
if (issueExists == False):
|
|
420
|
-
result =
|
|
436
|
+
result = await client.execute_async(query=createIssue, variables=variables, headers=headers)
|
|
421
437
|
print('\nThis error has been reported to the Tree Growth team.\n')
|
|
422
438
|
else:
|
|
423
439
|
print('\nOur team is already aware of this issue.\n')
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyBugReporter
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.12
|
|
4
4
|
Summary: A python library for catching thrown exceptions and automatically creating issues on a GitHub repo.
|
|
5
5
|
Home-page: https://github.com/byuawsfhtl/PyBugReporter.git
|
|
6
6
|
Author: Record Linking Lab
|
|
@@ -3,6 +3,7 @@ README.md
|
|
|
3
3
|
setup.py
|
|
4
4
|
PyBugReporter/__init__.py
|
|
5
5
|
PyBugReporter/_version.py
|
|
6
|
+
PyBugReporter/py.typed
|
|
6
7
|
PyBugReporter/requirements.txt
|
|
7
8
|
PyBugReporter.egg-info/PKG-INFO
|
|
8
9
|
PyBugReporter.egg-info/SOURCES.txt
|
|
@@ -11,4 +12,5 @@ PyBugReporter.egg-info/requires.txt
|
|
|
11
12
|
PyBugReporter.egg-info/top_level.txt
|
|
12
13
|
PyBugReporter/src/BugReporter.py
|
|
13
14
|
PyBugReporter/src/DiscordBot.py
|
|
14
|
-
PyBugReporter/src/__init__.py
|
|
15
|
+
PyBugReporter/src/__init__.py
|
|
16
|
+
PyBugReporter/src/py.typed
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.0.10'
|
|
File without changes
|
|
File without changes
|
/pybugreporter-1.0.10/PyBugReporter/src/__init__.py → /pybugreporter-1.0.12/PyBugReporter/py.typed
RENAMED
|
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
|