From ef697de3876b6040539338b78f8aaae6ad4e0c5c Mon Sep 17 00:00:00 2001 From: VallierDev <24893073+VallierDev@users.noreply.github.com> Date: Thu, 15 Oct 2026 01:17:49 +0800 Subject: [PATCH] Add bug report issue template with a diagnostics command Co-Authored-By: Claude Opus 5.5 --- .github/ISSUE_TEMPLATE/bug_report.yml | 57 +++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + 2 files changed, 58 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..863c635 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,57 @@ +name: 问题反馈 / Bug report +description: 报告 bug 或使用问题 / Report a bug or problem +labels: [bug] +body: + - type: markdown + attributes: + value: | + 感谢反馈!请尽量填写完整,否则我们很难定位问题。/ Thanks! Please fill in everything you can. + - type: textarea + id: problem + attributes: + label: 问题描述 / What happened + description: 做了什么操作、期望什么结果、实际发生了什么;能稳定复现吗?/ Steps, expected vs actual, reproducible? + validations: + required: true + - type: input + id: version + attributes: + label: 版本 / Version + description: Release 版本号(如 v0.1.1)或自己编译的提交号 / Release tag or commit + validations: + required: true + - type: dropdown + id: viewer + attributes: + label: 控制端 / Viewer + options: [Mac, Windows, iPhone / iPad, Android, 其他 / Other] + validations: + required: true + - type: textarea + id: diagnostics + attributes: + label: 诊断信息 / Diagnostics + description: | + 先复现一次问题,然后在被控的 Linux 上运行下面的命令,把输出粘贴到这里(IP 会被自动抹掉,不包含密码、令牌或剪贴板内容)。 + Reproduce the problem, then run this on the Linux host and paste the output (IPs are masked; no passwords, tokens or clipboard data). + + ```sh + { + echo "== 系统"; grep PRETTY_NAME /etc/os-release; uname -rm + echo "== 桌面"; echo "session=$XDG_SESSION_TYPE desktop=$XDG_CURRENT_DESKTOP" + echo "== 显示器"; xrandr --listmonitors 2>/dev/null + echo "== 缩放"; gsettings get org.gnome.desktop.interface scaling-factor 2>/dev/null; gsettings get org.gnome.mutter experimental-features 2>/dev/null + echo "== 显卡"; lspci 2>/dev/null | grep -iE 'vga|3d' + echo "== FFmpeg"; ffmpeg -hide_banner -encoders 2>/dev/null | grep -E 'h264_nvenc|libx264' + echo "== 日志"; journalctl --user -u uuremote-native.service --since "-30min" --no-pager -o cat \ + | grep -E 'Starting|backend|Selected capture|Desktop encoder|Capture setting request|Desktop video settings|Offer for connection|WARN|ERROR' | tail -n 80 + } 2>&1 | sed -E 's/[0-9]{1,3}(\.[0-9]{1,3}){3}/x.x.x.x/g' + ``` + render: text + validations: + required: true + - type: textarea + id: extra + attributes: + label: 截图或补充说明 / Screenshots, notes + description: 显示缩放比例(如 125%)、多显示器、是否用 NVIDIA 显卡等 / Display scaling, multiple monitors, GPU, ... diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..0086358 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: true