@codyswann/lisa 4.99.3 → 4.99.5
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/all/copy-overwrite/scripts/lib/completion-proof-github.mjs +155 -3
- package/all/copy-overwrite/scripts/lib/completion-proof-publisher.mjs +153 -18
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +46 -2
- package/all/copy-overwrite/scripts/npm-updater-gate.Dockerfile +5 -5
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +5 -4
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +26 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +43 -25
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/relative-imports.d.ts +59 -0
- package/dist/opencode/relative-imports.d.ts.map +1 -0
- package/dist/opencode/relative-imports.js +119 -0
- package/dist/opencode/relative-imports.js.map +1 -0
- package/dist/opencode/shared-scripts-cleanup.d.ts +43 -0
- package/dist/opencode/shared-scripts-cleanup.d.ts.map +1 -0
- package/dist/opencode/shared-scripts-cleanup.js +94 -0
- package/dist/opencode/shared-scripts-cleanup.js.map +1 -0
- package/dist/opencode/shared-scripts-emitter.d.ts +18 -0
- package/dist/opencode/shared-scripts-emitter.d.ts.map +1 -0
- package/dist/opencode/shared-scripts-emitter.js +173 -0
- package/dist/opencode/shared-scripts-emitter.js.map +1 -0
- package/dist/opencode/skills-installer.d.ts +4 -1
- package/dist/opencode/skills-installer.d.ts.map +1 -1
- package/dist/opencode/skills-installer.js +19 -3
- package/dist/opencode/skills-installer.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +18 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa/agents/github-agent.md +1 -1
- package/plugins/lisa/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa/skills/lisa-github-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa/skills/lisa-jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa/skills/lisa-linear-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-agy/agents/github-agent.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-agy/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-agy/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/agents/github-agent.agent.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-copilot/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-copilot/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/github-agent.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-cursor/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-cursor/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/agents/github-agent.md +1 -1
- package/plugins/lisa-devin/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-devin/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-devin/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-devin/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-devin/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-devin/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +18 -5
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +18 -5
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/agents/github-agent.md +1 -1
- package/plugins/src/base/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/src/base/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/src/base/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/src/base/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/src/base/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/src/expo/skills/jira-journey/SKILL.md +8 -0
- package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +22 -3
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
# - gh CLI authenticated
|
|
15
15
|
#
|
|
16
16
|
# What it does:
|
|
17
|
-
# 1. Uploads evidence files to the
|
|
17
|
+
# 1. Uploads evidence files to the configured GitHub evidence release
|
|
18
|
+
# (default 'pr-assets'; see verification.completion.evidenceRelease)
|
|
18
19
|
# 2. Updates the GitHub PR description with evidence/comment.md
|
|
19
20
|
# 3. Uploads image evidence as JIRA attachments
|
|
20
21
|
# 4. Posts/updates the JIRA comment with evidence/comment.txt
|
|
@@ -106,7 +107,25 @@ PY_ORIGIN
|
|
|
106
107
|
)
|
|
107
108
|
|
|
108
109
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
109
|
-
|
|
110
|
+
# The evidence release comes from the one resolver every writer shares, so a
|
|
111
|
+
# project's `verification.completion.evidenceRelease` (for example the rotating
|
|
112
|
+
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
113
|
+
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
114
|
+
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
115
|
+
# is absent and refuses, in plain words, when it is nearly full. A host whose
|
|
116
|
+
# Lisa predates the resolver keeps the legacy release.
|
|
117
|
+
#
|
|
118
|
+
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
119
|
+
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
120
|
+
# that name and the release's capacity; it reads the variable itself.
|
|
121
|
+
RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
|
|
122
|
+
WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
|
|
123
|
+
if [[ -f "$WORK_ITEM_CLI" ]]; then
|
|
124
|
+
if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
|
|
125
|
+
echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
|
|
126
|
+
exit 1
|
|
127
|
+
fi
|
|
128
|
+
fi
|
|
110
129
|
|
|
111
130
|
if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
|
|
112
131
|
echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
|
|
@@ -137,7 +156,7 @@ echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidenc
|
|
|
137
156
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
138
157
|
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
139
158
|
|
|
140
|
-
# ── Step 1: Upload to GitHub
|
|
159
|
+
# ── Step 1: Upload to the GitHub evidence release ───────────────────────────
|
|
141
160
|
echo ""
|
|
142
161
|
echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
|
|
143
162
|
|
|
@@ -130,6 +130,14 @@ This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.m
|
|
|
130
130
|
- The verification journey steps
|
|
131
131
|
- Assertions as verification results
|
|
132
132
|
|
|
133
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, and keep it exported for Step 5 so the links and the uploads name the same release even across a month boundary:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
140
|
+
|
|
133
141
|
### Step 5: Post Evidence
|
|
134
142
|
|
|
135
143
|
Use the jira-evidence skill to post everything:
|
|
@@ -21,6 +21,37 @@ import sys
|
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
def evidence_release():
|
|
25
|
+
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
26
|
+
|
|
27
|
+
LISA_EVIDENCE_RELEASE wins when set. Otherwise ask the project's
|
|
28
|
+
`scripts/lisa-work-item.mjs evidence-release`, the one resolver every
|
|
29
|
+
writer shares, so a configured rotation such as `pr-assets-{YYYY-MM}`
|
|
30
|
+
reaches these links too (CodySwannGT/lisa#4692). A host without the
|
|
31
|
+
resolver keeps the legacy `pr-assets` release.
|
|
32
|
+
"""
|
|
33
|
+
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
34
|
+
if configured:
|
|
35
|
+
return configured
|
|
36
|
+
try:
|
|
37
|
+
root = subprocess.run(
|
|
38
|
+
["git", "rev-parse", "--show-toplevel"],
|
|
39
|
+
capture_output=True, text=True, check=True,
|
|
40
|
+
).stdout.strip()
|
|
41
|
+
except (OSError, subprocess.CalledProcessError):
|
|
42
|
+
root = os.getcwd()
|
|
43
|
+
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
44
|
+
if cli.is_file():
|
|
45
|
+
result = subprocess.run(
|
|
46
|
+
["node", str(cli), "evidence-release"],
|
|
47
|
+
capture_output=True, text=True, cwd=root,
|
|
48
|
+
)
|
|
49
|
+
if result.returncode != 0:
|
|
50
|
+
sys.exit(f"ERROR: could not resolve the evidence release: {result.stderr.strip()}")
|
|
51
|
+
return result.stdout.strip()
|
|
52
|
+
return "pr-assets"
|
|
53
|
+
|
|
54
|
+
|
|
24
55
|
def get_jira_server():
|
|
25
56
|
"""Read JIRA server URL from jira-cli config."""
|
|
26
57
|
config_path = Path.home() / ".config" / ".jira" / ".config.yml"
|
|
@@ -162,7 +193,7 @@ def generate_jira_wiki(ticket_id, pr_number, branch, screenshots, journey, gh_re
|
|
|
162
193
|
def generate_github_md(ticket_id, pr_number, branch, screenshots, journey, gh_repo):
|
|
163
194
|
"""Generate GitHub markdown comment."""
|
|
164
195
|
jira_server = get_jira_server()
|
|
165
|
-
release_base = f"https://github.com/{gh_repo}/releases/download/
|
|
196
|
+
release_base = f"https://github.com/{gh_repo}/releases/download/{evidence_release()}"
|
|
166
197
|
|
|
167
198
|
lines = []
|
|
168
199
|
lines.append(f"## Evidence — PR #{pr_number}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-evidence
|
|
3
|
-
description: "Upload screenshots to GitHub pr-assets
|
|
3
|
+
description: "Upload screenshots to the configured GitHub evidence release (default pr-assets), update PR description with evidence, upload attachments to JIRA, post wiki markup comment, and move ticket to the configured review status only when `jira.workflow.review` is set (otherwise leave it in `claimed`). Reusable by any skill that captures screenshots and generates evidence/comment.txt + evidence/comment.md."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# JIRA Evidence Posting
|
|
@@ -43,10 +43,18 @@ bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE
|
|
|
43
43
|
bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
When `generate-templates.py` wrote the evidence links, run both with the same exported release so the links match the uploads:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
53
|
+
|
|
46
54
|
## What It Does
|
|
47
55
|
|
|
48
56
|
1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
|
|
49
|
-
2. **Upload to
|
|
57
|
+
2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads `NN-name-viewport.png` screenshots via `gh release upload --clobber`, creating CDN URLs that render in GitHub markdown
|
|
50
58
|
3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body using `gh pr edit`
|
|
51
59
|
4. **Upload JIRA attachments** — Uploads screenshots via REST API v3 so `!filename.png!` wiki markup renders inline
|
|
52
60
|
5. **Post JIRA comment** — Posts `comment.txt` as a new comment via REST API v2 (wiki markup with embedded images)
|
|
@@ -69,12 +77,17 @@ evidence/
|
|
|
69
77
|
|
|
70
78
|
### Images not rendering in GitHub PR
|
|
71
79
|
|
|
72
|
-
Images must be in the
|
|
80
|
+
Images (never committed to git) must be in the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`). Create it when it is missing, and
|
|
81
|
+
check it is not at GitHub's 1000-file limit, with:
|
|
73
82
|
|
|
74
83
|
```bash
|
|
75
|
-
|
|
84
|
+
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
76
85
|
```
|
|
77
86
|
|
|
87
|
+
If it reports the release is nearly full, set
|
|
88
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
|
|
89
|
+
name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
|
|
90
|
+
|
|
78
91
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
79
92
|
|
|
80
93
|
The screenshot must be uploaded as a JIRA attachment before posting the comment. The script uploads attachments first then posts the comment — always in that order.
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
# - gh CLI authenticated
|
|
15
15
|
#
|
|
16
16
|
# What it does:
|
|
17
|
-
# 1. Uploads evidence files to the
|
|
17
|
+
# 1. Uploads evidence files to the configured GitHub evidence release
|
|
18
|
+
# (default 'pr-assets'; see verification.completion.evidenceRelease)
|
|
18
19
|
# 2. Updates the GitHub PR description with evidence/comment.md
|
|
19
20
|
# 3. Uploads image evidence as JIRA attachments
|
|
20
21
|
# 4. Posts/updates the JIRA comment with evidence/comment.txt
|
|
@@ -106,7 +107,25 @@ PY_ORIGIN
|
|
|
106
107
|
)
|
|
107
108
|
|
|
108
109
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
109
|
-
|
|
110
|
+
# The evidence release comes from the one resolver every writer shares, so a
|
|
111
|
+
# project's `verification.completion.evidenceRelease` (for example the rotating
|
|
112
|
+
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
113
|
+
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
114
|
+
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
115
|
+
# is absent and refuses, in plain words, when it is nearly full. A host whose
|
|
116
|
+
# Lisa predates the resolver keeps the legacy release.
|
|
117
|
+
#
|
|
118
|
+
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
119
|
+
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
120
|
+
# that name and the release's capacity; it reads the variable itself.
|
|
121
|
+
RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
|
|
122
|
+
WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
|
|
123
|
+
if [[ -f "$WORK_ITEM_CLI" ]]; then
|
|
124
|
+
if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
|
|
125
|
+
echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
|
|
126
|
+
exit 1
|
|
127
|
+
fi
|
|
128
|
+
fi
|
|
110
129
|
|
|
111
130
|
if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
|
|
112
131
|
echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
|
|
@@ -137,7 +156,7 @@ echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidenc
|
|
|
137
156
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
138
157
|
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
139
158
|
|
|
140
|
-
# ── Step 1: Upload to GitHub
|
|
159
|
+
# ── Step 1: Upload to the GitHub evidence release ───────────────────────────
|
|
141
160
|
echo ""
|
|
142
161
|
echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
|
|
143
162
|
|
|
@@ -130,6 +130,14 @@ This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.m
|
|
|
130
130
|
- The verification journey steps
|
|
131
131
|
- Assertions as verification results
|
|
132
132
|
|
|
133
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, and keep it exported for Step 5 so the links and the uploads name the same release even across a month boundary:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
140
|
+
|
|
133
141
|
### Step 5: Post Evidence
|
|
134
142
|
|
|
135
143
|
Use the jira-evidence skill to post everything:
|
|
@@ -21,6 +21,37 @@ import sys
|
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
def evidence_release():
|
|
25
|
+
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
26
|
+
|
|
27
|
+
LISA_EVIDENCE_RELEASE wins when set. Otherwise ask the project's
|
|
28
|
+
`scripts/lisa-work-item.mjs evidence-release`, the one resolver every
|
|
29
|
+
writer shares, so a configured rotation such as `pr-assets-{YYYY-MM}`
|
|
30
|
+
reaches these links too (CodySwannGT/lisa#4692). A host without the
|
|
31
|
+
resolver keeps the legacy `pr-assets` release.
|
|
32
|
+
"""
|
|
33
|
+
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
34
|
+
if configured:
|
|
35
|
+
return configured
|
|
36
|
+
try:
|
|
37
|
+
root = subprocess.run(
|
|
38
|
+
["git", "rev-parse", "--show-toplevel"],
|
|
39
|
+
capture_output=True, text=True, check=True,
|
|
40
|
+
).stdout.strip()
|
|
41
|
+
except (OSError, subprocess.CalledProcessError):
|
|
42
|
+
root = os.getcwd()
|
|
43
|
+
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
44
|
+
if cli.is_file():
|
|
45
|
+
result = subprocess.run(
|
|
46
|
+
["node", str(cli), "evidence-release"],
|
|
47
|
+
capture_output=True, text=True, cwd=root,
|
|
48
|
+
)
|
|
49
|
+
if result.returncode != 0:
|
|
50
|
+
sys.exit(f"ERROR: could not resolve the evidence release: {result.stderr.strip()}")
|
|
51
|
+
return result.stdout.strip()
|
|
52
|
+
return "pr-assets"
|
|
53
|
+
|
|
54
|
+
|
|
24
55
|
def get_jira_server():
|
|
25
56
|
"""Read JIRA server URL from jira-cli config."""
|
|
26
57
|
config_path = Path.home() / ".config" / ".jira" / ".config.yml"
|
|
@@ -162,7 +193,7 @@ def generate_jira_wiki(ticket_id, pr_number, branch, screenshots, journey, gh_re
|
|
|
162
193
|
def generate_github_md(ticket_id, pr_number, branch, screenshots, journey, gh_repo):
|
|
163
194
|
"""Generate GitHub markdown comment."""
|
|
164
195
|
jira_server = get_jira_server()
|
|
165
|
-
release_base = f"https://github.com/{gh_repo}/releases/download/
|
|
196
|
+
release_base = f"https://github.com/{gh_repo}/releases/download/{evidence_release()}"
|
|
166
197
|
|
|
167
198
|
lines = []
|
|
168
199
|
lines.append(f"## Evidence — PR #{pr_number}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-evidence
|
|
3
|
-
description: "Upload screenshots to GitHub pr-assets
|
|
3
|
+
description: "Upload screenshots to the configured GitHub evidence release (default pr-assets), update PR description with evidence, upload attachments to JIRA, post wiki markup comment, and move ticket to the configured review status only when `jira.workflow.review` is set (otherwise leave it in `claimed`). Reusable by any skill that captures screenshots and generates evidence/comment.txt + evidence/comment.md."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# JIRA Evidence Posting
|
|
@@ -43,10 +43,18 @@ bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE
|
|
|
43
43
|
bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
When `generate-templates.py` wrote the evidence links, run both with the same exported release so the links match the uploads:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
53
|
+
|
|
46
54
|
## What It Does
|
|
47
55
|
|
|
48
56
|
1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
|
|
49
|
-
2. **Upload to
|
|
57
|
+
2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads `NN-name-viewport.png` screenshots via `gh release upload --clobber`, creating CDN URLs that render in GitHub markdown
|
|
50
58
|
3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body using `gh pr edit`
|
|
51
59
|
4. **Upload JIRA attachments** — Uploads screenshots via REST API v3 so `!filename.png!` wiki markup renders inline
|
|
52
60
|
5. **Post JIRA comment** — Posts `comment.txt` as a new comment via REST API v2 (wiki markup with embedded images)
|
|
@@ -69,12 +77,17 @@ evidence/
|
|
|
69
77
|
|
|
70
78
|
### Images not rendering in GitHub PR
|
|
71
79
|
|
|
72
|
-
Images must be in the
|
|
80
|
+
Images (never committed to git) must be in the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`). Create it when it is missing, and
|
|
81
|
+
check it is not at GitHub's 1000-file limit, with:
|
|
73
82
|
|
|
74
83
|
```bash
|
|
75
|
-
|
|
84
|
+
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
76
85
|
```
|
|
77
86
|
|
|
87
|
+
If it reports the release is nearly full, set
|
|
88
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
|
|
89
|
+
name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
|
|
90
|
+
|
|
78
91
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
79
92
|
|
|
80
93
|
The screenshot must be uploaded as a JIRA attachment before posting the comment. The script uploads attachments first then posts the comment — always in that order.
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
# - gh CLI authenticated
|
|
15
15
|
#
|
|
16
16
|
# What it does:
|
|
17
|
-
# 1. Uploads evidence files to the
|
|
17
|
+
# 1. Uploads evidence files to the configured GitHub evidence release
|
|
18
|
+
# (default 'pr-assets'; see verification.completion.evidenceRelease)
|
|
18
19
|
# 2. Updates the GitHub PR description with evidence/comment.md
|
|
19
20
|
# 3. Uploads image evidence as JIRA attachments
|
|
20
21
|
# 4. Posts/updates the JIRA comment with evidence/comment.txt
|
|
@@ -106,7 +107,25 @@ PY_ORIGIN
|
|
|
106
107
|
)
|
|
107
108
|
|
|
108
109
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
109
|
-
|
|
110
|
+
# The evidence release comes from the one resolver every writer shares, so a
|
|
111
|
+
# project's `verification.completion.evidenceRelease` (for example the rotating
|
|
112
|
+
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
113
|
+
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
114
|
+
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
115
|
+
# is absent and refuses, in plain words, when it is nearly full. A host whose
|
|
116
|
+
# Lisa predates the resolver keeps the legacy release.
|
|
117
|
+
#
|
|
118
|
+
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
119
|
+
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
120
|
+
# that name and the release's capacity; it reads the variable itself.
|
|
121
|
+
RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
|
|
122
|
+
WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
|
|
123
|
+
if [[ -f "$WORK_ITEM_CLI" ]]; then
|
|
124
|
+
if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
|
|
125
|
+
echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
|
|
126
|
+
exit 1
|
|
127
|
+
fi
|
|
128
|
+
fi
|
|
110
129
|
|
|
111
130
|
if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
|
|
112
131
|
echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
|
|
@@ -137,7 +156,7 @@ echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidenc
|
|
|
137
156
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
138
157
|
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
139
158
|
|
|
140
|
-
# ── Step 1: Upload to GitHub
|
|
159
|
+
# ── Step 1: Upload to the GitHub evidence release ───────────────────────────
|
|
141
160
|
echo ""
|
|
142
161
|
echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
|
|
143
162
|
|
|
@@ -130,6 +130,14 @@ This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.m
|
|
|
130
130
|
- The verification journey steps
|
|
131
131
|
- Assertions as verification results
|
|
132
132
|
|
|
133
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, and keep it exported for Step 5 so the links and the uploads name the same release even across a month boundary:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
140
|
+
|
|
133
141
|
### Step 5: Post Evidence
|
|
134
142
|
|
|
135
143
|
Use the jira-evidence skill to post everything:
|
|
@@ -21,6 +21,37 @@ import sys
|
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
def evidence_release():
|
|
25
|
+
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
26
|
+
|
|
27
|
+
LISA_EVIDENCE_RELEASE wins when set. Otherwise ask the project's
|
|
28
|
+
`scripts/lisa-work-item.mjs evidence-release`, the one resolver every
|
|
29
|
+
writer shares, so a configured rotation such as `pr-assets-{YYYY-MM}`
|
|
30
|
+
reaches these links too (CodySwannGT/lisa#4692). A host without the
|
|
31
|
+
resolver keeps the legacy `pr-assets` release.
|
|
32
|
+
"""
|
|
33
|
+
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
34
|
+
if configured:
|
|
35
|
+
return configured
|
|
36
|
+
try:
|
|
37
|
+
root = subprocess.run(
|
|
38
|
+
["git", "rev-parse", "--show-toplevel"],
|
|
39
|
+
capture_output=True, text=True, check=True,
|
|
40
|
+
).stdout.strip()
|
|
41
|
+
except (OSError, subprocess.CalledProcessError):
|
|
42
|
+
root = os.getcwd()
|
|
43
|
+
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
44
|
+
if cli.is_file():
|
|
45
|
+
result = subprocess.run(
|
|
46
|
+
["node", str(cli), "evidence-release"],
|
|
47
|
+
capture_output=True, text=True, cwd=root,
|
|
48
|
+
)
|
|
49
|
+
if result.returncode != 0:
|
|
50
|
+
sys.exit(f"ERROR: could not resolve the evidence release: {result.stderr.strip()}")
|
|
51
|
+
return result.stdout.strip()
|
|
52
|
+
return "pr-assets"
|
|
53
|
+
|
|
54
|
+
|
|
24
55
|
def get_jira_server():
|
|
25
56
|
"""Read JIRA server URL from jira-cli config."""
|
|
26
57
|
config_path = Path.home() / ".config" / ".jira" / ".config.yml"
|
|
@@ -162,7 +193,7 @@ def generate_jira_wiki(ticket_id, pr_number, branch, screenshots, journey, gh_re
|
|
|
162
193
|
def generate_github_md(ticket_id, pr_number, branch, screenshots, journey, gh_repo):
|
|
163
194
|
"""Generate GitHub markdown comment."""
|
|
164
195
|
jira_server = get_jira_server()
|
|
165
|
-
release_base = f"https://github.com/{gh_repo}/releases/download/
|
|
196
|
+
release_base = f"https://github.com/{gh_repo}/releases/download/{evidence_release()}"
|
|
166
197
|
|
|
167
198
|
lines = []
|
|
168
199
|
lines.append(f"## Evidence — PR #{pr_number}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.99.
|
|
3
|
+
"version": "4.99.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.99.
|
|
3
|
+
"version": "4.99.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.99.
|
|
3
|
+
"version": "4.99.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.99.
|
|
3
|
+
"version": "4.99.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.99.
|
|
3
|
+
"version": "4.99.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|