@misterhuydo/sentinel 1.4.74 → 1.4.76
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.
- package/lib/generate.js +1 -1
- package/package.json +1 -1
- package/python/sentinel/main.py +2 -1
package/lib/generate.js
CHANGED
package/package.json
CHANGED
package/python/sentinel/main.py
CHANGED
|
@@ -12,6 +12,7 @@ import asyncio
|
|
|
12
12
|
import json
|
|
13
13
|
import logging
|
|
14
14
|
import os
|
|
15
|
+
import re
|
|
15
16
|
import shutil
|
|
16
17
|
import signal
|
|
17
18
|
import subprocess
|
|
@@ -643,7 +644,7 @@ def _config_repo_git_env(project_dir: Path | None = None) -> dict:
|
|
|
643
644
|
)
|
|
644
645
|
remote = r.stdout.strip()
|
|
645
646
|
# Extract slug: git@github.com:org/repo.git or https://github.com/org/repo.git
|
|
646
|
-
slug =
|
|
647
|
+
slug = re.sub(r"\.git$", "", remote).rsplit("/", 1)[-1].rsplit(":", 1)[-1].rsplit("/", 1)[-1].lower()
|
|
647
648
|
key = Path.home() / ".ssh" / f"{slug}.key"
|
|
648
649
|
if key.exists():
|
|
649
650
|
env["GIT_SSH_COMMAND"] = f"ssh -i {key} -o StrictHostKeyChecking=no -o BatchMode=yes"
|