Skip to content

Commit fce5e04

Browse files
committed
Minor changes
1 parent b95fe54 commit fce5e04

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# separate terms of service, privacy policy, and support
77
# documentation.
88

9-
name: Upload Python Package
9+
name: Upload to PyPI
1010

1111
on:
1212
release:

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
2+
name: Render and deploy Sphinx documentation
33

44
on:
55
# Runs on pushes targeting the default branch

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
project = 'gitWebhook'
1010
copyright = '2024, TCA'
1111
author = 'TCA'
12-
release = '0.2'
12+
release = '0.3'
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

gitWebhook/functionWebhook.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def processWebhook(self, data: dict[str, Any]) -> tuple[int, str]:
5555
if self.log is not None:
5656
self.log.error(f"Function {function.__name__} returned false")
5757
success = False
58+
output[function.__name__] = res
5859
else:
5960
if self.log is not None:
6061
self.log.debug(f"Function {function.__name__} returned true")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "gitAppWebhook"
3-
version = "0.2"
3+
version = "0.3"
44
authors = [
55
{ name="TCA", email="[email protected]" },
66
]

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def testReceiveWebhookInvalidCheck(self):
141141
self.assertEqual(resp.status_code, 401)
142142

143143
def testProcessWebhook(self):
144-
self.assertEqual(self.webhook.processWebhook({"test":"test"}), (400, "Function <lambda> returned false"))
144+
self.assertEqual(self.webhook.processWebhook({"test":"test"}), (400, '{"<lambda>": false}'))
145145

146146
class TestHooks(unittest.TestCase):
147147
def setUp(self) -> None:

0 commit comments

Comments
 (0)