بنقرة واحدة
release
Execute the rtp2httpd release workflow — tag, GitHub release, CI handling, and stable branch updates.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Execute the rtp2httpd release workflow — tag, GitHub release, CI handling, and stable branch updates.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Translate and synchronize rtp2httpd Chinese documentation into English. ALWAYS use this skill whenever Chinese docs under docs/ need English translations under docs/en/, when Chinese doc diffs need to be reflected in existing English files, when VitePress English sidebar entries need to mirror Chinese docs, or when translation terminology needs to stay consistent across docs.
Write, run, review, and debug end-to-end tests for rtp2httpd. ALWAYS use this skill when the user: (1) wants to write or optimize e2e/integration tests, (2) asks to run tests or mentions run-e2e.sh, uv, pytest, collect-only, xdist, markers, fixtures, or parallelism, (3) needs to debug failing, flaky, slow, or hanging e2e tests, (4) mentions any file under e2e/ or scripts/run-e2e.sh, (5) mentions MockRTSP*, MockHTTP*, MockFCC*, MockSTUN*, R2HProcess, MulticastSender, helper APIs, or test fixtures, (6) asks about multicast, RTSP, HTTP proxy, FCC, STUN, M3U, EPG, URL template, or zerocopy test coverage in rtp2httpd, or (7) uses Chinese phrases such as "端到端测试", "跑测试", or "e2e 测试" in this repo.
Synchronize rtp2httpd FCC IP documentation from GitHub issue feedback. ALWAYS use this skill when the user asks to update FCC address docs, check new FCC IP reports, validate existing FCC entries, or process comments from https://github.com/stackia/rtp2httpd/issues/5.
Build, run, and configure rtp2httpd locally. Use this skill whenever the user wants to compile the project, start the daemon, pass command-line arguments, edit configuration, or troubleshoot build/runtime issues. Also activate when the user mentions cmake, build directory, rtp2httpd.conf, web-ui build, pnpm run, vite build, embedded_web_data.h, or asks how to test the service locally.
| name | release |
| description | Execute the rtp2httpd release workflow — tag, GitHub release, CI handling, and stable branch updates. |
This skill orchestrates the entire release process for rtp2httpd.
Follow these steps in order.
cd there first if needed).git branch --show-current.git status --porcelain. If the workspace is not clean, abort with instructions.gh release list --limit 1 --json tagName --jq '.[0].tagName'
(e.g., v3.14.2). Save it as the previous release tag so its donation block can be removed after publishing.-rc.1, -beta.2, or
-alpha.1. Record this decision because prereleases skip the versioned Makefile and stable branch steps.If the user did not provide an explicit target tag, use AskQuestion with header "Release type":
What type of release is this?
Options (single-select):
Based on the answer and latest version, compute the new tag (e.g., v3.15.0).
Scrape recent git history since the last tag to inform the notes:
export LAST_TAG="v3.x.y" # from step 0
git log "$LAST_TAG..HEAD" --oneline --no-merges --format="%s (%h)"
Categorize commits by type (feat:, fix:, perf:, refactor:, chore: etc.) to understand what went into this release.
Draft bilingual release notes in a file (e.g., /tmp/release-notes-v3.x.y.md) following these conventions.
Release notes must always contain both Chinese and English:
--- separator.---.Patch release format:
- {Chinese description}
- Detail if needed
- {Chinese description}
| 如果这个项目对你有帮助,不妨请作者喝一杯咖啡 ☕️ |
| --- |
| <img width="360" src="https://github.com/user-attachments/assets/fc5c3498-40e9-43b9-93a3-6a5a7917847b" /> |
---
- {English description}
- Detail if needed
- {English description}
Minor/major release format:
## 新功能
- {feature description in Chinese}
- Detail if needed
- ...
## 问题修复
- {fix description in Chinese}
- Detail if needed
- ...
| 如果这个项目对你有帮助,不妨请作者喝一杯咖啡 ☕️ |
| --- |
| <img width="360" src="https://github.com/user-attachments/assets/fc5c3498-40e9-43b9-93a3-6a5a7917847b" /> |
---
## New Features
- {feature description in English}
- Detail if needed
- ...
## Bug Fixes
- {fix description in English}
- Detail if needed
- ...
Always include this canonical donation block in the new release, regardless of whether the release is a patch, minor, major, or prerelease:
| 如果这个项目对你有帮助,不妨请作者喝一杯咖啡 ☕️ |
| --- |
| <img width="360" src="https://github.com/user-attachments/assets/fc5c3498-40e9-43b9-93a3-6a5a7917847b" /> |
Place the block exactly once, immediately after the Chinese content and before the --- separator that introduces
the English content. Do not append another donation block after the English content. If the user-provided notes
already contain the block, move it to the required position if necessary rather than adding a duplicate.
Release notes guidelines:
---)--- separatorCloses / Fixes #123 — those belong in git history onlyShow the drafted notes to the user by reading and outputting the full release notes file content so the user can directly review the complete bilingual notes and donation block.
Use AskQuestion with header "Ready to release?":
Ready to create release v3.x.y?
Show a summary: release notes file path, lint, tag creation, release creation, previous-release donation cleanup, and the CI/stable behavior appropriate for a formal release or prerelease.
Options:
After user approval, continue.
main with Clean Workspace# Switch to main if not already there, only if workspace is clean
git checkout main
git pull origin main
If there are uncommitted changes preventing a branch switch, advise the user to stash or commit first and abort.
First, install frontend dependencies to avoid stale local caches:
pnpm install
Then regenerate src/embedded_web_data.h so the released binary includes the latest frontend:
pnpm run web-ui:build
This updates src/embedded_web_data.h. Commit it if it changed:
git add src/embedded_web_data.h
git commit -m "chore: update embedded_web_data.h for v3.x.y"
If the file did not change (no diff), skip the commit.
pnpm run lint
If lint fails, show the output and ask the user whether to fix and retry or abort.
main, Then Create and Push Taggit push origin main
git tag -a "v3.x.y" -m "v3.x.y"
git push origin "v3.x.y"
For a formal release:
gh release create "v3.x.y" \
--title "v3.x.y" \
--notes-file /tmp/release-notes-v3.x.y.md
For a prerelease, include --prerelease:
gh release create "v3.x.y-rc.n" \
--title "v3.x.y-rc.n" \
--notes-file /tmp/release-notes-v3.x.y-rc.n.md \
--prerelease
After this, the CI release workflow is triggered automatically (it listens for release.published events).
Only the latest published release, including a prerelease, may display the donation QR code. Immediately after the new release is published, inspect only the previous release tag recorded during Step 0 and remove the canonical donation table from that release if it contains one.
gh release edit --notes-file rather than passing multiline notes as command arguments.uv run, never directly through python.The intended end state is:
latest published release (formal or prerelease): exactly one donation block
immediately previous release: no donation block
versioned JobIf the GitHub Release is a prerelease, skip this step entirely. The workflow intentionally skips the versioned
job for prereleases, so do not poll for a versioned Makefile commit and do not treat the skipped job as a failure.
The CI workflow has a versioned job that commits Makefile.versioned files back to the main branch. Wait for this commit to appear on main:
# Loop until the versioned makefiles commit appears on main
# The commit message pattern is "chore: update versioned Makefiles for v3.x.y"
while true; do
git fetch origin main
if git log origin/main --oneline --grep="versioned Makefiles for v3.x.y" | head -1 | grep -q "v3.x.y"; then
echo "Versioned Makefiles commit found!"
break
fi
echo "Waiting for versioned Makefiles commit... (retry in 30s)"
sleep 30
done
# Update local main
git pull origin main
If the CI run fails or the commit doesn't appear within 10 minutes, alert the user and stop. Check CI status via:
# Get the latest workflow run ID for the release tag
gh run list --workflow=release.yaml --branch "v3.x.y" --limit 1 --json databaseId,status,conclusion --jq '.[0]'
stable Branch for Formal Releases OnlyIf the release is a prerelease, skip this step and leave stable unchanged.
For a formal release:
git checkout stable
git pull origin stable
git merge --ff-only origin/main
git push origin stable
If git merge --ff-only origin/main fails (non-fast-forward), it means the stable branch has diverged — alert the user and abort. Do not force-push.
maingit checkout main
For a formal release, print a completion summary:
✅ Release v3.x.y complete!
- Tag: v3.x.y (pushed)
- GitHub Release: https://github.com/stackia/rtp2httpd/releases/tag/v3.x.y
- stable branch: updated (fast-forward merge)
- CI: running (Docker, OpenWRT, static binaries, macOS)
For a prerelease, explicitly report that versioned Makefile polling and the stable update were skipped by design:
✅ Prerelease v3.x.y-rc.n complete!
- Tag: v3.x.y-rc.n (pushed)
- GitHub Release: https://github.com/stackia/rtp2httpd/releases/tag/v3.x.y-rc.n
- Donation QR: present only on this latest release
- Versioned Makefiles: skipped for prerelease
- stable branch: unchanged
- CI: running (Docker, OpenWRT, static binaries, macOS)
release.yaml) builds Docker images, OpenWRT IPK/APK packages, Linux/macOS/FreeBSD static binaries, and uploads them as release assets.versioned job commits openwrt-support/rtp2httpd/Makefile.versioned and
openwrt-support/luci-app-rtp2httpd/Makefile.versioned back to main.versioned job is intentionally skipped and stable must remain unchanged.main or stable.gh run list and gh run view to monitor CI progress.