Skip to content

Commit 6c97b6a

Browse files
authored
add support for workflow_dispatch to Github (#133)
1 parent 106766e commit 6c97b6a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.2.35"
9+
version = "2.2.36"
1010
requires-python = ">= 3.10"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

socketsecurity/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.2.35'
2+
__version__ = '2.2.36'
33
USER_AGENT = f'SocketPythonCLI/{__version__}'

socketsecurity/core/scm/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __init__(self, client: CliClient, config: Optional[GithubConfig] = None):
100100
sys.exit(2)
101101

102102
def check_event_type(self) -> str:
103-
if self.config.event_name.lower() == "push":
103+
if self.config.event_name.lower() in ["push", "workflow_dispatch"]:
104104
if not self.config.pr_number:
105105
return "main"
106106
return "diff"

0 commit comments

Comments
 (0)