salla-gitpuller 1.1.0__tar.gz → 1.1.2__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.
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/PKG-INFO +1 -1
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/gitpuller/gitpull.py +4 -2
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/pyproject.toml +1 -1
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/salla_gitpuller.egg-info/PKG-INFO +1 -1
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/LICENSE +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/README.md +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/gitpuller/__init__.py +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/gitpuller/alert_manager.py +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/gitpuller/slack_notifier.py +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/gitpuller/state_manager.py +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/gitpuller/utils.py +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/salla_gitpuller.egg-info/SOURCES.txt +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/salla_gitpuller.egg-info/dependency_links.txt +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/salla_gitpuller.egg-info/requires.txt +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/salla_gitpuller.egg-info/top_level.txt +0 -0
- {salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: salla_gitpuller
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: A lightweight utility to git pull a repository using SSH deploy keys stored in environment variables
|
|
5
5
|
Author-email: Mohammed Junaid <safijunaid.ss@gmail.com>, Muhammad Zahid <zahidmuhammad127@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -254,7 +254,8 @@ class GitPullExecutor:
|
|
|
254
254
|
pipeline_uuid: str = "auto_git_pull",
|
|
255
255
|
suppression_hours: int = 1,
|
|
256
256
|
key_filename: Optional[str] = None,
|
|
257
|
-
ssh_dir: str = "/home/src/.ssh"
|
|
257
|
+
ssh_dir: str = "/home/src/.ssh",
|
|
258
|
+
webhook_url: Optional[str] = None
|
|
258
259
|
) -> Dict[str, Any]:
|
|
259
260
|
"""
|
|
260
261
|
Run :meth:`execute_git_pull` and, on failure, send a (de-duplicated)
|
|
@@ -263,6 +264,7 @@ class GitPullExecutor:
|
|
|
263
264
|
``suppression_hours`` caps how often the *same* error is alerted on,
|
|
264
265
|
avoiding Slack spam when a broken state persists across many runs.
|
|
265
266
|
"""
|
|
267
|
+
notifier = SlackNotifier(webhook_url=webhook_url) if webhook_url else self.slack_notifier
|
|
266
268
|
# Derive a friendly repo name (e.g. "partner-mageai") for the alert.
|
|
267
269
|
repo_name = git_url.split('/')[-1].replace('.git', '')
|
|
268
270
|
|
|
@@ -298,7 +300,7 @@ class GitPullExecutor:
|
|
|
298
300
|
|
|
299
301
|
if should_alert:
|
|
300
302
|
# Post to Slack (cap payload so we don't blow Slack's limits).
|
|
301
|
-
|
|
303
|
+
notifier.send_alert(repo_name, git_output[:1500])
|
|
302
304
|
|
|
303
305
|
# Record that we alerted so future identical errors are suppressed.
|
|
304
306
|
self.alert_manager.save_alert_state(
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "salla_gitpuller"
|
|
7
|
-
version = "1.1.
|
|
7
|
+
version = "1.1.2"
|
|
8
8
|
description = "A lightweight utility to git pull a repository using SSH deploy keys stored in environment variables"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: salla_gitpuller
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: A lightweight utility to git pull a repository using SSH deploy keys stored in environment variables
|
|
5
5
|
Author-email: Mohammed Junaid <safijunaid.ss@gmail.com>, Muhammad Zahid <zahidmuhammad127@gmail.com>
|
|
6
6
|
License: MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{salla_gitpuller-1.1.0 → salla_gitpuller-1.1.2}/salla_gitpuller.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|