@@ -84,20 +84,10 @@ runs:
8484 HEAD_SHA : ${{ github.sha }}
8585 run : |
8686 set -uo pipefail
87- # Pre-compute the diff and inject it into the prompt. openai/codex-action
88- # does NOT auto-attach a diff — it is an agentic `codex exec`, so left to
89- # itself the agent may only run `git log` (commit messages) and never look
90- # at the code (exactly what happened on the v0.2.0-rc.11 run). Embedding
91- # the diff here GUARANTEES the version is decided on the actual changes.
92- # name-status + churn are always complete (they reveal removed/renamed
93- # files — the strongest breaking signal); the full diff is capped to keep
94- # the prompt bounded, and the agent can pull any truncated file via git.
9587 NAME_STATUS=$(git diff --name-status "$PREV_SHA" "$HEAD_SHA" 2>/dev/null || true)
9688 STAT=$(git diff --stat "$PREV_SHA" "$HEAD_SHA" 2>/dev/null || true)
9789 LOG=$(git log --no-merges --format='- %s%n%b' "$PREV_SHA..$HEAD_SHA" 2>/dev/null || true)
9890 DIFF=$(git diff "$PREV_SHA" "$HEAD_SHA" 2>/dev/null || true)
99- # The diff is injected via a step output, which GitHub caps at 1 MB/job;
100- # 400 KB leaves headroom for the log + stat. Don't raise past ~800 KB.
10191 CAP=400000
10292 TRUNC=""
10393 if [ "${#DIFF}" -gt "$CAP" ]; then
@@ -130,9 +120,6 @@ runs:
130120 with :
131121 openai-api-key : ${{ inputs.openai-api-key }}
132122 safety-strategy : read-only
133- # Judging backward-compatibility from a diff is a real reasoning task —
134- # run it at high effort. This step runs once per release and a wrong
135- # major bump is expensive, so the budget is justified.
136123 effort : high
137124 prompt : |
138125 Determine the next semantic version after ${{ steps.last-release.outputs.version }}.
0 commit comments