feat(ci): AI test plan + yad checklist + auto-merge on /test-passed#18
Merged
Conversation
pr-build.yml: - Generate test plan via Claude Haiku before build (ANTHROPIC_API_KEY secret); fallback to diff-derived checklist when no key configured - Embed TEST_PLAN file in .deb so installer shows PR-specific checks - Cleanup job confirmed working automatically on PR close xfce-night-switch-setup: - yad checklist dialog: shows TEST_PLAN items + standard checks - All boxes must be ticked before /test-passed is posted - Cron redirected to log file (no more terminal noise) pr-test-gate.yml: - After /test-passed: set check green, wait for all checks, squash-merge, delete branch (auto-merge from main, not PR branch — issue_comment uses main) .claude/commands/test-plan.md: - /test-plan skill: analyzes current branch diffs, generates markdown checklist, offers to post as PR comment via gh
Allows using any Anthropic-compatible API endpoint and model: ANTHROPIC_BASE_URL — custom proxy / self-hosted (default: api.anthropic.com) ANTHROPIC_MODEL — any model ID (default: claude-haiku-4-5-20251001) ANTHROPIC_API_KEY — token for the endpoint README: added Contributing section documenting the three secrets, custom endpoint setup, and the /test-plan Claude Code skill.
Multi-line PROMPT= string had unindented continuation lines breaking YAML block scalar parsing. Rewrote using printf for prompt, echo for PR comment body. Removed duplicate Generate test plan step.
Test build ready -- PR #18Install (Ubuntu/Debian/Mint): wget -q 'https://github.com/prostopasta/xfce-night-switch/releases/download/pr-18-test-ed06dd3/xfce-night-switch_1.3.1-pr.18.ed06dd3_all.deb' -O /tmp/xns-test.deb \
&& sudo dpkg -i /tmp/xns-test.deb \
&& xfce-night-switch-setupChecklist
After verifying all items, confirm by commenting |
Owner
Author
|
/test-passed |
prostopasta
added a commit
that referenced
this pull request
Jun 28, 2026
) * feat(ci): AI test plan + yad checklist + /test-passed auto-merge pr-build.yml: - Generate test plan via Claude Haiku before build (ANTHROPIC_API_KEY secret); fallback to diff-derived checklist when no key configured - Embed TEST_PLAN file in .deb so installer shows PR-specific checks - Cleanup job confirmed working automatically on PR close xfce-night-switch-setup: - yad checklist dialog: shows TEST_PLAN items + standard checks - All boxes must be ticked before /test-passed is posted - Cron redirected to log file (no more terminal noise) pr-test-gate.yml: - After /test-passed: set check green, wait for all checks, squash-merge, delete branch (auto-merge from main, not PR branch — issue_comment uses main) .claude/commands/test-plan.md: - /test-plan skill: analyzes current branch diffs, generates markdown checklist, offers to post as PR comment via gh * fix(ci): support ANTHROPIC_BASE_URL and ANTHROPIC_MODEL secrets Allows using any Anthropic-compatible API endpoint and model: ANTHROPIC_BASE_URL — custom proxy / self-hosted (default: api.anthropic.com) ANTHROPIC_MODEL — any model ID (default: claude-haiku-4-5-20251001) ANTHROPIC_API_KEY — token for the endpoint README: added Contributing section documenting the three secrets, custom endpoint setup, and the /test-plan Claude Code skill. * fix(ci): fix YAML parse error in pr-build.yml Multi-line PROMPT= string had unindented continuation lines breaking YAML block scalar parsing. Rewrote using printf for prompt, echo for PR comment body. Removed duplicate Generate test plan step.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
AI-generated test plan per PR
pr-build.ymlcalls Claude Haiku (viaANTHROPIC_API_KEYsecret) before building the .debyad checklist dialog in setup
Auto-merge on /test-passed
pr-test-gate.yml(on main): sets check green → waits for all checks → squash-merge + delete branch.claude/commands/test-plan.mdskill/test-planin Claude Code: analyzes current branch, generates checklist, offers to post as PR commentSetup
Add
ANTHROPIC_API_KEYto repo secrets for AI-generated plans.Without it, the fallback diff-based checklist is used automatically.