Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
chore(github): streamline issue template and prune redundant workflows
Samir Hossains4a6cccbd6bbc
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex f287ee7..8a6394f 100644--- a/.github/ISSUE_TEMPLATE/bug_report.yml+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -1,31 +1,13 @@name: Bug report-description: Something is broken or not working as expected.+description: Report an error, crash, or unexpected behavior.title: "bug: "labels: ["bug"]body:- - type: checkboxes- id: preflight- attributes:- label: Pre-submission checklist- options:- - label: I checked docs/known-issues.md and docs/players.md- required: true- - label: I am using the latest version of MovieBox-Tui- required: true- - label: If on Android/Termux, I installed termux-tools and an Android media player (VLC, Just Player, MPV app)- required: false-- type: textareaid: descriptionattributes:- label: What happened?- description: >- Describe the bug clearly. What did you expect to happen instead?- One-line answers like "it shows error" will be closed automatically.- placeholder: |- Example: When I search for "Inception" and press Enter to watch,- the app shows "Player exited with code 1" and closes immediately.- I expected the video to start playing in mpv.+ label: Description+ description: What happened, and what did you expect instead?validations:required: true@@ -35,51 +17,23 @@ body:label: Steps to reproduceplaceholder: |1. Run `moviebox-tui`- 2. Search for ...- 3. Select ...- 4. Press Enter / watch+ 2.validations:required: true- type: textarea- id: log_output+ id: contextattributes:- label: Log / Terminal Output- description: >- Provide the exact sanitized log file path content.- Android/Linux: `~/.local/share/moviebox-tui/logs/moviebox-tui_rCURRENT.log`- Windows: `%LOCALAPPDATA%\moviebox-tui\logs\moviebox-tui_rCURRENT.log`- macOS: `~/Library/Application Support/moviebox-tui/logs/moviebox-tui_rCURRENT.log`- Run with `MOVIEBOX_LOG=debug moviebox-tui` to get detailed output.- render: shell+ label: Relevant logs, errors, or screenshots+ description: Terminal output, error notices, or screenshots (optional).validations:- required: true-- - type: input- id: version- attributes:- label: Version- description: Run `moviebox-tui --version` to find it.- placeholder: "0.1.20"- validations:- required: true-- - type: dropdown- id: os- attributes:- label: Operating system- options:- - macOS- - Linux- - Windows- - Android (Termux)- validations:- required: true+ required: false- type: input- id: terminal+ id: environmentattributes:- label: Terminal- placeholder: "Ghostty, iTerm2, Kitty, WezTerm, Alacritty, Termux, cmd, ..."+ label: Environment+ description: Version, OS, and Terminal.+ placeholder: "v0.1.22, Termux (Android) / macOS Ghostty / Windows Terminal"validations:required: truediff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.ymldeleted file mode 100644index 658033e..0000000--- a/.github/workflows/build-android.yml+++ /dev/null@@ -1,81 +0,0 @@-name: Build and Upload Android Binary--on:- workflow_dispatch:- inputs:- release_tag:- description: "Release tag to attach the Android binary to"- required: true- default: "v0.1.20"- git_ref:- description: "Git ref (branch, tag, or commit SHA) to build from"- required: false- default: "main"--permissions:- contents: write--jobs:- build-and-upload:- name: Build and Upload Android arm64- runs-on: ubuntu-latest- timeout-minutes: 30- steps:- - uses: actions/checkout@v7- with:- ref: ${{ github.event.inputs.git_ref || github.event.inputs.release_tag }}-- - name: Install Rust- uses: dtolnay/rust-toolchain@stable- with:- toolchain: 1.90.0- targets: aarch64-linux-android-- - uses: Swatinem/rust-cache@v2- with:- prefix-key: "android-arm64-backfill"-- - name: Setup Android NDK- id: setup-ndk- uses: nttld/setup-ndk@v1- with:- ndk-version: r26d- add-to-path: false-- - name: Configure Android Toolchain & Build- run: |- TOOLCHAIN="${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin"- echo "$TOOLCHAIN" >> $GITHUB_PATH- export PATH="$TOOLCHAIN:$PATH"- export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="$TOOLCHAIN/aarch64-linux-android24-clang"- export CC_aarch64_linux_android="$TOOLCHAIN/aarch64-linux-android24-clang"- export AR_aarch64_linux_android="$TOOLCHAIN/llvm-ar"-- cargo build --release --all-features --locked --target aarch64-linux-android-- - name: Validate Android ELF headers- run: |- BIN="target/aarch64-linux-android/release/moviebox-tui"- readelf -lW "$BIN" | grep -F "PHDR" || { echo "::error::Missing PT_PHDR"; exit 1; }- readelf -lW "$BIN" | grep -F "/system/bin/linker64" || { echo "::error::Missing Android PT_INTERP"; exit 1; }-- - name: Package Archive- run: |- mkdir dist- cp target/aarch64-linux-android/release/moviebox-tui dist/- cp README.md dist/- cp LICENSE-* dist/ || true- tar -czvf MovieBox_Android_arm64.tar.gz -C dist .-- - name: Update SHA256SUMS and Upload to Release- env:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- TAG: ${{ github.event.inputs.release_tag }}- run: |- gh release download "$TAG" -p "SHA256SUMS" || touch SHA256SUMS- sed -i '/MovieBox_Android_arm64.tar.gz/d' SHA256SUMS- sha256sum MovieBox_Android_arm64.tar.gz >> SHA256SUMS-- gh release upload "$TAG" MovieBox_Android_arm64.tar.gz --clobber- gh release upload "$TAG" SHA256SUMS --clobber- echo "✔ Successfully attached MovieBox_Android_arm64.tar.gz to $TAG"diff --git a/.github/workflows/duplicate-detector.yml b/.github/workflows/duplicate-detector.ymldeleted file mode 100644index 138e0ac..0000000--- a/.github/workflows/duplicate-detector.yml+++ /dev/null@@ -1,50 +0,0 @@-name: Duplicate Issue Detection--on:- issues:- types: [opened, edited]--permissions:- issues: write--jobs:- similarity:- runs-on: ubuntu-latest- if: "!github.event.issue.pull_request"- steps:- - name: Check issue similarity- uses: actions/github-script@v7- with:- script: |- const currentIssue = context.payload.issue;- const currentTitle = currentIssue.title.toLowerCase().replace(/^(bug|feat|chore|docs|fix):\s*/, '').trim();- if (currentTitle.length < 5) return;-- const words = currentTitle.split(/\s+/).filter(w => w.length > 3);- if (words.length === 0) return;-- const issues = await github.paginate(github.rest.issues.listForRepo, {- ...context.repo,- state: 'all',- per_page: 100,- });-- for (const issue of issues) {- if (issue.number === currentIssue.number || issue.pull_request) continue;- const otherTitle = issue.title.toLowerCase().replace(/^(bug|feat|chore|docs|fix):\s*/, '').trim();-- let matches = 0;- for (const word of words) {- if (otherTitle.includes(word)) matches++;- }-- const score = matches / words.length;- if (score >= 0.75) {- await github.rest.issues.createComment({- ...context.repo,- issue_number: currentIssue.number,- body: `Potential duplicate detected: #${issue.number} (${issue.title}).\n\nCheck that issue to see if this has already been reported or resolved.`- });- break;- }- }diff --git a/.github/workflows/incomplete-issue.yml b/.github/workflows/incomplete-issue.ymlindex b7cdedc..edd24d7 100644--- a/.github/workflows/incomplete-issue.yml+++ b/.github/workflows/incomplete-issue.yml@@ -10,28 +10,26 @@ jobs:triage:runs-on: ubuntu-lateststeps:- - name: Check for low-effort reports+ - name: Check for empty reportsuses: actions/github-script@v7with:script: |const issue = context.payload.issue;const body = issue.body || '';- const descMatch = body.match(/### What happened\?([\s\S]*?)###/);+ const descMatch = body.match(/### Description([\s\S]*?)###/);const reproMatch = body.match(/### Steps to reproduce([\s\S]*?)###/);- const logMatch = body.match(/### Log \/ Terminal Output([\s\S]*?)###/);const desc = descMatch ? descMatch[1].trim() : '';const repro = reproMatch ? reproMatch[1].trim() : '';- const log = logMatch ? logMatch[1].trim() : '';+ const hasImage = /<img|!\[.*?\]\(.*?\)/i.test(body);- const tooShort = (s) => s.replace(/\s/g, '').length < 30;- const isPlaceholder = (s) => /please\s*resol|no\s*steps|followed\s*everything/i.test(s);+ const tooShort = (s) => s.replace(/\s/g, '').length < 15;+ const isPlaceholder = (s) => /^(please\s*resol|no\s*steps|followed\s*everything|error|none|\.+)$/i.test(s.trim());const incomplete =- tooShort(desc) || isPlaceholder(desc) ||- tooShort(repro) || isPlaceholder(repro) ||- tooShort(log);+ ((tooShort(desc) || isPlaceholder(desc)) && !hasImage) ||+ ((tooShort(repro) || isPlaceholder(repro)) && !hasImage);if (!incomplete) return;@@ -44,5 +42,5 @@ jobs:await github.rest.issues.createComment({...context.repo,issue_number: issue.number,- body: `This issue is missing reproduction steps or terminal log output required to investigate.\n\nTo proceed, provide:\n1. Exact steps to reproduce the problem.\n2. The sanitized log file from:\n - **Android/Linux:** \`~/.local/share/moviebox-tui/logs/moviebox-tui_rCURRENT.log\`\n - **Windows:** \`%LOCALAPPDATA%\\moviebox-tui\\logs\\moviebox-tui_rCURRENT.log\`\n - **macOS:** \`~/Library/Application Support/moviebox-tui/logs/moviebox-tui_rCURRENT.log\`\n\nIssues without actionable details close automatically after 7 days. See the [debugging guide](https://github.com/mesamirh/MovieBox-Tui/blob/main/docs/debugging.md) for log capture instructions.`,+ body: `Thanks for opening an issue! Please provide a brief description of what happened and steps to reproduce it so we can investigate.\n\nScreenshots or terminal error notices can be pasted directly into the issue description.`,});