feat(ci): PR test gate — auto build + /test-passed confirmation#17
Merged
Conversation
- pr-build.yml: on every PR push builds a test .deb, creates a pre-release (pr-N-test tag), posts an install command in the PR comment, and sets a pending "test-gate" status check - pr-test-gate.yml: on /test-passed comment sets the "test-gate" check to success and reacts with 👍 - xfce-night-switch-setup: detects PR_NUMBER file in installed package, prompts user to confirm, posts /test-passed via gh CLI (or shows link) To enable the merge gate, set branch protection on main: Settings → Branches → Require status checks → "test-gate"
🧪 Test build ready — PR #17Install the test build (Ubuntu/Debian/Mint): wget -q 'https://github.com/prostopasta/xfce-night-switch/releases/download/pr-17-test/xfce-night-switch_1.2.3-pr.17_all.deb' -O /tmp/xns-test.deb \
&& sudo dpkg -i /tmp/xns-test.deb \
&& xfce-night-switch-setupAfter testing, confirm it works by commenting: |
prostopasta
added a commit
that referenced
this pull request
Jun 28, 2026
- pr-build.yml: on every PR push builds a test .deb, creates a pre-release (pr-N-test tag), posts an install command in the PR comment, and sets a pending "test-gate" status check - pr-test-gate.yml: on /test-passed comment sets the "test-gate" check to success and reacts with 👍 - xfce-night-switch-setup: detects PR_NUMBER file in installed package, prompts user to confirm, posts /test-passed via gh CLI (or shows link) To enable the merge gate, set branch protection on main: Settings → Branches → Require status checks → "test-gate"
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
Every PR to
mainnow automatically:.debfrom the branch and uploads it as a pre-release (pr-N-testtag)wget ... && sudo dpkg -i ... && xfce-night-switch-setupinstall commandtest-gatestatus check — blocks merge until confirmedxfce-night-switch-setupdetects the PR build (PR_NUMBERfile) and prompts the user to confirm the test interactively; ifghCLI is available and authenticated, posts/test-passedautomatically/test-passedPR comment —pr-test-gate.ymlsets the check to success and reacts 👍How to enable the merge gate
Go to: Settings → Branches → Branch protection rules → Edit (main)
test-gateAfter that, PRs cannot be merged until someone installs the test build and confirms.
Files
.github/workflows/pr-build.yml.github/workflows/pr-test-gate.ymlpackaging/bin/xfce-night-switch-setup