@misterhuydo/sentinel 1.4.41 → 1.4.43
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/.cairn/.hint-lock
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-03-
|
|
1
|
+
2026-03-25T08:22:19.770Z
|
package/.cairn/session.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"message": "Auto-checkpoint at 2026-03-25T08:
|
|
3
|
-
"checkpoint_at": "2026-03-25T08:
|
|
2
|
+
"message": "Auto-checkpoint at 2026-03-25T08:25:36.640Z",
|
|
3
|
+
"checkpoint_at": "2026-03-25T08:25:36.642Z",
|
|
4
4
|
"active_files": [],
|
|
5
5
|
"notes": [],
|
|
6
6
|
"mtime_snapshot": {}
|
package/package.json
CHANGED
|
@@ -74,6 +74,9 @@ def apply_and_commit(
|
|
|
74
74
|
if _check_protected_paths(patch_path):
|
|
75
75
|
return "failed", ""
|
|
76
76
|
|
|
77
|
+
# Discard any leftover changes from a previous failed fix attempt
|
|
78
|
+
_git(["checkout", "."], cwd=local_path, env=env)
|
|
79
|
+
|
|
77
80
|
r = _git(["pull", "--rebase", "origin", repo.branch], cwd=local_path, env=env)
|
|
78
81
|
if r.returncode != 0:
|
|
79
82
|
logger.error("git pull failed for %s:\n%s", repo.repo_name, r.stderr)
|
|
@@ -126,13 +126,17 @@ def scan_issues(project_dir: Path) -> list[IssueEvent]:
|
|
|
126
126
|
target_repo = ""
|
|
127
127
|
body_start = 0
|
|
128
128
|
|
|
129
|
-
# Parse
|
|
129
|
+
# Parse metadata headers in any order (TARGET_REPO, SUBMITTED_BY, SUBMITTED_AT, etc.)
|
|
130
|
+
_META = ("TARGET_REPO:", "SUBMITTED_BY:", "SUBMITTED_AT:", "SUPPORT_URL:")
|
|
130
131
|
for i, line in enumerate(lines):
|
|
131
132
|
stripped = line.strip()
|
|
132
|
-
|
|
133
|
+
upper = stripped.upper()
|
|
134
|
+
if upper.startswith(_TARGET_REPO_PREFIX):
|
|
133
135
|
target_repo = stripped[len(_TARGET_REPO_PREFIX):].strip()
|
|
134
136
|
body_start = i + 1
|
|
135
|
-
elif stripped:
|
|
137
|
+
elif any(upper.startswith(p) for p in _META) or not stripped:
|
|
138
|
+
body_start = i + 1
|
|
139
|
+
else:
|
|
136
140
|
break
|
|
137
141
|
|
|
138
142
|
body = "\n".join(lines[body_start:]).strip() or content
|