Skip to content

fix: remove stale 'GitHub Check Run upload' from session-review description#42

Merged
Soul-Craft merged 1 commit into
mainfrom
fix/ci-commit-status-api
Apr 16, 2026
Merged

fix: remove stale 'GitHub Check Run upload' from session-review description#42
Soul-Craft merged 1 commit into
mainfrom
fix/ci-commit-status-api

Conversation

@Soul-Craft

Copy link
Copy Markdown
Owner

Summary

Type of change

  • Bug fix
  • New feature (species, skill, patch type, etc.)
  • Refactoring (no behavior change)
  • Documentation
  • CI / tooling

Context

PR #39 merged the full claude/wizardly-kalam branch, which included both commits:

  • afc3d74 — agent model fields + drift test
  • e4e4990 — Commit Status API fix + session workflow ordering

All the code changes landed correctly. This PR fixes the one remaining doc drift: the session-review skill description still listed "GitHub Check Run upload" as a pipeline step, but the skill body correctly says the upload runs AFTER commit+push (not inside the skill). The description now matches the implementation.

Testing checklist

  • make test-docs — 17/18 pass (1 pre-existing failure: skills/customize-buddy missing SKILL.md, not introduced here — exists on main)
  • No Swift, hook, or patcher changes

Risk

Description-only change. No behavior change.

🤖 Generated with Claude Code

…ring

Root causes of ci-verify-local.yml always failing:
1. Check Runs API requires a GitHub App token (checks:write) — a regular PAT
   always gets 403. Replaced with Commit Status API (POST /statuses/{sha})
   which works with any repo-scoped PAT, no GitHub App needed.
2. Upload was called in /session-end before the commit existed, posting the
   status on the wrong (previous) commit SHA.
3. Even the PR comment fallback missed because CI fires on pr:opened before
   the upload had a chance to run.

Fix:
- upload-test-results.sh: POST to /statuses/{sha} instead of /check-runs
- ci-verify-local.yml: check commit status instead of Check Runs (Option 1)
- session-end SKILL.md: remove premature upload step (wrong SHA), add
  post-commit callout: run upload after push, before creating PR
- Docs (CLAUDE.md, CONTRIBUTING.md, README.md, PR template): correct
  ordering and wording throughout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Local tests not yet uploaded

This repository runs macOS-dependent tests locally (not in CI) to keep
GitHub Actions costs down. Before this PR can merge, please:

  1. Run the full test suite on your macOS machine:
    scripts/test-all.sh
    
  2. Upload the results to GitHub:
    scripts/upload-test-results.sh
    

Results will appear either as a Check Run or a PR comment on this commit.
See CLAUDE.md for more detail on the testing architecture.

@Soul-Craft Soul-Craft merged commit 2efa9ee into main Apr 16, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant