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
+7
View File
@@ -4,6 +4,13 @@ set -euo pipefail
git config --global user.name bot
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")"
OUTPUT_FILE="$(mktemp)"