Include previous issue comments

This commit is contained in:
2026-07-09 08:44:29 +09:00
parent e53edf1fbb
commit a5ec9b03c0
2 changed files with 16 additions and 3 deletions
+9 -3
View File
@@ -13,8 +13,14 @@ Prefer minimal, correct changes. Run relevant checks or tests if practical.
Commit your changes locally. Do not expose secrets. Finish by reporting what Commit your changes locally. Do not expose secrets. Finish by reporting what
changed and what tests ran. changed and what tests ran.
The triggering comment body is below. # Comment body
---
```
${COMMENT_BODY} ${COMMENT_BODY}
```
# Full issue comment history
```
${ISSUE_COMMENTS}
```
+7
View File
@@ -4,6 +4,13 @@ set -euo pipefail
git config --global user.name bot git config --global user.name bot
git config --global user.email noreply@capsulizers.com git config --global user.email noreply@capsulizers.com
export ISSUE_COMMENTS="$(
curl --fail-with-body --silent --show-error \
-H "Authorization: token ${GITEA_TOKEN}" \
"${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/issues/${ISSUE_INDEX}/comments?limit=100" \
| jq -r '.[] | "## " + .user.login + " at " + .created_at + "\n\n" + .body + "\n"'
)"
FINAL_PROMPT="$(envsubst < "${ACTION_PATH}/scripts/prompt.md")" FINAL_PROMPT="$(envsubst < "${ACTION_PATH}/scripts/prompt.md")"
OUTPUT_FILE="$(mktemp)" OUTPUT_FILE="$(mktemp)"