sase-github 0.2.0__tar.gz → 0.2.1__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.
- sase_github-0.2.1/.release-please-manifest.json +3 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/CHANGELOG.md +7 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/PKG-INFO +1 -1
- {sase_github-0.2.0 → sase_github-0.2.1}/pyproject.toml +1 -1
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/scripts/new_pr_desc_get_context.py +30 -2
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/xprompts/gh.yml +3 -1
- sase_github-0.2.0/.release-please-manifest.json +0 -3
- {sase_github-0.2.0 → sase_github-0.2.1}/.github/workflows/ci.yml +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/.github/workflows/pr-title.yml +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/.github/workflows/publish.yml +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/.sase_beads/beads.db +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/.sase_beads/config.json +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/.sase_beads/issues.jsonl +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/CLAUDE.md +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/Justfile +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/LICENSE +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/README.md +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/docs/architecture.md +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/docs/configuration.md +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/docs/xprompts.md +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/release-please-config.json +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/__init__.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/config.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/default_config.yml +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/errors.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/plugin.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/scripts/__init__.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/scripts/gh_setup.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/workspace_plugin.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/xprompts/new_pr_desc.yml +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/xprompts/pr_diff.yml +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/src/sase_github/xprompts/prdd.yml +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/tests/__init__.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_ci_install_contract.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_config.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_github_issues.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_github_plugin.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_submit_with_recorded_pr.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/tests/test_workspace_plugin.py +0 -0
- {sase_github-0.2.0 → sase_github-0.2.1}/uv.lock +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.1](https://github.com/sase-org/sase-github/compare/v0.2.0...v0.2.1) (2026-07-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* write handoff diff files under the managed temp root (sase-96.8.5) ([dd5deed](https://github.com/sase-org/sase-github/commit/dd5deedd25aeaccbb984b647c3abf60ea1d5afdc))
|
|
9
|
+
|
|
3
10
|
## [0.2.0](https://github.com/sase-org/sase-github/compare/v0.1.7...v0.2.0) (2026-07-16)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
"""Get context step for the #new_pr_desc xprompt workflow."""
|
|
2
2
|
|
|
3
|
+
import os
|
|
3
4
|
import subprocess
|
|
4
5
|
import tempfile
|
|
6
|
+
from pathlib import Path
|
|
5
7
|
|
|
6
8
|
from sase.ace.changespec import find_all_changespecs
|
|
7
9
|
from sase.workspace_provider.utils import get_default_branch, parse_workspace_dir
|
|
8
10
|
|
|
11
|
+
try:
|
|
12
|
+
from sase.core.paths import ( # type: ignore[attr-defined]
|
|
13
|
+
get_sase_managed_tmpdir,
|
|
14
|
+
)
|
|
15
|
+
except ImportError: # sase < 0.11.2 does not ship the helper yet
|
|
16
|
+
|
|
17
|
+
def get_sase_managed_tmpdir(*parts: str) -> str:
|
|
18
|
+
"""Fall back to the same managed root the sase helper resolves."""
|
|
19
|
+
sase_tmpdir = os.environ.get("SASE_TMPDIR")
|
|
20
|
+
if sase_tmpdir:
|
|
21
|
+
root = Path(sase_tmpdir).expanduser()
|
|
22
|
+
else:
|
|
23
|
+
sase_home = os.environ.get("SASE_HOME")
|
|
24
|
+
home = Path(sase_home).expanduser() if sase_home else Path.home() / ".sase"
|
|
25
|
+
root = home / "tmp"
|
|
26
|
+
for part in parts:
|
|
27
|
+
root /= part
|
|
28
|
+
root.mkdir(parents=True, exist_ok=True)
|
|
29
|
+
return str(root)
|
|
30
|
+
|
|
9
31
|
|
|
10
32
|
def main(*, name: str) -> None:
|
|
11
33
|
"""Find changespec, get diff and commit info for PR description generation.
|
|
@@ -71,9 +93,15 @@ def main(*, name: str) -> None:
|
|
|
71
93
|
except Exception:
|
|
72
94
|
commits = ""
|
|
73
95
|
|
|
74
|
-
# Save diff to temp file for the prompt
|
|
96
|
+
# Save diff to a managed temp file for the prompt. The downstream workflow
|
|
97
|
+
# interpolates this path, so it outlives this process and is reclaimed by
|
|
98
|
+
# the managed temp-root reaper rather than deleted here.
|
|
75
99
|
diff_file = tempfile.NamedTemporaryFile(
|
|
76
|
-
mode="w",
|
|
100
|
+
mode="w",
|
|
101
|
+
suffix=".diff",
|
|
102
|
+
prefix="pr_desc_",
|
|
103
|
+
dir=get_sase_managed_tmpdir("gh-diffs"),
|
|
104
|
+
delete=False,
|
|
77
105
|
)
|
|
78
106
|
diff_file.write(diff)
|
|
79
107
|
diff_file.close()
|
|
@@ -138,7 +138,9 @@ steps:
|
|
|
138
138
|
exit 0
|
|
139
139
|
fi
|
|
140
140
|
head_now=$(git rev-parse HEAD)
|
|
141
|
-
|
|
141
|
+
diff_dir="${SASE_TMPDIR:-${SASE_HOME:-$HOME/.sase}/tmp}/gh-diffs"
|
|
142
|
+
mkdir -p "$diff_dir"
|
|
143
|
+
diff_file=$(mktemp "$diff_dir/sase-gh-XXXXXX.diff")
|
|
142
144
|
if [ "$head_now" != "$head_before" ]; then
|
|
143
145
|
# Commits were made — show only the last commit's diff
|
|
144
146
|
git diff HEAD~1 HEAD > "$diff_file" 2>/dev/null
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|