diff --git a/.gitea/workflows/announce-release.yml b/.gitea/workflows/announce-release.yml
new file mode 100644
index 0000000..f7d7b46
--- /dev/null
+++ b/.gitea/workflows/announce-release.yml
@@ -0,0 +1,36 @@
+name: Announce Release to Discord
+
+# Posts a published release to Discord through the ops repo's
+# announce-release.yml (which reads the release from the Gitea API).
+#
+# Publishing the draft that release.yml opens fires NO `release: published`
+# workflow: the draft belongs to the job token, and Gitea credits the publish
+# to its Actions user, whose events start nothing. So after publishing, run
+# this workflow by hand (Actions → Announce Release to Discord → Run workflow)
+# with the tag. The `release` trigger stays for a release a person creates.
+on:
+ release:
+ types: [published]
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: "Existing release tag to announce"
+ required: true
+ type: string
+
+permissions: {}
+
+jobs:
+ announce:
+ permissions:
+ contents: read
+ uses: poli0981/.github/.gitea/workflows/announce-release.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
+ with:
+ tag_override: ${{ inputs.tag || '' }}
+ ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
+ # Only what the shared workflow declares — not `inherit`, which would hand
+ # every repository secret (the Android signing keys included) to it.
+ secrets:
+ DISCORD_RELEASES_WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
+ DISCORD_REPO_WEBHOOK: ${{ secrets.DISCORD_REPO_WEBHOOK }}
+ DISCORD_PING_ROLE_ID: ${{ secrets.DISCORD_PING_ROLE_ID }}
diff --git a/.github/workflows/ci.yml b/.gitea/workflows/ci.yml
similarity index 56%
rename from .github/workflows/ci.yml
rename to .gitea/workflows/ci.yml
index c88febb..820742f 100644
--- a/.github/workflows/ci.yml
+++ b/.gitea/workflows/ci.yml
@@ -1,34 +1,35 @@
name: CI
+# Gitea Actions (runbook: poli0981/.github docs/GITEA-MIGRATION.md). `check`
+# runs every gate on pull requests and on `main`; on a push to `main`, `deploy`
+# then publishes the web app to Cloudflare Workers with wrangler — the only
+# way the site is deployed (migration decision D3; Workers Builds pulled from
+# GitHub and is disconnected).
on:
push:
branches: [main]
pull_request:
branches: [main]
-# Least privilege. The jobs only read the repo — they publish nothing on
-# GitHub and comment nowhere (SonarCloud's own GitHub app reports on PRs, with
-# its own permissions). Declaring it explicitly also silences CodeQL's
-# `actions/missing-workflow-permissions`, which otherwise flags the implicit
-# (and much wider) default token scope.
+# Least privilege: the jobs only read the repo.
permissions:
contents: read
# A force-push or a quick follow-up commit makes the older run worthless. Cancel
-# it instead of paying for both — except on `main`, where every commit's result
-# is a historical record the release process reads back.
+# it instead of paying for both — except on `main`, where every run deploys.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
- # `check` is the required status on `main` (ruleset "main-protection") — keep
+ # `check` is the required status on `main` (Gitea branch protection) — keep
# the job id stable.
check:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-latest # Gitea: Docker, docker.gitea.com/runner-images
+ timeout-minutes: 30
steps:
# Actions are pinned by commit SHA (a tag can be moved; a SHA cannot).
- # Dependabot keeps the SHA and the version comment up to date.
+ # Renovate keeps the SHA and the version comment up to date.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
@@ -59,17 +60,9 @@ jobs:
run: npm run lint
- name: Validate locales
run: npm run validate:locales
- # Coverage thresholds for src/engine and worker live in vitest.config.ts.
+ # Coverage thresholds for the logic layers live in vitest.config.ts.
- name: Test (with coverage thresholds)
run: npm run test:coverage
- # The LCOV report the `sonarcloud` job hands to SonarCloud.
- - name: Keep the coverage report for SonarCloud
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
- with:
- name: coverage
- path: coverage/lcov.info
- if-no-files-found: error
- retention-days: 1
# --- consistency ------------------------------------------------------
- name: Check formatting
@@ -97,9 +90,9 @@ jobs:
# --- security ---------------------------------------------------------
# Advisory-only: a fresh high-severity advisory in a transitive dep must
- # not turn every unrelated PR red before Dependabot has had a chance to
- # open its fix PR. The Dependabot alerts tab is the source of truth, and
- # dependency-review (security.yml) blocks PRs that *introduce* one.
+ # not turn every unrelated PR red before Renovate opens its fix. The
+ # osv-scanner job (security.yml) and Renovate's OSV pull requests are
+ # the source of truth.
- name: Audit dependencies
run: npm audit --audit-level=high
continue-on-error: true
@@ -109,53 +102,52 @@ jobs:
run: npm run build
- name: Check bundle budget
run: npm run check:bundle
- # Validates wrangler.jsonc and bundles the Worker exactly as Workers
- # Builds will — without deploying anything.
+ # Validates wrangler.jsonc and bundles the Worker exactly as `deploy`
+ # will — without deploying anything.
- name: Dry-run the Cloudflare deploy
run: npm run cf:check
- # SonarCloud, CI-based: issues, duplication and the coverage from `check`,
- # judged by the quality gate (settings in sonar-project.properties).
- # Automatic Analysis is off in the project's settings, so this is the only
- # analysis. A job of its own so that SONAR_TOKEN never shares a job with
- # npm packages: it only checks out, takes the coverage report and runs the
- # scanner.
- #
- # PRs from forks and from Dependabot get no repository secrets (Dependabot
- # PRs get the Dependabot secrets, which hold no SONAR_TOKEN), so they skip
- # it and main is analysed once they merge. The PR author, not
- # `github.actor`, decides — the actor can be spoofed (zizmor: bot-conditions).
- sonarcloud:
+ # Production deploy of https://ytgenerator.stream after a green `check` on
+ # `main`. The Cloudflare token and account id are user-level Actions secrets
+ # shared by the web repos; the Worker's own secret (TURNSTILE_SECRET) lives in
+ # Cloudflare and survives every deploy. No dependency cache: what ships is
+ # built from a clean install.
+ deploy:
needs: check
- if: >-
- github.event_name == 'push' ||
- (github.event.pull_request.head.repo.full_name == github.repository &&
- github.event.pull_request.user.login != 'dependabot[bot]')
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
+ timeout-minutes: 30
+ concurrency:
+ group: deploy-production
+ cancel-in-progress: false
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
- # Full history: SonarCloud tells new code from old by git blame.
- fetch-depth: 0
persist-credentials: false
- - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- name: coverage
- path: coverage
- # New code is "since the previous version": each release starts a new
- # period, and SonarCloud learns the version from here.
- - name: Read the app version
- id: version
- run: |
- version="$(jq -r .version package.json)"
- if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
- echo "::error::package.json version \"$version\" is not X.Y.Z"
- exit 1
- fi
- echo "version=$version" >> "$GITHUB_OUTPUT"
- - name: SonarCloud scan
- uses: SonarSource/sonarqube-scan-action@e805d875275f728fac1885b413934be6d7c63f65 # v8.4.1
+ node-version-file: .node-version
+ package-manager-cache: false
+ - run: npm ci --ignore-scripts
+ # wrangler.jsonc's build.command runs `npm run build` first.
+ - name: Deploy to Cloudflare Workers
env:
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- with:
- args: -Dsonar.projectVersion=${{ steps.version.outputs.version }}
+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+ CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
+ WRANGLER_SEND_METRICS: "false"
+ run: npx wrangler deploy --message "main ${GITHUB_SHA:0:8}"
+ # Everything but the public files sits behind the Turnstile gate, so the
+ # check asks for the new build's entry chunk: content-hashed, public, and
+ # only served once this deploy is live.
+ - name: The new build is live
+ run: |
+ set -euo pipefail
+ entry=$(grep -o 'src="/assets/[^"]*\.js"' dist/index.html | head -1 | cut -d'"' -f2)
+ [ -n "$entry" ] || { echo "::error::no entry chunk in dist/index.html"; exit 1; }
+ for i in $(seq 1 30); do
+ code=$(curl -s -o /dev/null -w '%{http_code}' "https://ytgenerator.stream${entry}" || true)
+ if [ "$code" = 200 ]; then echo "live: ${entry} (attempt $i)"; exit 0; fi
+ sleep 5
+ done
+ echo "::error::https://ytgenerator.stream${entry} did not answer 200 (last: ${code})"
+ exit 1
diff --git a/.gitea/workflows/compliance.yml b/.gitea/workflows/compliance.yml
new file mode 100644
index 0000000..84e4535
--- /dev/null
+++ b/.gitea/workflows/compliance.yml
@@ -0,0 +1,63 @@
+name: Compliance
+
+# Repository hygiene that is not code: licensing metadata and pull-request
+# titles. `reuse` runs everywhere; `pr-title` only on pull requests.
+on:
+ pull_request:
+ branches: [main]
+ # `edited` so that fixing a PR title re-runs the title check.
+ types: [opened, edited, synchronize, reopened]
+ push:
+ branches: [main]
+
+permissions:
+ contents: read
+
+concurrency:
+ group: compliance-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
+jobs:
+ # REUSE (https://reuse.software): every file has a copyright and a license,
+ # via REUSE.toml. The tool comes from the hash-locked .github/requirements-ci.txt.
+ reuse:
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
+ with:
+ python-version: "3.12"
+ - name: Install reuse
+ run: |
+ python -m pip install --quiet --require-hashes --only-binary :all: -r .github/requirements-ci.txt
+ - name: reuse lint
+ run: reuse lint
+
+ # Conventional-commit PR titles, because merges keep the title as the commit
+ # subject: `type(scope): message`, the message starting lower-case like the
+ # rest of the history. Read from the event payload through `env:` — never
+ # interpolated into the script, and no API call (Gitea has no GitHub API).
+ pr-title:
+ if: ${{ github.event_name == 'pull_request' }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ steps:
+ - name: Check the pull request title
+ env:
+ TITLE: ${{ github.event.pull_request.title }}
+ run: |
+ types='feat|fix|refactor|perf|docs|test|ci|build|chore|revert'
+ if [[ "$TITLE" =~ ^($types)(\([a-z0-9./-]+\))?!?:\ (.+)$ ]]; then
+ subject="${BASH_REMATCH[3]}"
+ if [[ "$subject" =~ ^[A-Z] ]]; then
+ echo "::error::The subject \"$subject\" should start with a lower-case letter, like the rest of the history (e.g. \"feat(editor): add next-part button\")."
+ exit 1
+ fi
+ echo "ok: $TITLE"
+ else
+ echo "::error::\"$TITLE\" is not \`type(scope): message\` with type one of: ${types//|/, }."
+ exit 1
+ fi
diff --git a/.gitea/workflows/notify-ci-failure.yml b/.gitea/workflows/notify-ci-failure.yml
new file mode 100644
index 0000000..6a72300
--- /dev/null
+++ b/.gitea/workflows/notify-ci-failure.yml
@@ -0,0 +1,24 @@
+name: Notify CI Failures
+
+# A failed or cancelled run of the workflows below posts to Discord through
+# the ops repo's notify-ci-failure.yml (the script is loaded at `ops_ref`, the
+# same commit as `uses:`). Neither this file nor the shared one checks out the
+# triggering run's code: they read run metadata only, and pass every
+# untrusted field to the notifier through `env:`.
+on:
+ workflow_run: # zizmor: ignore[dangerous-triggers]
+ workflows: ["CI", "Security", "Compliance", "Rust", "Qodana"]
+ types: [completed]
+
+permissions: {}
+
+jobs:
+ notify:
+ permissions:
+ contents: read
+ actions: read
+ uses: poli0981/.github/.gitea/workflows/notify-ci-failure.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
+ with:
+ ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
+ secrets:
+ DISCORD_CI_WEBHOOK: ${{ secrets.DISCORD_CI_WEBHOOK }}
diff --git a/.gitea/workflows/notify-release-pipeline.yml b/.gitea/workflows/notify-release-pipeline.yml
new file mode 100644
index 0000000..281ba55
--- /dev/null
+++ b/.gitea/workflows/notify-release-pipeline.yml
@@ -0,0 +1,26 @@
+name: Notify Release Pipeline
+
+# Every run of the release pipeline (release.yml, dry runs included, and the
+# Discord announcement) reported to Discord through the ops repo's
+# notify-release-pipeline.yml. Match the exact `name:` of both producers:
+# renaming either silently breaks this filter.
+on:
+ workflow_run: # zizmor: ignore[dangerous-triggers]
+ workflows:
+ - "Release"
+ - "Announce Release to Discord"
+ types: [completed]
+
+permissions: {}
+
+jobs:
+ notify:
+ permissions:
+ contents: read
+ actions: read
+ uses: poli0981/.github/.gitea/workflows/notify-release-pipeline.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
+ with:
+ ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
+ # Only the webhook the shared workflow declares — not `inherit`.
+ secrets:
+ DISCORD_RELEASE_PIPELINE_WEBHOOK: ${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}
diff --git a/.gitea/workflows/qodana.yml b/.gitea/workflows/qodana.yml
new file mode 100644
index 0000000..1faa518
--- /dev/null
+++ b/.gitea/workflows/qodana.yml
@@ -0,0 +1,97 @@
+name: Qodana
+# JetBrains Qodana static analysis through the ops repo's reusable-qodana.yml
+# (the Qodana CLI; JetBrains/qodana-action needs GitHub's API), one linter per
+# Qodana Cloud project:
+#
+# typescript - qodana-js (native mode) the repository project yt-ts-js, secret QODANA_TOKEN_TS_JS, qodana.yaml
+# rust - qodana-rust (Docker, Early Access) src-tauri/ project yt-rust, secret QODANA_TOKEN_RUST, src-tauri/qodana.yaml
+#
+# Every run analyses the whole project, so a pull request and `main` report
+# the same way, and each qodana.yaml holds a quality gate of zero problems.
+# Results: Qodana Cloud and the qodana-report-* artifacts (SARIF and logs; no
+# code-scanning UI on Gitea). Not a required check.
+#
+# Both linters need an Ultimate licence; the account runs the Qodana Ultimate
+# trial. When the licence lapses, both jobs fail at the licence check: renew
+# it, or delete this file and the two qodana.yaml files.
+#
+# qodana-rust ships only as a Docker image: it runs on the maintainer's PC
+# (`windows-latest`, host mode) in Docker Desktop, as root so that the
+# bootstrap in src-tauri/qodana.yaml can install the libraries Tauri links
+# against. A run without a token (Renovate's) skips that analysis instead of
+# failing; the reusable also skips runs started by renovate-bot.
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+ workflow_dispatch:
+
+permissions: {}
+
+concurrency:
+ group: qodana-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+jobs:
+ tokens:
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ permissions: {}
+ outputs:
+ typescript: ${{ steps.check.outputs.typescript }}
+ rust: ${{ steps.check.outputs.rust }}
+ steps:
+ - name: Check for the Qodana tokens
+ id: check
+ env:
+ TOKEN_TS_JS: ${{ secrets.QODANA_TOKEN_TS_JS }}
+ TOKEN_RUST: ${{ secrets.QODANA_TOKEN_RUST }}
+ run: |
+ for pair in "typescript:$TOKEN_TS_JS" "rust:$TOKEN_RUST"; do
+ name="${pair%%:*}"
+ if [ -n "${pair#*:}" ]; then
+ echo "$name=true" >> "$GITHUB_OUTPUT"
+ else
+ echo "::notice::No Qodana token for $name in this run: that analysis is skipped."
+ fi
+ done
+
+ typescript:
+ needs: tokens
+ if: ${{ needs.tokens.outputs.typescript == 'true' }}
+ permissions:
+ contents: read
+ uses: poli0981/.github/.gitea/workflows/reusable-qodana.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
+ with:
+ runs-on: ubuntu-latest
+ linter: qodana-js
+ package-manager: npm
+ node-version-file: .node-version
+ artifact-name: qodana-report-typescript
+ secrets:
+ QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_TS_JS }}
+
+ rust:
+ needs: tokens
+ if: ${{ needs.tokens.outputs.rust == 'true' }}
+ permissions:
+ contents: read
+ uses: poli0981/.github/.gitea/workflows/reusable-qodana.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
+ with:
+ runs-on: windows-latest
+ within-docker: true
+ linter: qodana-rust
+ project-dir: src-tauri
+ repository-root: .
+ # The crates go to Qodana's cached directory.
+ extra-args: -u root -e CARGO_HOME=/data/cache/cargo
+ # tauri::generate_context!() refuses to expand without the frontend
+ # directory (frontendDist, ../dist): an empty page stands in for the web
+ # build, which the analysis does not need. The icons are committed.
+ prepare-command: >-
+ New-Item -ItemType Directory -Force dist | Out-Null;
+ Set-Content -Path dist/index.html -Value '
stand-in'
+ artifact-name: qodana-report-rust
+ secrets:
+ QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_RUST }}
diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml
new file mode 100644
index 0000000..1a5b3a4
--- /dev/null
+++ b/.gitea/workflows/release.yml
@@ -0,0 +1,408 @@
+# A `vX.Y.Z` tag builds the desktop and Android apps and publishes them to
+# Cloudflare R2 (ops runbook §3.3, migration guide youtube-generator.md):
+#
+# https://releases.poli0981.dev/youtube-generator//
+# https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk (uploaded last)
+#
+# then opens a DRAFT Gitea release with the notes and the links (the forge's
+# disk is not for binaries, runbook §1). Publish the draft in the Gitea UI,
+# then run announce-release.yml with the tag for Discord: publishing a draft
+# the job token created fires no workflow (Gitea credits the event to its
+# Actions user). The apps have no updater: people download a new version by
+# hand (docs/PACKAGING.md).
+#
+# - verify: the gates a release must pass, and the tag must name the version
+# in the six manifests.
+# - Windows builds on the maintainer's PC (host mode, `windows-latest`): MSI
+# and NSIS. Linux in the runner's Docker image `ubuntu-22.04` (its glibc is
+# the floor of the .deb/.rpm/.AppImage). Android (universal APK, the four
+# ABIs) in Docker with the SDK and a pinned NDK installed in the job. No
+# macOS: there is no macOS runner (migration decision D9); a Mac install
+# keeps the version it has (1.6.0 was the last).
+# - The APK is signed by Gradle (src-tauri/gen/android/app/build.gradle.kts
+# reads keystore.properties). The keystore secrets exist only in that job,
+# which runs only for a tag or a manual dispatch (runbook §2 rule 10).
+# - No dependency caches in release builds: a poisoned cache could end up
+# inside a shipped installer. Releases are rare; take the extra minutes.
+# - Manual run without a tag ("Run workflow" on a branch): everything builds
+# and the files are kept as the `r2-release` artifact for 7 days, but
+# nothing is uploaded or released (publish-r2.yml refuses a branch ref). An
+# uploaded file is never replaced (rclone --immutable): to ship a fix, bump
+# the version.
+name: Release
+
+on:
+ push:
+ tags: ["v*"]
+ workflow_dispatch:
+
+permissions: {}
+
+concurrency:
+ group: release-${{ github.ref }}
+ cancel-in-progress: false
+
+env:
+ # Pin the NDK so CI matches local (a floating NDK is a classic "works
+ # locally, breaks in CI"). To match locally, point NDK_HOME at the same
+ # version (otherwise Tauri picks the highest installed NDK).
+ NDK_VERSION: "27.3.13750724"
+
+jobs:
+ # Nothing gets built for a tag whose code does not pass the gate or whose
+ # six version fields disagree with the tag itself.
+ verify:
+ name: Verify
+ runs-on: ubuntu-latest
+ timeout-minutes: 20
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version-file: .node-version
+ package-manager-cache: false
+ - run: npm ci --ignore-scripts
+ - run: npm run typecheck
+ - run: npm run test:run
+ - run: npm run check:version
+ - run: npm run check:tauri
+ - name: Tag matches the manifests
+ env:
+ TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
+ run: |
+ version="v$(node -p "require('./package.json').version")"
+ if [ -n "$TAG" ] && [ "$version" != "$TAG" ]; then
+ echo "::error::Tag $TAG does not match package.json ($version)"
+ exit 1
+ fi
+ echo "version $version, tag ${TAG:-none (dry run)}"
+
+ windows:
+ name: Build (Windows)
+ needs: verify
+ runs-on: windows-latest # host mode on the maintainer's PC
+ timeout-minutes: 90
+ permissions:
+ contents: read
+ defaults:
+ run:
+ shell: pwsh
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version-file: .node-version
+ package-manager-cache: false
+ # rust-toolchain is pinned to a MASTER commit and given its toolchain:
+ # its `stable` branch is regenerated on top of master, so a commit of
+ # that branch can disappear.
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
+ with:
+ toolchain: stable
+ - run: npm ci --ignore-scripts
+ # tauri.conf.json: bundle.targets "all" (MSI + NSIS here).
+ - name: Build the installers
+ run: |
+ npm run tauri -- build
+ if ($LASTEXITCODE) { exit $LASTEXITCODE }
+ # One fixed name per kind, so the links never need encoding.
+ - name: Stage the installers
+ run: |
+ $ErrorActionPreference = 'Stop'
+ $version = node -p "require('./src-tauri/tauri.conf.json').version"
+ $out = Join-Path 'staged' $version
+ New-Item -ItemType Directory -Force $out | Out-Null
+ $bundle = 'src-tauri/target/release/bundle'
+ $kinds = @(
+ @{ Dir = 'msi'; Filter = "*_${version}_*.msi"; Name = "YTDescGen_${version}_x64_en-US.msi" },
+ @{ Dir = 'nsis'; Filter = "*_${version}_*-setup.exe"; Name = "YTDescGen_${version}_x64-setup.exe" }
+ )
+ foreach ($k in $kinds) {
+ $found = @(Get-ChildItem (Join-Path $bundle $k.Dir) -File -Filter $k.Filter)
+ if ($found.Count -ne 1) { Write-Host "::error::expected one $($k.Dir) bundle of $version, found: $($found.Name -join ', ')"; exit 1 }
+ Copy-Item $found[0].FullName (Join-Path $out $k.Name)
+ }
+ Get-ChildItem $out | ForEach-Object { "{0,12} {1}" -f $_.Length, $_.Name }
+ - name: Upload the installers
+ uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
+ with:
+ name: desktop-windows
+ path: staged/
+ if-no-files-found: error
+ retention-days: 7
+
+ linux:
+ name: Build (Linux)
+ needs: verify
+ runs-on: ubuntu-22.04
+ timeout-minutes: 90
+ permissions:
+ contents: read
+ env:
+ # linuxdeploy is itself an AppImage, and a container has no FUSE.
+ APPIMAGE_EXTRACT_AND_RUN: "1"
+ # linuxdeploy's strip pass fails intermittently on newer ELF sections.
+ NO_STRIP: "true"
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ # The job container runs as root; sudo only where there is one.
+ - name: Install Linux build dependencies
+ run: |
+ SUDO=""; if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" != 0 ]; then SUDO=sudo; fi
+ $SUDO apt-get update
+ $SUDO apt-get install -y --no-install-recommends \
+ libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf \
+ libssl-dev build-essential curl wget file xdg-utils rpm
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version-file: .node-version
+ package-manager-cache: false
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
+ with:
+ toolchain: stable
+ - run: npm ci --ignore-scripts
+ - name: Build the packages
+ run: npm run tauri -- build
+ # One fixed name per kind, so the links never need encoding.
+ - name: Stage the packages
+ run: |
+ set -euo pipefail
+ version=$(node -p "require('./src-tauri/tauri.conf.json').version")
+ out="staged/$version"
+ mkdir -p "$out"
+ bundle=src-tauri/target/release/bundle
+ stage() { #
+ local found=()
+ for f in $1; do [ -f "$f" ] && found+=("$f"); done
+ [ "${#found[@]}" -eq 1 ] || { echo "::error::expected one bundle for $1, found ${#found[@]}"; ls -la "$bundle"/*; exit 1; }
+ cp "${found[0]}" "$out/$2"
+ }
+ stage "$bundle/appimage/*.AppImage" "YTDescGen_${version}_amd64.AppImage"
+ stage "$bundle/deb/*.deb" "YTDescGen_${version}_amd64.deb"
+ stage "$bundle/rpm/*.rpm" "YTDescGen_${version}_x86_64.rpm"
+ ls -la "$out"
+ - name: Upload the packages
+ uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
+ with:
+ name: desktop-linux
+ path: staged/
+ if-no-files-found: error
+ retention-days: 7
+
+ android:
+ name: Build (Android)
+ needs: verify
+ runs-on: ubuntu-latest
+ timeout-minutes: 120
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
+ with:
+ distribution: temurin
+ java-version: "17"
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version-file: .node-version
+ package-manager-cache: false
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
+ with:
+ toolchain: stable
+ targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
+ # The runner image has no Android SDK (migration decision D10): the
+ # command-line tools come from setup-android (only platform-tools), the
+ # rest from sdkmanager. compileSdk/targetSdk 36 (gen/android).
+ - uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
+ with:
+ packages: platform-tools
+ log-accepted-android-sdk-licenses: false
+ - name: Install NDK + build-tools + platform
+ run: |
+ sdkmanager "ndk;${NDK_VERSION}" "build-tools;36.1.0" "platforms;android-36" > /dev/null
+ echo "NDK_HOME=$ANDROID_HOME/ndk/${NDK_VERSION}" >> "$GITHUB_ENV"
+ - run: npm ci --ignore-scripts
+ # The committed Gradle project (src-tauri/gen/android) builds the Rust
+ # side by running `cargo tauri android android-studio-script`
+ # (buildSrc/.../BuildTask.kt), so the cargo flavour of the Tauri CLI
+ # must be on PATH — the same version as the npm one in package.json.
+ - name: Install the Tauri CLI (cargo)
+ run: |
+ set -euo pipefail
+ version=$(node -p "require('./package.json').devDependencies['@tauri-apps/cli']")
+ cargo install tauri-cli --version "=${version}" --locked
+ cargo tauri --version
+ # Its release signing config reads keystore.properties, written here
+ # and removed with the keystore after the build.
+ - name: Write the keystore
+ env:
+ ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
+ ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
+ ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
+ ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
+ run: |
+ set -euo pipefail
+ if [ -z "$ANDROID_KEYSTORE_BASE64" ]; then echo "::error::ANDROID_KEYSTORE_BASE64 is not set"; exit 1; fi
+ echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.jks"
+ {
+ echo "storeFile=$RUNNER_TEMP/release.jks"
+ echo "storePassword=$ANDROID_STORE_PASSWORD"
+ echo "keyAlias=$ANDROID_KEY_ALIAS"
+ echo "keyPassword=$ANDROID_KEY_PASSWORD"
+ } > src-tauri/gen/android/keystore.properties
+ - name: Build the signed APK (universal)
+ run: cargo tauri android build --apk
+ - name: Stage the APK
+ run: |
+ set -euo pipefail
+ rm -f "$RUNNER_TEMP/release.jks" src-tauri/gen/android/keystore.properties
+ BT=$(find "$ANDROID_HOME/build-tools" -mindepth 1 -maxdepth 1 -type d | sort -V | tail -1)
+ version=$(node -p "require('./src-tauri/tauri.conf.json').version")
+ apk=src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
+ [ -f "$apk" ] || { echo "::error::no $apk"; find src-tauri/gen/android/app/build/outputs -name '*.apk'; exit 1; }
+ "$BT/apksigner" verify --print-certs "$apk" | grep -i 'SHA-256' || true
+ "$BT/apksigner" verify "$apk"
+ mkdir -p "staged/$version"
+ cp "$apk" "staged/$version/YTDescGen_${version}_universal.apk"
+ ls -la "staged/$version"
+ - name: Remove the keystore
+ if: ${{ always() }}
+ run: rm -f "$RUNNER_TEMP/release.jks" src-tauri/gen/android/keystore.properties
+ - name: Upload the APK
+ uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
+ with:
+ name: android
+ path: staged/
+ if-no-files-found: error
+ retention-days: 7
+
+ assemble:
+ name: Assemble (checksums, notes)
+ needs: [windows, linux, android]
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - name: Download the Windows installers
+ uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
+ with:
+ name: desktop-windows
+ path: r2-release/versioned
+ - name: Download the Linux packages
+ uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
+ with:
+ name: desktop-linux
+ path: r2-release/versioned
+ - name: Download the APK
+ uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
+ with:
+ name: android
+ path: r2-release/versioned
+ # On a tag, the tag must name the version the apps were built with.
+ - name: Checksums, alias and notes
+ env:
+ TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
+ SERVER: ${{ github.server_url }}
+ REPO: ${{ github.repository }}
+ run: |
+ set -euo pipefail
+ version=$(node -p "require('./src-tauri/tauri.conf.json').version")
+ if [ -n "$TAG" ] && [ "$TAG" != "v$version" ]; then
+ echo "::error::tag $TAG does not match the app version $version (tauri.conf.json)"; exit 1
+ fi
+ dir="r2-release/versioned/$version"
+ [ "$(find "$dir" -type f | wc -l)" -eq 6 ] || { echo "::error::expected 6 files in $dir"; ls -la "$dir"; exit 1; }
+ (cd "$dir" && sha256sum -- * | sort -k2 > SHA256SUMS)
+ cat "$dir/SHA256SUMS"
+ cp "$dir/YTDescGen_${version}_universal.apk" r2-release/youtube-generator-latest.apk
+
+ base="https://releases.poli0981.dev/youtube-generator/$version"
+ {
+ echo "YTDescGen $version for Windows, Linux and Android — the same app as https://ytgenerator.stream."
+ echo
+ echo "What changed: [CHANGELOG]($SERVER/$REPO/src/branch/main/CHANGELOG.md)."
+ echo
+ echo "**Download** — Windows 10/11 x64 (\`-setup.exe\` or \`.msi\`), Linux x86_64 (\`.AppImage\`, \`.deb\`, \`.rpm\`), Android 11+ (universal \`.apk\`). No macOS build since 1.6.0 (there is no macOS build machine since the move from GitHub)."
+ echo
+ while read -r _ name; do
+ echo "- [$name]($base/$name)"
+ done < "$dir/SHA256SUMS"
+ echo "- [SHA256SUMS]($base/SHA256SUMS)"
+ echo
+ echo "The newest APK is always at https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk."
+ echo
+ echo "SHA-256:"
+ echo
+ echo '```'
+ cat "$dir/SHA256SUMS"
+ echo '```'
+ } > notes.md
+ cat notes.md
+ - name: Upload the release files
+ uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
+ with:
+ name: r2-release
+ path: r2-release/
+ if-no-files-found: error
+ retention-days: 7
+ - name: Upload the notes
+ uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
+ with:
+ name: release-notes
+ path: notes.md
+ retention-days: 7
+
+ publish:
+ name: Publish to R2
+ needs: assemble
+ if: ${{ startsWith(github.ref, 'refs/tags/v') }}
+ permissions:
+ contents: read
+ uses: poli0981/.github/.gitea/workflows/publish-r2.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
+ with:
+ app: youtube-generator
+ artifact: r2-release
+ versioned-dir: versioned
+ feed-files: |
+ youtube-generator-latest.apk
+ runs-on: ubuntu-latest
+ secrets:
+ R2_RELEASES_ACCESS_KEY_ID: ${{ secrets.R2_RELEASES_ACCESS_KEY_ID }}
+ R2_RELEASES_SECRET_ACCESS_KEY: ${{ secrets.R2_RELEASES_SECRET_ACCESS_KEY }}
+
+ release:
+ name: Gitea release (draft, notes + links)
+ needs: publish
+ if: ${{ startsWith(github.ref, 'refs/tags/v') }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ permissions:
+ contents: write # VERIFY which of contents / releases Gitea enforces
+ releases: write # (runbook §3.2 item 5)
+ steps:
+ - name: Download the notes
+ uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
+ with:
+ name: release-notes
+ path: .
+ - name: Create the draft release
+ uses: https://gitea.com/actions/gitea-release-action@5a83c90484ef4355121df5eb60558c8ce66e81ac # v1.3.7
+ with:
+ tag_name: ${{ github.ref_name }}
+ name: YTDescGen ${{ github.ref_name }}
+ body_path: notes.md
+ draft: true
diff --git a/.github/workflows/rust.yml b/.gitea/workflows/rust.yml
similarity index 52%
rename from .github/workflows/rust.yml
rename to .gitea/workflows/rust.yml
index a65616c..0fdcd41 100644
--- a/.github/workflows/rust.yml
+++ b/.gitea/workflows/rust.yml
@@ -1,20 +1,25 @@
name: Rust
# The Tauri shell changes rarely, so this only runs when it does (or weekly,
-# to catch new RustSec advisories). Not a required check for that reason.
+# so a new stable toolchain's lints show up without a code change). Not a
+# required check for that reason. cargo-deny (advisories, licences, sources)
+# runs in security.yml through the ops repo.
+#
+# Weekly: Monday 15:53 UTC = 22:53 Vietnam (slot in the ops repo's cron
+# registry; the runner only runs 13:00–16:00 UTC).
on:
pull_request:
branches: [main]
paths:
- "src-tauri/**"
- - ".github/workflows/rust.yml"
+ - ".gitea/workflows/rust.yml"
push:
branches: [main]
paths:
- "src-tauri/**"
- - ".github/workflows/rust.yml"
+ - ".gitea/workflows/rust.yml"
schedule:
- - cron: "41 4 * * 1"
+ - cron: "53 15 * * 1"
workflow_dispatch:
permissions:
@@ -26,32 +31,36 @@ concurrency:
jobs:
lint-and-test:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-latest # Gitea: Docker, docker.gitea.com/runner-images
+ timeout-minutes: 45
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
+ # The libraries Tauri links against on Linux. The job container runs as
+ # root; sudo only where there is one.
- name: Install Linux dependencies
run: |
- sudo apt-get update
- sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \
+ SUDO=""; if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" != 0 ]; then SUDO=sudo; fi
+ $SUDO apt-get update
+ $SUDO apt-get install -y --no-install-recommends \
+ build-essential pkg-config libssl-dev libwebkit2gtk-4.1-dev libgtk-3-dev \
libayatana-appindicator3-dev librsvg2-dev patchelf
- # Pinned to a commit on master, with the toolchain passed explicitly: the
- # action's `stable` branch is regenerated from master, which orphans any
- # SHA pinned there (zizmor: impostor-commit). Master keeps its history.
- - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
+ # rust-toolchain is pinned to a MASTER commit and given its toolchain:
+ # its `stable` branch is regenerated on top of master, so a commit of
+ # that branch can disappear (zizmor then reports an impostor commit).
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: src-tauri
- # tauri::generate_context!() embeds the frontend at compile time, so
- # clippy and the tests need a built dist/.
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
cache: npm
+ # tauri::generate_context!() needs the web build (frontendDist).
- run: npm ci --ignore-scripts
- run: npm run build
- name: rustfmt
@@ -63,16 +72,3 @@ jobs:
- name: test
working-directory: src-tauri
run: cargo test --locked
-
- # RustSec advisories, license allowlist, duplicate/banned crates and
- # registry sources for the whole crate tree (src-tauri/deny.toml).
- cargo-deny:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- - uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
- with:
- manifest-path: src-tauri/Cargo.toml
- command: check advisories licenses sources
diff --git a/.gitea/workflows/security.yml b/.gitea/workflows/security.yml
new file mode 100644
index 0000000..b8c58b8
--- /dev/null
+++ b/.gitea/workflows/security.yml
@@ -0,0 +1,89 @@
+name: Security
+
+# Gitea has no CodeQL, no dependency review and no code-scanning UI (runbook
+# §1, migration decision D7). This workflow covers:
+#
+# workflow-lint actionlint + shellcheck and zizmor on .gitea/workflows/*.yml
+# scan the ops repo's security.yml: gitleaks (full history),
+# Opengrep (SAST), osv-scanner (package-lock.json, Cargo.lock;
+# exceptions in src-tauri/osv-scanner.toml) and cargo-deny
+# (src-tauri/deny.toml)
+#
+# Weekly as well, so a new advisory against an unchanged lockfile turns it red:
+# Wednesday 13:37 UTC = 20:37 Vietnam (slot in the ops repo's cron registry;
+# the runner is the maintainer's PC and only runs 13:00–16:00 UTC).
+on:
+ pull_request:
+ branches: [main]
+ push:
+ branches: [main]
+ schedule:
+ - cron: "37 13 * * 3"
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: security-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
+jobs:
+ # Both linters without Docker: actionlint and shellcheck as release binaries
+ # at pinned versions, SHA-256 verified (the ops repo's ops-lint.yml pins);
+ # zizmor from the hash-locked .github/requirements-ci.txt. Renovate does not
+ # update the binaries: bump version and checksum together, by hand.
+ workflow-lint:
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ env:
+ ACTIONLINT_VERSION: 1.7.12
+ ACTIONLINT_SHA256: 8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8 # actionlint_1.7.12_linux_amd64.tar.gz (release checksums file)
+ SHELLCHECK_VERSION: v0.11.0
+ SHELLCHECK_SHA256: 8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198 # shellcheck-v0.11.0.linux.x86_64.tar.xz
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
+ with:
+ python-version: "3.12"
+ - name: Install zizmor
+ run: |
+ python -m pip install --quiet --require-hashes --only-binary :all: -r .github/requirements-ci.txt
+ # The files by name: zizmor only looks for .github/workflows by itself.
+ # Offline: its online audits ask GitHub's API about the actions, with a
+ # token this runner does not have. Any finding at medium or above fails.
+ - name: zizmor (workflow security audit)
+ run: zizmor --offline --min-severity medium --config .github/zizmor.yml .gitea/workflows/*.yml
+ - name: Install actionlint ${{ env.ACTIONLINT_VERSION }} + shellcheck ${{ env.SHELLCHECK_VERSION }}
+ run: |
+ set -euo pipefail
+ tmp="${RUNNER_TEMP:-/tmp}"
+ bin="$tmp/lint-bin"
+ mkdir -p "$bin"
+ curl -fsSL --retry 3 -o "$tmp/actionlint.tar.gz" \
+ "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
+ echo "${ACTIONLINT_SHA256} $tmp/actionlint.tar.gz" | sha256sum -c -
+ tar -xzf "$tmp/actionlint.tar.gz" -C "$bin" actionlint
+ curl -fsSL --retry 3 -o "$tmp/shellcheck.tar.xz" \
+ "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz"
+ echo "${SHELLCHECK_SHA256} $tmp/shellcheck.tar.xz" | sha256sum -c -
+ tar -xJf "$tmp/shellcheck.tar.xz" -C "$bin" --strip-components=1 "shellcheck-${SHELLCHECK_VERSION}/shellcheck"
+ echo "$bin" >> "$GITHUB_PATH"
+ # .github/actionlint.yaml ignores only the Gitea features actionlint does
+ # not know; everything else stays an error.
+ - name: actionlint (workflow syntax and expressions)
+ run: |
+ actionlint -version
+ actionlint -color -config-file .github/actionlint.yaml \
+ -shellcheck "$(command -v shellcheck)" .gitea/workflows/*.yml
+
+ scan:
+ permissions:
+ contents: read
+ uses: poli0981/.github/.gitea/workflows/security.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
+ with:
+ node: true
+ rust: true
+ cargo-manifest-path: src-tauri/Cargo.toml
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
deleted file mode 100644
index 1ff3618..0000000
--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-github: poli0981
-ko_fi: skullmute
-buy_me_a_coffee: skullmute
-patreon: skullmute
-custom:
- - paypal.me/DungDang212
diff --git a/.github/ISSUE_TEMPLATE/accessibility.yml b/.github/ISSUE_TEMPLATE/accessibility.yml
index f7f4c90..f0fa058 100644
--- a/.github/ISSUE_TEMPLATE/accessibility.yml
+++ b/.github/ISSUE_TEMPLATE/accessibility.yml
@@ -8,7 +8,7 @@ body:
value: |
Thanks for telling us. You don't need to know what causes the problem — describe what you tried and what happened.
Prefer not to post in public? Email **contact@poli0981.dev** with `[Accessibility]` at the start of the subject.
- How reports are handled: [ACCESSIBILITY.md](https://github.com/poli0981/youtube-generator/blob/main/ACCESSIBILITY.md#reporting-a-barrier).
+ How reports are handled: [ACCESSIBILITY.md](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/ACCESSIBILITY.md#reporting-a-barrier).
- type: textarea
id: barrier
attributes:
@@ -88,7 +88,7 @@ body:
options:
- Web (ytgenerator.stream)
- Desktop — Windows (Tauri)
- - Desktop — macOS (Tauri)
+ - Desktop — macOS (Tauri, 1.6.0 or older)
- Desktop — Linux (Tauri)
- Android (APK)
- Local dev (npm run dev)
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index af93a67..8e18c3b 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -23,7 +23,7 @@ body:
options:
- Web (ytgenerator.stream)
- Desktop — Windows (Tauri)
- - Desktop — macOS (Tauri)
+ - Desktop — macOS (Tauri, 1.6.0 or older)
- Desktop — Linux (Tauri)
- Android (APK)
- Local dev (npm run dev)
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 8e7c4be..f938694 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -1,20 +1,14 @@
blank_issues_enabled: false
contact_links:
- - name: Feature ideas (maintenance mode)
- url: https://github.com/poli0981/youtube-generator/discussions/categories/ideas
- about: YTDescGen is in maintenance mode and takes no new features. Share ideas in Discussions, with no commitment. To add or remove an option in one of the app's lists, use the Option request form.
+ - name: Issues and merge requests (GitLab mirror)
+ url: https://gitlab.com/poli0981/youtube-generator/-/issues
+ about: The Gitea repository takes no sign-ups. Bug reports, option requests, translation fixes and accessibility barriers go to the GitLab mirror, which has the same templates. YTDescGen is in maintenance mode and takes no new features.
- name: Report a security vulnerability
- url: https://github.com/poli0981/youtube-generator/security/advisories/new
- about: Privately, please — never in a public issue. See SECURITY.md.
- - name: User guide (wiki)
- url: https://github.com/poli0981/youtube-generator/wiki
- about: How-tos, backup & restore, troubleshooting and the FAQ.
+ url: https://ytgenerator.stream/.well-known/security.txt
+ about: Privately, by e-mail to security@poli0981.dev — never in a public issue. See SECURITY.md.
- name: Discord
url: https://discord.gg/kDM9GMu5vm
- about: For casual questions, gameplay chat, or quick help. Use an issue form for anything actionable.
+ about: For casual questions, gameplay chat, or quick help. Use an issue for anything actionable.
- name: All channels and contacts
url: https://poli0981.dev/links/
about: Email addresses by purpose and every other way to reach the maintainer.
- - name: GitHub Discussions
- url: https://github.com/poli0981/youtube-generator/discussions
- about: Ideas, Q&A, and release announcements live here.
diff --git a/.github/ISSUE_TEMPLATE/option_request.yml b/.github/ISSUE_TEMPLATE/option_request.yml
index f8e98a7..f606c08 100644
--- a/.github/ISSUE_TEMPLATE/option_request.yml
+++ b/.github/ISSUE_TEMPLATE/option_request.yml
@@ -6,7 +6,7 @@ body:
- type: markdown
attributes:
value: |
- YTDescGen is in **maintenance mode** ([CONTRIBUTING.md → Maintenance mode](https://github.com/poli0981/youtube-generator/blob/main/CONTRIBUTING.md#maintenance-mode)): it takes no new features, but an option people really need can still join — or leave — one of the lists the app already has. For anything else, share the idea in [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas).
+ YTDescGen is in **maintenance mode** ([CONTRIBUTING.md → Maintenance mode](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/CONTRIBUTING.md#maintenance-mode)): it takes no new features, but an option people really need can still join — or leave — one of the lists the app already has. For anything else, open a plain issue.
- type: dropdown
id: action
attributes:
diff --git a/.github/ISSUE_TEMPLATE/translation.yml b/.github/ISSUE_TEMPLATE/translation.yml
index 88dab93..418364b 100644
--- a/.github/ISSUE_TEMPLATE/translation.yml
+++ b/.github/ISSUE_TEMPLATE/translation.yml
@@ -6,7 +6,7 @@ body:
- type: markdown
attributes:
value: |
- YTDescGen ships eight languages. Vietnamese is native-reviewed; Japanese, Spanish, Korean, Chinese, Portuguese (Brazil) and Indonesian are AI-translated (see [DISCLAIMER.md](https://github.com/poli0981/youtube-generator/blob/main/DISCLAIMER.md)), so corrections from native speakers are very welcome.
+ YTDescGen ships eight languages. Vietnamese is native-reviewed; Japanese, Spanish, Korean, Chinese, Portuguese (Brazil) and Indonesian are AI-translated (see [DISCLAIMER.md](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/DISCLAIMER.md)), so corrections from native speakers are very welcome.
- type: dropdown
id: language
attributes:
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index e9bae44..04d6812 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,7 +1,7 @@
diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml
new file mode 100644
index 0000000..efbd8f3
--- /dev/null
+++ b/.github/actionlint.yaml
@@ -0,0 +1,11 @@
+# actionlint settings (security.yml, job `workflow-lint`, and a local
+# `actionlint` run from the repo root), as in the ops repo poli0981/.github.
+# Only Gitea features that actionlint does not know are ignored here;
+# everything else stays an error.
+paths:
+ .gitea/workflows/*.yml:
+ ignore:
+ # Gitea's own token scope for releases (ops runbook §3.2 item 5)
+ - 'unknown permission scope "releases"'
+ # Gitea resolves full-URL actions; bare owner/repo goes to github.com (ops runbook §1)
+ - 'specifying action "https://gitea\.com/[^"]+" in invalid format'
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
deleted file mode 100644
index 1bfcbe4..0000000
--- a/.github/dependabot.yml
+++ /dev/null
@@ -1,139 +0,0 @@
-# Dependabot configuration.
-#
-# Three ecosystems: npm (the app), cargo (the Tauri shell), and github-actions
-# (the workflows). Security updates are on repo-wide by default; the entries
-# below add scheduled VERSION updates so the tree does not silently rot between
-# advisories, and carry the ignore rules that keep unfixable alerts quiet.
-#
-# `cooldown` holds version updates back for a week after a release is
-# published. Most npm supply-chain compromises are caught and yanked within
-# that window; security updates ignore the cooldown and still arrive at once.
-#
-# Why the cargo ignore: `glib` is a transitive dependency of tauri's Linux
-# stack, and its security fix requires a semver-major bump the tree does not
-# allow, so every Dependabot security-update job for it fails with
-# `security_update_not_possible`:
-#
-# glib 0.18.5 (fix: 0.20.0) pinned by
-# tauri's gtk-rs 0.18 Linux stack (gtk/gdk/gio 0.18 require glib 0.18)
-#
-# Remove the ignore once tauri moves to gtk-rs >= 0.20. (`rand` 0.7.3, the
-# other long-standing one, left the tree in v1.0.0 when tauri 2.12 dropped
-# kuchikiki.)
-#
-# The npm side holds one package back on purpose: `i18next` stays on 26.6.x
-# (`~26.6.0` in package.json). 26.7, the last 26.x minor, adds the debug-mode
-# warnings that prepare the move to v27 — about 1.9 KB gzip in the i18n chunk,
-# which takes the initial load from 279.0 KB to 280.9 KB, over the 280 KB
-# budget (`npm run check:bundle`), for code the app never runs. Remove the
-# ignore and the tilde with the planned i18next 27 migration.
-#
-# (`undici`, overridden in package.json for alert #49 until v1.5.1, needs no
-# override any more: miniflare >= 5.20261101 depends on undici 7.30.1 itself.)
-#
-# Tauri moves in lockstep: the tauri CLI refuses to build when the
-# @tauri-apps/* npm packages and the tauri crates differ in major.minor. When
-# the `tauri` npm group arrives, run `cargo update -p tauri` (and the plugin
-# crates) in src-tauri/ on the same branch — `npm run check:tauri` in CI says
-# which ones.
-
-version: 2
-updates:
- - package-ecosystem: "npm"
- directory: "/"
- schedule:
- interval: "weekly"
- cooldown:
- default-days: 7
- open-pull-requests-limit: 5
- commit-message:
- prefix: "chore(deps)"
- prefix-development: "chore(deps-dev)"
- groups:
- # One PR per family instead of one per package. A split React or
- # typescript-eslint bump is never independently mergeable anyway, and
- # CI has to run for each PR. A package joins the FIRST group it matches,
- # so the specific families come before the catch-alls.
- react:
- patterns: ["react", "react-dom", "@types/react", "@types/react-dom"]
- i18n:
- patterns: ["i18next*", "react-i18next"]
- tauri:
- patterns: ["@tauri-apps/*"]
- ui:
- patterns:
- [
- "radix-ui",
- "@radix-ui/*",
- "motion",
- "cmdk",
- "sonner",
- "lucide-react",
- "clsx",
- "@fontsource*",
- "react-router*",
- "zustand",
- ]
- cloudflare:
- patterns: ["wrangler", "@cloudflare/*"]
- # TypeScript 7 (`tsc`) and the TypeScript 6 API that typescript-eslint
- # still needs, installed side by side as npm aliases (see package.json).
- # Dependabot may not resolve `npm:` aliases — if no PR shows up for a new
- # 7.x, bump both by hand.
- typescript:
- patterns: ["typescript", "@typescript/*"]
- lint-and-format:
- patterns: ["eslint*", "@eslint/*", "typescript-eslint", "prettier*", "knip"]
- build-tooling:
- patterns:
- [
- "vite",
- "vitest",
- "@vitest/*",
- "@vitejs/*",
- "tailwindcss",
- "@tailwindcss/*",
- "postcss",
- "autoprefixer",
- "tsx",
- "marked",
- "@resvg/*",
- ]
- testing:
- patterns: ["@testing-library/*"]
- types:
- patterns: ["@types/*"]
- ignore:
- # Majors land in their own planned release because each one needs a real
- # migration (Vitest 5 is the current example). Dependabot handles minor +
- # patch.
- - dependency-name: "*"
- update-types: ["version-update:semver-major"]
- # Bundle budget — see the note at the top.
- - dependency-name: "i18next"
- versions: ["26.7.x"]
-
- - package-ecosystem: "cargo"
- directory: "/src-tauri"
- schedule:
- interval: "weekly"
- # No version-update PRs; this entry only feeds ignore rules to security
- # updates. The Rust side moves with tauri (see the note at the top).
- open-pull-requests-limit: 0
- cooldown:
- default-days: 7
- ignore:
- - dependency-name: "glib"
-
- - package-ecosystem: "github-actions"
- directory: "/"
- schedule:
- interval: "weekly"
- cooldown:
- default-days: 7
- open-pull-requests-limit: 3
- commit-message:
- prefix: "ci"
- groups:
- actions:
- patterns: ["*"]
diff --git a/.github/requirements-ci.in b/.github/requirements-ci.in
new file mode 100644
index 0000000..cfb25b9
--- /dev/null
+++ b/.github/requirements-ci.in
@@ -0,0 +1,5 @@
+# Python tools the workflows run (compliance.yml: reuse; security.yml: zizmor).
+# Lock: requirements-ci.txt, regenerated by Renovate (pip-compile manager) or by
+# the command in its header.
+reuse==6.3.0
+zizmor==1.32.0
diff --git a/.github/requirements-ci.txt b/.github/requirements-ci.txt
new file mode 100644
index 0000000..b2e3e43
--- /dev/null
+++ b/.github/requirements-ci.txt
@@ -0,0 +1,205 @@
+# This file was autogenerated by uv via the following command:
+# uv pip compile .github/requirements-ci.in --generate-hashes --python-platform x86_64-manylinux_2_28 --python-version 3.12 -o .github/requirements-ci.txt
+attrs==26.1.0 \
+ --hash=sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309 \
+ --hash=sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
+ # via reuse
+boolean-py==5.0 \
+ --hash=sha256:60cbc4bad079753721d32649545505362c754e121570ada4658b852a3a318d95 \
+ --hash=sha256:ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9
+ # via license-expression
+click==8.5.1 \
+ --hash=sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37 \
+ --hash=sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4
+ # via reuse
+jinja2==3.1.6 \
+ --hash=sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d \
+ --hash=sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67
+ # via reuse
+license-expression==30.4.4 \
+ --hash=sha256:421788fdcadb41f049d2dc934ce666626265aeccefddd25e162a26f23bcbf8a4 \
+ --hash=sha256:73448f0aacd8d0808895bdc4b2c8e01a8d67646e4188f887375398c761f340fd
+ # via reuse
+markupsafe==3.0.4 \
+ --hash=sha256:007e1ffd9bf65bb6ee96df7b258fc632a4868dd5566037986c64781f35a36e98 \
+ --hash=sha256:02fa4acbc6a3fc5c693c34d4dd8c1130b7fe99cc915181b0ddd6f72aeb296002 \
+ --hash=sha256:03470d1a8268e692ecf79ecd565593e59d44219377a7ead61f1f1b94c1f7ff6b \
+ --hash=sha256:04e7902ba80ee4bac1d50a549606527a1dcf0476cd81403db41099d3b60ec653 \
+ --hash=sha256:051417f74bcaaefa316276e0ff723f541616ca51043d070da00249d9bddd3e3c \
+ --hash=sha256:05295589e619b9bed252a86b532b8e27350abc372d18ba89b59375325e91ec1e \
+ --hash=sha256:06de8ef6331f6e822c28d577dc8bf43fe398800477c49498f38fc38b67ff33fc \
+ --hash=sha256:0764a13d34cae40db7bbf3a09b7e9b491bf4603e20b263a7a9d6b8e324975d0a \
+ --hash=sha256:077293e425f28ec737dbcad442a71752e28f8ae27cde3d68acd1fb212091cd92 \
+ --hash=sha256:0930db9bdc62d22944e10b066448bb65dc9abe9112880c7cab8da54db4284d5f \
+ --hash=sha256:0cee7cb0f9a1b6892ea482237d9403b3d1b4603aee057d0ff01f0fac2d019a97 \
+ --hash=sha256:0d9c47709875fdb321452056622e930c52afbc07a7d780762fbb8b4d91ce6fa4 \
+ --hash=sha256:11935df9bf455ed0c04eb87bcd720f02b1fe5e02128a9430f23aed6f93336fc7 \
+ --hash=sha256:12a606a492de952afcb43b59a14aaaaad120e708d3663dd0fdf2d738d427a691 \
+ --hash=sha256:14bd2d845d62ab678eaf81da89d7b621b51756c72346745c1a594c09d49207a2 \
+ --hash=sha256:15ba9e28640feef770374b116a6f019c21f52404aeabe516aa7f800587b98cfc \
+ --hash=sha256:18a801868a884f216e784d7d14db2a4077143ce7610440aee2ce8f734e7cfcde \
+ --hash=sha256:1c0df495a977d10460a94941799c72d5b5ab03d3858d949b55b5a66c8f371c99 \
+ --hash=sha256:1caa2fa5a6184fb233153b35f654e6687bd555476f6170f29d8ee9be1a8b0af9 \
+ --hash=sha256:1e1451fab512d1bcc3dc26988ec1edb0b82c2db909132872cd9356070a6b63df \
+ --hash=sha256:1f1f9477e174582b0a1b583d60b66e1f2cf5d3fe12cee985e4aedf44766600e5 \
+ --hash=sha256:2628d3a8cb648ecebb3c5d6b0a1052d400e4d8b7ac0fb786be8d285b50040d17 \
+ --hash=sha256:26e9867520db70d37f7fb421a7f0d8adb40171011fb84ce869afa1a83370dfa8 \
+ --hash=sha256:2a6ef68ae94aed8721934072b27a3b654ea2100b97e4ab864cf1489c90926fbc \
+ --hash=sha256:2b2b1e18af909b448bb3cf9e3433366f7a8726271fc214e8b10e0f62a78c724b \
+ --hash=sha256:2cb3dd71fc6be918ad4264346a8ed69485f9b7ed7bf35495d8e22807cd6b8bea \
+ --hash=sha256:2d1b7d9308288661f56672b1b157d75fc536714d3638487bbea17b6318a78248 \
+ --hash=sha256:2dad610540cb2e6272855c178f08ae9a1c7ac258a7fb71660553a5f104b42741 \
+ --hash=sha256:2e5a7cd7fdd14fcb1ae5d7d8bf23d24fbd1daefd1fbca2580132e1ea75f098b5 \
+ --hash=sha256:2e9ad7dd851bf45fab9f75cbff4cb493fee9979e8d8c7c9c3ee119022518edd6 \
+ --hash=sha256:340cbb1957ba99929cbf19a75626d36ba1ae21d1730b287d1cf7f824a20c4fc7 \
+ --hash=sha256:34bdde374c5932765d7dc685c4a1d191a3207852d67e8e0a9eb6ea85156181f1 \
+ --hash=sha256:353bd63081912ab8cfa6a0c7d185934cdf8426f04c618bba6bc4b394f2069b67 \
+ --hash=sha256:387d8cd30e69b3f0a72877b9ae717033396404e19095b17fe89753a981fda44f \
+ --hash=sha256:3882fb412298575bae3b9c46868251f15cc69307359f87bb1b382e53d6e5a2c9 \
+ --hash=sha256:38fc55594dab834470b6733dead2ee9e3f657fb0608c769dcafa0ba5ab52f45c \
+ --hash=sha256:396ec4e65cc889f69786b3b89478b471cee5a3bcf468b9d9bb03e1a30fb291fc \
+ --hash=sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba \
+ --hash=sha256:3a93d9616ddecfb393727a0041a562cf0b15a244e20f2bd25efc7949be4c4f17 \
+ --hash=sha256:3d23795802fc8bd72534836d64489bbf0f67c088959091bdb22e10735a5107bf \
+ --hash=sha256:434139499bb20b502ed3baa1f169e618f924a97e7a777fea1a49446d80106cf6 \
+ --hash=sha256:436e3ffc6310d3c41878c601db29098102fe5d8a467c49da4a4125254e0980f2 \
+ --hash=sha256:489505b03f692c3f376394e49194fa7a7f9e8558d6e293a7056a0032b0c38163 \
+ --hash=sha256:4a540e2d3192792fc84eced57bef37851ccb2b41f73291bb17408eea77bcd278 \
+ --hash=sha256:4a7cdc2a420ca01058182da4253329764d4bfa055564d1eced90e6ba1e8b1d3d \
+ --hash=sha256:4bced6e2a6dba6a28f7dd3c6ce14df1b2dd495923f16ea484cad03decd463b2b \
+ --hash=sha256:4cf3468d5ec187ffffcaca8e61929a37448f215dafc1386a12c750a72fe53634 \
+ --hash=sha256:4e2c4809c14559aa7ef426f27fb35afbb38104c349a903bf8f3600456764bb38 \
+ --hash=sha256:4ed644d75aa94a2baf7ec3a96eaa160ea58c742eb9d27c6506053c5c40fc84ed \
+ --hash=sha256:4f6e0852a0283b1b1fd776eeb7b766a5f440b3e2bd31ab51af3b400585f3965c \
+ --hash=sha256:5066b244f576f91afc8ee3ba029a89f99d39c79b1853fe9d39bea9f0afbec148 \
+ --hash=sha256:5086f9975abb1ab531ee6afca1761e4b59a19b446f3f6522ed776963228cfe5a \
+ --hash=sha256:50b5bedc9ed8a94fc8857a42ef4f84a81ea88f8d4f05dc8705fb23ee6d8dcca7 \
+ --hash=sha256:52704c5d36eb6dda8866493decd61111fff86244c9b1ad225ca01b9e91e5970f \
+ --hash=sha256:55ffd6ce583d97dc71dc92e930324c8c0d25aea7e3ade6ae54ef77cedb096811 \
+ --hash=sha256:569d65055d367e3dcdf30c3f41119467b73d9ee9faf332bdf40402644f5ac08e \
+ --hash=sha256:57f9947a7e57a081c1e3e0a2dd0d2dcf290a4531450e6f611e30084c222a7295 \
+ --hash=sha256:5989cb26b2e1efc6a42216a9f6b5ee495ce5ace2e5b352a9af489976b32d1ee2 \
+ --hash=sha256:5c22873ad1f0532ba40fa1727f3c0fc1bbbaab6d373d4cbe3f0dc74b2e2521c7 \
+ --hash=sha256:5e8b3d0b18fd623afa12ecb2ce8d8becef69f9b5440c6330c7972200e0bb84b0 \
+ --hash=sha256:61631e08084be9e21a8967ec3139c7616ed7c5e9368e05c86d1b39562c8a57b6 \
+ --hash=sha256:64511c54db4e4987aef4c41923235927428729e8174c5dba488429be70a998ed \
+ --hash=sha256:6669c1bf34080161ce49c589cc512ef24d4c704ac9d2b2d3667f519c60418378 \
+ --hash=sha256:672d207103e6b16ca098611b0f9efad6bc00afd47c03d6ef62186495ca677dc0 \
+ --hash=sha256:6768d67d1bce64270e0fdc2e69309d68b9b18ae56ddf6c711d168e9d051c2cac \
+ --hash=sha256:6a45c3d514f2436064db00d7fc8778d888f0236ebfed649b53d13a59e69ad51b \
+ --hash=sha256:6bd9e1788e15bfcf6a9082de42e30387e7b85d211ab21e57a939bb8cfaaf8d96 \
+ --hash=sha256:6d2a9efe686f9de00d0d1ea32a4a5a86d558a2277501bd78d964214eab625e59 \
+ --hash=sha256:6da83a088f8ef93b2d483a8232a4dbf4d69d3d8496b568a03c56becac43e1808 \
+ --hash=sha256:7018d4af1cd272e847aa5917983ab5e83e4f6579f9dbfecd4a79c0ca80b144c2 \
+ --hash=sha256:71f88e749ea29f67f21f3b36433c1dc54c7729ed2a6d9e2da2e0d9e0d7b224eb \
+ --hash=sha256:737c9c3981998eba27f11786f84fddcbabc74068b72a4a1f454ea02094b57b65 \
+ --hash=sha256:73e77980c7207854f00fc4e71fb1626868d5740ab4012623d55c7a99ad122a72 \
+ --hash=sha256:799c39bdf5e2f1292fedd3009f7b3c9e760f10b2420cb9638d56920840ff6db8 \
+ --hash=sha256:7a83aa6e4805df46fed18e989d3d16f86ef60cb50bbc8d9ce3a6be89165fbf6e \
+ --hash=sha256:7d3391b2188d18737cb2fa147028b1096236eaa7e156446c650a489fa2cadc91 \
+ --hash=sha256:7e1636da3d8dfc220b6dd10264db5f2b165e4888c4518594898fbe381049af8a \
+ --hash=sha256:805c8b84534fa10891890f0e4be39f3a99e94615d93e8836bf9fa1fdca2feeb2 \
+ --hash=sha256:811d02d5122171c1941357efd8f9bf4ffe907b7f0a1a4e729a880e4be3f46e3e \
+ --hash=sha256:8138eb83940ec7299024d92d4dee45f601b9e6c5ffde9d25f4e35e326203c707 \
+ --hash=sha256:83b3944fea42a8400edf92fd1770fb8d0d4f7de651353bd2d8525a92dba69a21 \
+ --hash=sha256:849dd2bb0e5e4ab2b71c7191726a4a8d5aa8a610daa584728cbee0b710ddc4ef \
+ --hash=sha256:8698d70a8081ee8c090dbb394768b5789a1da8b131b5499f89d071dd3cfaf6be \
+ --hash=sha256:8781a792a070cf2bd1b86d3aa943894115faaba6e88122a7bf32d62072742453 \
+ --hash=sha256:88d59b473bfb03259722600839af9bbd7fa13a2eb514beefeedb95997882f69a \
+ --hash=sha256:8909c2f1c6dd65e054ac4b573a91c8384d1492281e55d82d159d653f7a13adf6 \
+ --hash=sha256:8965520ac587c94a4ac48b729be3d8b8de00af39699b17585dfb599babe77977 \
+ --hash=sha256:8b5d563170ff8ba3181caa967c99a3c804d1dedb702c7cb93a6a7c32247da978 \
+ --hash=sha256:8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581 \
+ --hash=sha256:8f0fac8b13d14bb06c68195f849371924ae53dd7b1c00fed24650f704383b692 \
+ --hash=sha256:9240187afb63d2f9ddc3e032c670356fe941f6e20662ea168a5dc3f1f317e1b3 \
+ --hash=sha256:925f929d6b59a8b3f8b8c6ac363cd0af7eecc81efb3071770b3c6717c450a369 \
+ --hash=sha256:9348cbb300d224fe3b89793262cb093504d4ae927004468463f745188a193e4a \
+ --hash=sha256:9388003072b95f2f1e3fd908604194d653ba21330d811961a78b7da1a77e9e36 \
+ --hash=sha256:9438a2648b2195980cb2dd8e53ed7b8df91319e2d0b70ae61a9e1d1bc8d3bec9 \
+ --hash=sha256:94e4c421742086aeee4c32a506eec8859d7634aad943f7e6aacf70f813478768 \
+ --hash=sha256:94f5407f7bc64fa6463906b896f9904beeeb7dd8dc116ee8e9056c8714ff9916 \
+ --hash=sha256:971a3bbb75d97ae4e2e8f7d4834236f86f85f0c85e04ab2e191db1123b04f80b \
+ --hash=sha256:9e227f3dbe6bde7491cf0a9965d00b88c6b1a4a95d11480ddf88bb96d397c19f \
+ --hash=sha256:9e25feb9e330b63edb0278a0acdf85e50d0cb0fbf49c3084abbe4e24ae195346 \
+ --hash=sha256:9f098115c247e11d138ab83a28fa0323c77015007ea2df73ba5fd714dfefd67c \
+ --hash=sha256:a18f38cafc329bac5e3c2b96c765b4c96d3d103421ed22ab7988c1e3fce27464 \
+ --hash=sha256:a4bbd2d87dd233b9fc5812160c3d0ffbe42edc22a26ce0469f58479ede633fe9 \
+ --hash=sha256:a5fcffb37e602b0b3c1638a97746b9b96125caa9bcf6fa41d337a9261de231ee \
+ --hash=sha256:a8e9f292fcda89b324f2f5c91d13f1424a153e40fc2756f38ee23b15835ff300 \
+ --hash=sha256:a9f54054101545a9a9cccefddf54316aa6e4491611fcbef9e91b3b6bebec04f6 \
+ --hash=sha256:aa2c838cc024642cc04c6854232f32b43e5e22833dd11119c1766c7873b8370d \
+ --hash=sha256:ac0c7c9f1609b0c4c114feb1d7a3409564c7fb77e360bed9e97e5d25dfeaf868 \
+ --hash=sha256:add96447a86d205ab616665d53b2950ee81083757f56e6ea833c8b2917646b46 \
+ --hash=sha256:ae9dcb8fbe244cb82f8a6458b455b927a03685e383d9bacf1ea5ce180b96dc97 \
+ --hash=sha256:b4a635a0487774f841cb1fb62e907e7195cc95bc761e053184b8acc3ceb20733 \
+ --hash=sha256:b4d12837e0203bbace818ff4a7461afdcd78bcd782351cea148139180d7bcffe \
+ --hash=sha256:b61687d0828e72bf5cda24a2690188f37170bd31c9359ac97e4e66569f120a16 \
+ --hash=sha256:b807e598953730f82e4eae3bd30f6a122cf6b31c398c6b504c0e04c13c170429 \
+ --hash=sha256:b8cd1f918b26fd7b1832ece557cc18f2d8747309ff8b3f0ef9d4250c5ad67a39 \
+ --hash=sha256:b91cc9d336957239ff200f30097e6fea2dc6d6fb3c81e853eaa09eac904fd894 \
+ --hash=sha256:bd3ce56ae2cbae3ba82b683bc425cd7e48d2ed8b10f3e818186b6f5646d9271c \
+ --hash=sha256:be6cb0c799abb0e2ba3e618e6d28ddddf7e485f6c2ce938dfa237daf3905072c \
+ --hash=sha256:befb4158af32106b9a93db8d6d1d1cbbd418c0d5aca0cabb7b1780abf0c89169 \
+ --hash=sha256:bf053da3c97a4bc5ecfbb218cdd2983febd91c617be8367d139882aa11e490aa \
+ --hash=sha256:c02e8f18bdedba082cef725942ac823b9b60656db07f7e265cb31618dfd00d77 \
+ --hash=sha256:c1bc67752d5f21013cfe430df4062441714eab79f65a6a05e01505957e9c35fe \
+ --hash=sha256:c61750fadcd119d0825bcb7d7d675dd264dcc89cc05292aab5be68ebdbb374ad \
+ --hash=sha256:c90d5b3d4e944e065a301d741b3c1d784f6bd1f503aa68b4967e32b2ba313d85 \
+ --hash=sha256:c9a7f43c0b202b334cc9184af09bb8f21d3a209e038efaf106936fb69e6b026e \
+ --hash=sha256:cb96e6e088d6cf71c1ea977510948320234824cf226e32f6f6e044f7a9c82b34 \
+ --hash=sha256:cf63c214fe879a65e69a386f915e36104fc84254ab141240f8854602d8e0be2a \
+ --hash=sha256:d1aca03ede943eb80ab3d63bb082c84b7aab85ea83bd0fd0c200260945fb49d9 \
+ --hash=sha256:d2e56fd3b00222722abfb3f5f0759ddbae4b90811b5ad4343c64030ad1bde70c \
+ --hash=sha256:d5f93ebbeb8032d47e349328ec8662d973d9b05a70b3c35df1f91fe419b84749 \
+ --hash=sha256:d882a373d8093c2941e01291b7ced96e9cbe4781da9a7751ca7e6c70385e5214 \
+ --hash=sha256:d920abdfa61279ba1a2ef9484aab07bf03331f8c08a10120fa332353d06e6932 \
+ --hash=sha256:da2af0d7aebfc2074080d72efa6ab8317c62481ef1f896f65d9999c1c01f4494 \
+ --hash=sha256:dd8ea6ebee7aedbf7c749fa80521d9ccf1ba473e0d1e14805caafbaad281c889 \
+ --hash=sha256:de8b364c423ef0a4bad9069657d617f9a5d2b2062457a89b1fa16ee199c399c1 \
+ --hash=sha256:df1ae86ff54725a01fa1a0510b914ca53a161b7050be74f6204e24aded5971d0 \
+ --hash=sha256:dff05cb7016dff1e9fd68f4122c127b65dfc59de5306cfb7ad92f956f230bee2 \
+ --hash=sha256:e1a622f13970d81f95d0c72f9dc090dce9085fccfa4c9f2174377ee32bd15786 \
+ --hash=sha256:e49fb0d1ce92cfa0cb198cc5b1b11cdf9d0638658e2a2db2687e39db7c87fc78 \
+ --hash=sha256:e5c802729725bd07e2bc3ab7b76dc7e0bbfc53129d8f1eb1c002c24cf774717e \
+ --hash=sha256:e841068dc0be4cb6dfb5c890eb88cbdcff2f4a332393c7ec94e8e618bd32c1a8 \
+ --hash=sha256:e916035e3e9930cbdfdd10abf48861340221857f45509565898e012263f7b289 \
+ --hash=sha256:eba154571c16e032112afac0dc2dfe9e63c2ceb7aedd07bb7eecf2ce26d4dd4c \
+ --hash=sha256:f03460ff076f70ab595bb45a0205ccea1971443575b6920c52e755dec2b3fbfe \
+ --hash=sha256:f0ec3b750b59375eab5b0fb2b9254810c00a3375be6d789899f1055a1d556237 \
+ --hash=sha256:f291bcf42ae98eb5107edb162c3c998b4a89648fd8e99ed4cbd12705292788cd \
+ --hash=sha256:f61efe1d2fe0de16158a5fe1d1cf3c14bdb6aecd54d8938fd26512c525c1f624 \
+ --hash=sha256:f68edfc67aabac33708941f26f22a7b8e9f81429bc0cf249fcf7d66b23af8d19 \
+ --hash=sha256:fa95848c929b6a75f6848d3c9793e59db365ee436776e57db835cdbfa79ba977 \
+ --hash=sha256:fd9f8797427910198f95bced71ddfed61130d7e349213bfb8466c9c99e2c46a8 \
+ --hash=sha256:fdb4ca07ab75ffadab4a8b135ad59cdbb3156b99310f3d565370da74a15d6bd3
+ # via jinja2
+python-debian==1.1.1 \
+ --hash=sha256:f98ae013e8e5310e49041cc3860a7105df73af73d4ff1d8afb474770d328a6ad \
+ --hash=sha256:fe4fc3dc798dbf1f0ef5865e2b1b4f7cc0352b6a511b25ab7594906c64a73629
+ # via reuse
+python-magic==0.4.27 \
+ --hash=sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \
+ --hash=sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3
+ # via reuse
+reuse==6.3.0 \
+ --hash=sha256:5a6ca437057c07ca22a67256520e2783ab03b5524d3a4535603c3d49e3d4b001 \
+ --hash=sha256:be6b598aa6d5cdf44af0da265572a72f0adcd30033857af874fd8607188259c1
+ # via -r .github/requirements-ci.in
+tomlkit==0.15.3 \
+ --hash=sha256:a83ce6de3b648e68dd9b50aabadad749ba823eb58b1d026f3c0a283c4767a9c1 \
+ --hash=sha256:b3c3020ec1a4bd469d12e31fb4da938e7f6ba758cdbec3fd9047db63120eaf81
+ # via reuse
+zizmor==1.32.0 \
+ --hash=sha256:0a999c98015becd9f69919ce01febadfb1c2be9b8ec2ce9ef7eb13ff23ba8eba \
+ --hash=sha256:0cdd38fca6eb34ceb567548548d706332e3535ea66894b9168c048e03207b68c \
+ --hash=sha256:3f404b26791ed06a5ea9eaa0bfd5b973fc5228bac7db8b3c5ec7f0c7ad2ed16d \
+ --hash=sha256:84a6acb975accc13408786a2bd274b572537ca19c933ebbc13e78f3988562071 \
+ --hash=sha256:913fd3943bc1358aa6e23b33fe01cc98bf67af23985258b8fbf24eaa2f8728ea \
+ --hash=sha256:9cd1dd7734042f40ca0faa2a31fb4e9033dede620d996af2f903744b8f04fca9 \
+ --hash=sha256:aa4b4e216321dd5cf202cd79fc83296468f0eed79d850cd65ac8187a6bbc5496 \
+ --hash=sha256:bddcdb0e37d1aa53c9f831c55627a5829d0d552cb0afb4b80fbe16a3a3140366 \
+ --hash=sha256:d34dcfa702875202b4163d90ebb9cc5222f3d1a7d4b72bf796d87b5a15b24194 \
+ --hash=sha256:dd818f99d833b86cd432d5412d620d936b5df074b33404fff8b67acff55d3259 \
+ --hash=sha256:eaedf57859f026a0a7da2a6b574517b1fe01e256c6875b3319a06ee1cee026a7 \
+ --hash=sha256:f0b664d394576e08605fe8094e8e992056d74b808f30c0c9ca9ed227001dcf67
+ # via -r .github/requirements-ci.in
diff --git a/.github/workflows/announce-release.yml b/.github/workflows/announce-release.yml
deleted file mode 100644
index 26cce9b..0000000
--- a/.github/workflows/announce-release.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Announce Release to Discord
-
-on:
- release:
- types: [published]
- workflow_dispatch:
- inputs:
- tag:
- description: "Existing release tag to re-announce"
- required: true
- type: string
-
-permissions:
- contents: read
-
-jobs:
- link-discussion:
- runs-on: ubuntu-latest
- # `contents: write` edits the release; `discussions: write` lets GitHub
- # auto-create the linked Discussion under the configured category.
- permissions:
- contents: write
- discussions: write
- steps:
- - name: Link release to Announcements discussion
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- # Via env, never interpolated into the script: a tag name is
- # user-controlled text.
- TAG: ${{ github.event.release.tag_name || inputs.tag }}
- REPO: ${{ github.repository }}
- # Setting --discussion-category on a published release causes
- # GitHub to auto-create the linked Discussion. Requires the
- # repo to have Discussions enabled with an "Announcements"
- # category (configured manually under repo Settings).
- run: |
- gh release edit "$TAG" --repo "$REPO" --discussion-category "Announcements"
-
- announce:
- needs: link-discussion
- permissions:
- contents: read
- uses: poli0981/.github/.github/workflows/announce-release.yml@main
- with:
- tag_override: ${{ inputs.tag || '' }}
- # Only what the shared workflow declares — not `inherit`, which would hand
- # every repository secret (Android signing keys included) to it.
- secrets:
- DISCORD_RELEASES_WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
- DISCORD_REPO_WEBHOOK: ${{ secrets.DISCORD_REPO_WEBHOOK }}
- DISCORD_PING_ROLE_ID: ${{ secrets.DISCORD_PING_ROLE_ID }}
diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml
deleted file mode 100644
index 9b68477..0000000
--- a/.github/workflows/compliance.yml
+++ /dev/null
@@ -1,57 +0,0 @@
-name: Compliance
-
-on:
- pull_request:
- branches: [main]
- types: [opened, edited, synchronize, reopened]
- push:
- branches: [main]
-
-permissions:
- contents: read
-
-concurrency:
- group: compliance-${{ github.ref }}
- cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
-
-jobs:
- # REUSE (https://reuse.software): every file in the repo has a declared
- # copyright holder and SPDX license — via REUSE.toml, not per-file headers.
- # Fails when a file arrives that the annotations do not cover (e.g. a font
- # or icon under another license) until REUSE.toml says what it is.
- reuse:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- - uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
-
- # PR titles follow the commit convention (`type(scope): message`) — merge
- # commits carry them into main's history and the changelog.
- pr-title:
- if: github.event_name == 'pull_request'
- runs-on: ubuntu-latest
- permissions:
- pull-requests: read
- steps:
- - uses: amannn/action-semantic-pull-request@2252a14e810aa9b85c2d560bd7070c802206ecf6 # v6.1.2
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- types: |
- feat
- fix
- refactor
- perf
- docs
- test
- ci
- build
- chore
- revert
- requireScope: false
- subjectPattern: ^(?![A-Z]).+$
- subjectPatternError: |
- The subject "{subject}" should start with a lower-case letter, like
- the rest of the history (e.g. "feat(editor): add next-part button").
diff --git a/.github/workflows/maintenance-triage.yml b/.github/workflows/maintenance-triage.yml
deleted file mode 100644
index fd3a9dc..0000000
--- a/.github/workflows/maintenance-triage.yml
+++ /dev/null
@@ -1,107 +0,0 @@
-name: Maintenance triage
-
-# YTDescGen is in maintenance mode (CONTRIBUTING.md → Maintenance mode). This
-# workflow closes, with a bilingual comment and the `out-of-scope` label:
-# • any issue or pull request the maintainer labels `out-of-scope`;
-# • when opened by an outside contributor: issues titled [Feature…] or
-# labelled `enhancement`, and pull requests titled `feat:` — except the
-# scopes maintenance mode still takes: `options` (an agreed option
-# request), `a11y` and `i18n`. The owner, members, collaborators and bots
-# are skipped.
-# pull_request_target runs in the base repository so it can comment on and
-# close pull requests from forks. It never checks out or runs pull request
-# code, and the script reads titles from the event payload itself instead of
-# having untrusted text interpolated into it (.github/zizmor.yml says so too).
-
-on:
- issues:
- types: [opened, labeled]
- pull_request_target:
- types: [opened, labeled]
-
-permissions: {}
-
-concurrency:
- group: maintenance-triage-${{ github.event.issue.number || github.event.pull_request.number }}
- cancel-in-progress: false
-
-jobs:
- triage:
- name: Close out-of-scope requests
- if: >-
- (github.event.action == 'labeled' && github.event.label.name == 'out-of-scope') ||
- (github.event.action == 'opened' &&
- !contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'),
- github.event.issue.author_association || github.event.pull_request.author_association))
- runs-on: ubuntu-latest
- timeout-minutes: 5
- permissions:
- issues: write
- pull-requests: write
- steps:
- - name: Close if out of scope
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- with:
- script: |
- const OUT_OF_SCOPE = 'out-of-scope';
- const TRUSTED = ['OWNER', 'MEMBER', 'COLLABORATOR'];
- // Feature pull requests maintenance mode still takes.
- const KEPT_SCOPES = ['options', 'a11y', 'i18n'];
- const { payload } = context;
- const isPR = Boolean(payload.pull_request);
- const item = payload.pull_request ?? payload.issue;
- if (!item || item.state !== 'open') return;
-
- const labels = (item.labels ?? []).map((label) => label.name);
- let reason = null;
- if (payload.action === 'labeled') {
- if (payload.label?.name === OUT_OF_SCOPE) reason = 'labelled out-of-scope';
- } else if (payload.action === 'opened') {
- const trusted = TRUSTED.includes(item.author_association);
- const bot = item.user?.type === 'Bot';
- const title = String(item.title ?? '').trim();
- if (!trusted && !bot) {
- if (isPR) {
- // Conventional Commits: feat:, feat(scope):, feat!:
- const feat = /^feat(?:\(([^)]*)\))?!?:/i.exec(title);
- const scope = (feat?.[1] ?? '').trim().toLowerCase();
- if (feat && !KEPT_SCOPES.includes(scope)) reason = 'feat: pull request';
- } else if (/^\[feature/i.test(title) || labels.includes('enhancement')) {
- reason = 'feature request';
- }
- }
- }
- if (!reason) {
- core.info(`#${item.number}: within scope, nothing to do.`);
- return;
- }
-
- const ideas = 'https://github.com/poli0981/youtube-generator/discussions/categories/ideas';
- const policy = 'https://github.com/poli0981/youtube-generator/blob/main/CONTRIBUTING.md#maintenance-mode';
- const en = isPR ? 'pull request' : 'issue';
- const vi = isPR ? 'Pull request' : 'Issue';
- const body = [
- '',
- 'Thanks for taking the time to write this. YTDescGen is in **maintenance mode**: it still takes dependency and security updates, major runtime upgrades, fixes for bugs, UI/UX, accessibility and translations, options added to or removed from its lists when people really need them, and Cloudflare or website fixes, but no new features.',
- '',
- `This ${en} falls outside that scope, so it has been closed. If it is actually a bug, an accessibility or translation fix, or an option request, reply here and the maintainer will take another look. Ideas are welcome in [Discussions → Ideas](${ideas}). The full policy is in [CONTRIBUTING.md → Maintenance mode](${policy}).`,
- '',
- '---',
- '',
- 'Cảm ơn bạn đã dành thời gian. YTDescGen đang ở **giai đoạn bảo trì**: vẫn nhận cập nhật thư viện và bảo mật, nâng cấp runtime lớn, sửa lỗi, UI/UX, trợ năng (accessibility) và bản dịch, thêm hoặc bỏ một tuỳ chọn trong các danh sách của app khi thật sự có người cần, và sửa lỗi Cloudflare hay website, nhưng không thêm tính năng mới.',
- '',
- `${vi} này nằm ngoài phạm vi đó nên đã được đóng. Nếu thực ra đây là lỗi, sửa trợ năng hay bản dịch, hoặc yêu cầu tuỳ chọn, hãy trả lời tại đây để maintainer xem lại. Ý tưởng có thể gửi ở [Discussions → Ideas](${ideas}). Chính sách đầy đủ: [CONTRIBUTING.md → Maintenance mode](${policy}).`,
- ].join('\n');
-
- const { owner, repo } = context.repo;
- const number = item.number;
- await github.rest.issues.createComment({ owner, repo, issue_number: number, body });
- if (!labels.includes(OUT_OF_SCOPE)) {
- await github.rest.issues.addLabels({ owner, repo, issue_number: number, labels: [OUT_OF_SCOPE] });
- }
- if (isPR) {
- await github.rest.pulls.update({ owner, repo, pull_number: number, state: 'closed' });
- } else {
- await github.rest.issues.update({ owner, repo, issue_number: number, state: 'closed', state_reason: 'not_planned' });
- }
- core.notice(`Closed ${en} #${number} as out of scope (${reason}).`);
diff --git a/.github/workflows/notify-ci-failure.yml b/.github/workflows/notify-ci-failure.yml
deleted file mode 100644
index d304c94..0000000
--- a/.github/workflows/notify-ci-failure.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-name: Notify CI Failures
-
-on:
- workflow_run:
- # Match the exact `name:` of each watched workflow (ci.yml, security.yml,
- # compliance.yml, rust.yml, qodana.yml). Renaming one silently breaks
- # this filter — keep them in sync.
- workflows: ["CI", "Security", "Compliance", "Rust", "Qodana"]
- types: [completed]
-
-# REQUIRED: declare permissions matching the reusable workflow's needs.
-# Reusable needs `actions: read` to inspect workflow_run details.
-permissions:
- contents: read
- actions: read
-
-jobs:
- notify:
- uses: poli0981/.github/.github/workflows/notify-ci-failure.yml@main
- # Only the webhook the shared workflow declares — not `inherit`.
- secrets:
- DISCORD_CI_WEBHOOK: ${{ secrets.DISCORD_CI_WEBHOOK }}
diff --git a/.github/workflows/notify-release-pipeline.yml b/.github/workflows/notify-release-pipeline.yml
deleted file mode 100644
index d595fdb..0000000
--- a/.github/workflows/notify-release-pipeline.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-name: Notify Release Pipeline
-
-on:
- workflow_run:
- # Match the exact `name:` of the release-pipeline producers
- # (release-desktop.yml + announce-release.yml). Renaming either silently
- # breaks this filter — keep them in sync.
- workflows: ["Release Desktop", "Announce Release to Discord"]
- types: [completed]
-
-permissions:
- contents: read
- actions: read
-
-jobs:
- notify:
- uses: poli0981/.github/.github/workflows/notify-release-pipeline.yml@main
- # Only the webhook the shared workflow declares — not `inherit`.
- secrets:
- DISCORD_RELEASE_PIPELINE_WEBHOOK: ${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}
diff --git a/.github/workflows/pages-migration.yml b/.github/workflows/pages-migration.yml
deleted file mode 100644
index 32e7783..0000000
--- a/.github/workflows/pages-migration.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Pages migration notice
-
-# The app moved to https://ytgenerator.stream. What used to be the GitHub
-# Pages site (poli0981.github.io/youtube-generator) is replaced by a single
-# static page that hands visitors the data their browser saved there — as a
-# backup file the new site restores — and points them to the new address.
-#
-# Run by hand once; the page is removed on 2026-11-29 together with this
-# workflow and the github-pages environment (tracked in an issue).
-on:
- workflow_dispatch:
-
-permissions: {}
-
-concurrency:
- group: pages
- cancel-in-progress: false
-
-jobs:
- deploy:
- runs-on: ubuntu-latest
- permissions:
- contents: read
- pages: write
- id-token: write
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
- with:
- path: migration-page
- - id: deployment
- uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml
deleted file mode 100644
index dceacd0..0000000
--- a/.github/workflows/qodana.yml
+++ /dev/null
@@ -1,137 +0,0 @@
-name: Qodana
-
-# JetBrains Qodana static analysis, one linter per Qodana Cloud project:
-#
-# typescript - qodana-js (native mode) the repository project yt-ts-js, secret QODANA_TOKEN_TS_JS, qodana.yaml
-# rust - qodana-rust (Docker, EAP) src-tauri/ project yt-rust, secret QODANA_TOKEN_RUST, src-tauri/qodana.yaml
-#
-# Every run analyses the whole project (`pr-mode: false`), so a pull request
-# and `main` report the same way, and each qodana.yaml holds a quality gate of
-# zero problems. Results: Qodana Cloud, check annotations on the run, and the
-# qodana-report-* artifacts (SARIF and logs). Not a required check.
-#
-# Both linters need an Ultimate licence; the account runs the Qodana Ultimate
-# trial. When the licence lapses, both jobs fail at the licence check: renew
-# it, or delete this file and the two qodana.yaml files.
-#
-# PRs from forks and from Dependabot get no repository secrets: the `tokens`
-# job sees that, and the analysis is skipped there, not failed — main is
-# analysed once they merge. The token reaches the scan step only: npm
-# packages are installed in a step that never sees it.
-on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
- workflow_dispatch:
-
-permissions: {}
-
-concurrency:
- group: qodana-${{ github.ref }}
- cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
-
-jobs:
- tokens:
- name: Qodana tokens
- runs-on: ubuntu-latest
- timeout-minutes: 5
- permissions: {}
- outputs:
- ts-js: ${{ steps.check.outputs.ts-js }}
- rust: ${{ steps.check.outputs.rust }}
- steps:
- - name: Check which Qodana tokens this run has
- id: check
- env:
- HAS_TS_JS: ${{ secrets.QODANA_TOKEN_TS_JS != '' }}
- HAS_RUST: ${{ secrets.QODANA_TOKEN_RUST != '' }}
- run: |
- echo "ts-js=$HAS_TS_JS" >> "$GITHUB_OUTPUT"
- echo "rust=$HAS_RUST" >> "$GITHUB_OUTPUT"
- if [ "$HAS_TS_JS" != true ] || [ "$HAS_RUST" != true ]; then
- echo "::notice::No Qodana token in this run (a Dependabot or fork pull request): that analysis is skipped."
- fi
-
- typescript:
- name: TypeScript / JavaScript
- needs: tokens
- if: needs.tokens.outputs.ts-js == 'true'
- runs-on: ubuntu-latest
- timeout-minutes: 40
- permissions:
- contents: read
- checks: write # the action's annotations
- steps:
- # The pull request's own head commit, not the merge GitHub makes, so
- # the report names a commit that exists; full history for its VCS data.
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- ref: ${{ github.event.pull_request.head.sha || github.sha }}
- fetch-depth: 0
- persist-credentials: false
- - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- with:
- node-version-file: .node-version
- cache: npm
- # The linter resolves imports and types from node_modules. No lifecycle
- # scripts, as in every workflow (ci.yml says why).
- - run: npm ci --ignore-scripts
- # Native mode: the linter runs on this runner's Node 26 and node_modules
- # instead of the older Node the Qodana image ships.
- - name: Qodana scan
- uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
- with:
- args: --linter qodana-js --within-docker false
- pr-mode: false
- post-pr-comment: false
- upload-result: true
- artifact-name: qodana-report-typescript
- primary-cache-key: qodana-2026.2-js-${{ github.ref }}-${{ github.sha }}
- # A prefix, so pull requests can restore the cache saved on main.
- additional-cache-key: qodana-2026.2-js-
- cache-default-branch-only: true
- env:
- QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_TS_JS }}
-
- rust:
- name: Rust (Early Access)
- needs: tokens
- if: needs.tokens.outputs.rust == 'true'
- runs-on: ubuntu-latest
- timeout-minutes: 45
- permissions:
- contents: read
- checks: write # the action's annotations
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- ref: ${{ github.event.pull_request.head.sha || github.sha }}
- fetch-depth: 0
- persist-credentials: false
- # tauri::generate_context!() refuses to expand without the frontend
- # directory (frontendDist, ../dist): an empty page stands in for the web
- # build, which the analysis does not need. The icons are committed.
- - name: Stand-in for the web build
- run: |
- mkdir -p dist
- echo 'stand-in' > dist/index.html
- # qodana-rust ships only as a Docker image. It runs as root so that the
- # bootstrap in src-tauri/qodana.yaml can install the C toolchain and the
- # libraries Tauri links against — without them `cargo check` fails and
- # the linter loads no Cargo package. The crates go to the cached Qodana
- # directory. --repository-root keeps ../dist and the git data visible.
- - name: Qodana scan
- uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
- with:
- args: --project-dir src-tauri --repository-root . --linter qodana-rust -u root -e CARGO_HOME=/data/cache/cargo
- pr-mode: false
- post-pr-comment: false
- upload-result: true
- artifact-name: qodana-report-rust
- primary-cache-key: qodana-2026.2-rust-${{ github.ref }}-${{ github.sha }}
- # A prefix, so pull requests can restore the cache saved on main.
- additional-cache-key: qodana-2026.2-rust-
- cache-default-branch-only: true
- env:
- QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_RUST }}
diff --git a/.github/workflows/release-android.yml b/.github/workflows/release-android.yml
deleted file mode 100644
index 96bd3b2..0000000
--- a/.github/workflows/release-android.yml
+++ /dev/null
@@ -1,138 +0,0 @@
-name: Release Android
-
-on:
- push:
- tags: ["v*"]
- workflow_dispatch:
- inputs:
- tag:
- description: "Tag to build (e.g. v1.0.0). The manifests must already carry this version."
- required: true
- type: string
-
-permissions:
- contents: read
-
-jobs:
- # Same gate as release-desktop.yml: never sign an APK for a tag whose code
- # fails the checks or whose version fields disagree with the tag.
- verify:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- ref: ${{ github.event.inputs.tag || github.ref }}
- persist-credentials: false
- - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- with:
- node-version-file: .node-version
- # Release artifacts are built from a clean install: a cache written
- # by any other workflow must not be able to feed into them.
- package-manager-cache: false
- - run: npm ci --ignore-scripts
- - run: npm run typecheck
- - run: npm run test:run
- - run: npm run check:version
- - run: npm run check:tauri
- - name: Tag matches the manifests
- env:
- TAG: ${{ github.event.inputs.tag || github.ref_name }}
- run: |
- version="v$(node -p "require('./package.json').version")"
- if [ "$version" != "$TAG" ]; then
- echo "::error::Tag $TAG does not match package.json ($version)"
- exit 1
- fi
-
- build-android:
- needs: verify
- runs-on: ubuntu-latest
- permissions:
- contents: write # upload the APK to the draft release
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- ref: ${{ github.event.inputs.tag || github.ref }}
- persist-credentials: false
-
- # No dependency caches in a release job (see release-desktop.yml).
- - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- with:
- node-version-file: .node-version
- # Release artifacts are built from a clean install: a cache written
- # by any other workflow must not be able to feed into them.
- package-manager-cache: false
-
- - uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0
- with:
- distribution: temurin
- java-version: "17"
-
- - uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
-
- - name: Install Android NDK (r27 LTS)
- run: sdkmanager "ndk;27.3.13750724"
-
- # A master commit, not the regenerated `stable` branch — see rust.yml.
- - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
- with:
- toolchain: stable
- targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
-
- - run: npm ci --ignore-scripts
- - name: Install Tauri CLI
- run: cargo install tauri-cli --version "^2" --locked
-
- - name: Decode keystore
- env:
- ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
- run: echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.jks"
-
- - name: Write keystore.properties
- env:
- ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
- ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
- ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
- run: |
- {
- echo "storeFile=$RUNNER_TEMP/release.jks"
- echo "storePassword=$ANDROID_STORE_PASSWORD"
- echo "keyAlias=$ANDROID_KEY_ALIAS"
- echo "keyPassword=$ANDROID_KEY_PASSWORD"
- } > src-tauri/gen/android/keystore.properties
-
- - name: Build signed APK
- env:
- # Pin NDK_HOME to the exact version we installed above — the runner may
- # ship a different default NDK that ANDROID_NDK_ROOT would point at.
- NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.3.13750724
- run: cargo tauri android build --apk
-
- # Keep the APK regardless of whether the release upload works, so a
- # broken upload never costs a 20-minute rebuild.
- - name: Upload APK as workflow artifact
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
- with:
- name: ytdescgen-android-apk
- path: src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
- if-no-files-found: error
-
- # Uses `gh` (pre-installed on every runner) rather than a third-party
- # action. `softprops/action-gh-release@v3` resolved the target release
- # from GITHUB_REF instead of the `tag_name` it was given, so on a tag push
- # it looked for a release tagged `refs/tags/v0.35.0` and on a
- # workflow_dispatch it looked for one tagged `refs/heads/main` — neither
- # exists, so it tried to CREATE a release on a branch ref and got
- # "Resource not accessible by integration". The v0.35.0 APK was built
- # three times before this was pinned down.
- #
- # `gh release upload` takes the tag as a positional argument and cannot
- # make that mistake. `--clobber` makes a re-run idempotent.
- - name: Upload APK to draft release
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- TAG: ${{ github.event.inputs.tag || github.ref_name }}
- REPO: ${{ github.repository }}
- APK: src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
- run: |
- gh release upload "$TAG" "$APK" --clobber --repo "$REPO"
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
deleted file mode 100644
index 343532a..0000000
--- a/.github/workflows/release-desktop.yml
+++ /dev/null
@@ -1,138 +0,0 @@
-name: Release Desktop
-
-on:
- push:
- tags: ["v*"]
- # Manual re-run hook — lets us rebuild a release without deleting +
- # recreating the tag. Useful when a transient runner failure (e.g.
- # the macOS DMG bundler hitting an AppleScript flake) costs us one
- # arch's binary on an otherwise-shipped tag.
- workflow_dispatch:
- inputs:
- tag:
- description: "Tag to build (e.g. v1.0.0). The job still expects the manifests to already carry this version."
- required: true
- type: string
-
-permissions:
- contents: read
-
-jobs:
- # Nothing gets built for a tag whose code does not pass the gate or whose
- # six version fields disagree with the tag itself.
- verify:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- ref: ${{ github.event.inputs.tag || github.ref }}
- persist-credentials: false
- - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- with:
- node-version-file: .node-version
- # Release artifacts are built from a clean install: a cache written
- # by any other workflow must not be able to feed into them.
- package-manager-cache: false
- - run: npm ci --ignore-scripts
- - run: npm run typecheck
- - run: npm run test:run
- - run: npm run check:version
- - run: npm run check:tauri
- - name: Tag matches the manifests
- env:
- TAG: ${{ github.event.inputs.tag || github.ref_name }}
- run: |
- version="v$(node -p "require('./package.json').version")"
- if [ "$version" != "$TAG" ]; then
- echo "::error::Tag $TAG does not match package.json ($version)"
- exit 1
- fi
-
- build:
- needs: verify
- permissions:
- contents: write # create the draft release and upload the binaries
- strategy:
- fail-fast: false
- matrix:
- include:
- # windows-latest serves the windows-2025-vs2026 image (VS 2026
- # toolchain) from June 15, 2026. Tauri build (MSI + NSIS)
- # verified on that exact image 2026-06-12, actions run
- # 27388695090 — no runner pin needed.
- - os: windows-latest
- target: x86_64-pc-windows-msvc
- # Default Windows bundles: MSI + NSIS (.exe). Both ship.
- bundleArgs: ""
- # Apple silicon. GitHub retired the macOS 14 image on 2026-11-02
- # (`macos-14` jobs are cancelled: "The configuration
- # 'macos-14-arm64-us-default' is not supported"); macos-15 is
- # its direct successor.
- - os: macos-15
- target: aarch64-apple-darwin
- # macOS DMG bundling on hosted runners flakes inside
- # `bundle_dmg.sh` (the AppleScript that sets icon
- # positions in the DMG window times out on the headless
- # runner). Build only the `.app` bundle; tauri-action
- # tar.gzips it into a `.app.tar.gz` for upload. Users
- # expand and drag-drop into /Applications.
- #
- # Intel macOS (x86_64) is NOT built — the `macos-13`
- # free runner queue is functionally unavailable since
- # GitHub started deprecating it. Revisit with a
- # `universal-apple-darwin` build on this same runner if
- # Intel support becomes a priority.
- bundleArgs: "--bundles app"
- - os: ubuntu-latest
- target: x86_64-unknown-linux-gnu
- # Default Linux bundles: AppImage + deb. Both ship.
- bundleArgs: ""
- runs-on: ${{ matrix.os }}
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- # On `workflow_dispatch` checkout the requested tag; on a
- # tag push we already get the tag commit by default.
- ref: ${{ github.event.inputs.tag || github.ref }}
- persist-credentials: false
- # No dependency caches in a release job: a poisoned cache entry written
- # by any other workflow would otherwise flow straight into the binaries.
- - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- with:
- node-version-file: .node-version
- # Release artifacts are built from a clean install: a cache written
- # by any other workflow must not be able to feed into them.
- package-manager-cache: false
- # A master commit, not the regenerated `stable` branch — see rust.yml.
- - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
- with:
- toolchain: stable
- targets: ${{ matrix.target }}
- - name: Install Linux dependencies
- if: matrix.os == 'ubuntu-latest'
- run: |
- sudo apt-get update
- sudo apt-get install -y \
- libwebkit2gtk-4.1-dev \
- libgtk-3-dev \
- libayatana-appindicator3-dev \
- librsvg2-dev \
- patchelf
- - run: npm ci --ignore-scripts
- - uses: tauri-apps/tauri-action@1deb371b0cd8bd54025b384f1cd735e725c4060f # v1.0.0
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- # AppImage bundling on hosted runners flakes: linuxdeploy (itself
- # an AppImage) needs FUSE to mount, which GitHub runners don't
- # reliably provide → "failed to run linuxdeploy". Extract-and-run
- # avoids FUSE; NO_STRIP skips a strip pass that also intermittently
- # fails. (No-op on Windows / macOS.) Transient CDN 504s while
- # *fetching* linuxdeploy are handled by re-running the job.
- APPIMAGE_EXTRACT_AND_RUN: 1
- NO_STRIP: true
- with:
- tagName: ${{ github.event.inputs.tag || 'v__VERSION__' }}
- releaseName: "YTDescGen ${{ github.event.inputs.tag || 'v__VERSION__' }}"
- releaseBody: "See the assets to download the installer for your platform."
- releaseDraft: true
- args: ${{ matrix.bundleArgs }} --target ${{ matrix.target }}
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
deleted file mode 100644
index 68e6b47..0000000
--- a/.github/workflows/security.yml
+++ /dev/null
@@ -1,87 +0,0 @@
-name: Security
-
-on:
- pull_request:
- branches: [main]
- push:
- branches: [main]
- schedule:
- # Mondays 04:17 UTC — new advisories and Scorecard drift surface weekly
- # even when nothing is being merged.
- - cron: "17 4 * * 1"
- workflow_dispatch:
-
-permissions:
- contents: read
-
-concurrency:
- group: security-${{ github.ref }}
- cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
-
-jobs:
- # Blocks a PR that ADDS a dependency with a known high/critical advisory.
- # Licenses are checked by `npm run check:licenses` (ci.yml) instead: the
- # dependency graph's license data is patchy for npm and would flag noise.
- dependency-review:
- if: github.event_name == 'pull_request'
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- - uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
- with:
- fail-on-severity: high
- license-check: false
-
- # Lint the workflows themselves: syntax/expressions (actionlint) and
- # security smells — template injection, over-broad permissions, credential
- # persistence, unpinned actions (zizmor, config in .github/zizmor.yml).
- workflow-lint:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- - name: actionlint
- uses: docker://rhysd/actionlint:1.7.12
- with:
- args: -color
- - name: zizmor
- uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
- with:
- # Report in the log and fail the job; no SARIF upload, so findings
- # are fixed in the PR instead of piling up as code-scanning alerts.
- advanced-security: false
- min-severity: medium
-
- # OpenSSF Scorecard: supply-chain posture (pinned deps, token permissions,
- # branch protection …). Informational — results go to the job summary and
- # scorecard.dev, not to code scanning.
- scorecard:
- if: github.event_name != 'pull_request'
- runs-on: ubuntu-latest
- permissions:
- contents: read
- id-token: write # publish_results: signs the result for scorecard.dev
- actions: read
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- - uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
- with:
- results_file: scorecard.json
- results_format: json
- publish_results: true
- - name: Summarise
- run: |
- {
- echo "### OpenSSF Scorecard"
- echo
- echo "| Check | Score |"
- echo "| --- | --- |"
- jq -r '.checks[] | "| \(.name) | \(.score) |"' scorecard.json
- echo
- echo "Aggregate: **$(jq -r '.score' scorecard.json) / 10**"
- } >> "$GITHUB_STEP_SUMMARY"
diff --git a/.github/zizmor.yml b/.github/zizmor.yml
index c0193e6..cbed945 100644
--- a/.github/zizmor.yml
+++ b/.github/zizmor.yml
@@ -1,13 +1,12 @@
-# zizmor (workflow security linter) configuration — see security.yml.
+# zizmor (workflow security linter) configuration — run by
+# .gitea/workflows/security.yml (job `workflow-lint`, offline).
rules:
unpinned-uses:
config:
policies:
- # The shared notification / announcement workflows live in the
- # maintainer's own `poli0981/.github` repository and are deliberately
- # tracked at `main`, so a fix there reaches every repo at once.
- "poli0981/*": any
- # Everything else must be pinned to a full commit SHA.
+ # Every action and every call into the ops repo (poli0981/.github) is
+ # pinned to a full commit SHA. Renovate bumps the actions; the ops pins
+ # are bumped by hand when the ops repo is tagged (its runbook §3.2).
"*": hash-pin
dangerous-triggers:
ignore:
@@ -18,9 +17,3 @@ rules:
# actor) to the notifier script through `env:`, never by interpolation.
- notify-ci-failure.yml
- notify-release-pipeline.yml
- # Runs on `pull_request_target` so it can label, comment on and close
- # an out-of-scope pull request from a fork (maintenance mode). It never
- # checks out the pull request, runs none of its code, and reads the
- # title from the event payload inside the script — nothing from the
- # pull request is interpolated into the workflow.
- - maintenance-triage.yml
diff --git a/.gitlab/issue_templates/Accessibility.md b/.gitlab/issue_templates/Accessibility.md
new file mode 100644
index 0000000..724cbab
--- /dev/null
+++ b/.gitlab/issue_templates/Accessibility.md
@@ -0,0 +1,60 @@
+
+
+### What happened?
+
+
+
+### Steps to reproduce
+
+
+
+1.
+2.
+3.
+
+### What did you expect?
+
+### Assistive technology or setting
+
+
+
+- [ ] Keyboard only
+- [ ] Narrator (Windows)
+- [ ] NVDA
+- [ ] JAWS
+- [ ] VoiceOver (macOS / iOS)
+- [ ] TalkBack (Android)
+- [ ] Orca (Linux)
+- [ ] Screen magnifier / browser zoom
+- [ ] Speech input / voice control
+- [ ] High contrast / forced colours
+- [ ] Reduce motion
+- [ ] Switch access
+- [ ] Other (say which below)
+
+**Version of that tool** (if you know it, e.g. NVDA 2026.3):
+
+**How much does it stop you?** (keep one; the levels are explained in ACCESSIBILITY.md)
+- Critical — I can't finish a core task (write, generate, copy, save, get past the website check)
+- High — I can finish it, but only with real difficulty or a workaround
+- Medium — it works, but inconsistently or confusingly
+- Low — a minor annoyance
+
+**App version** (About page, e.g. `v1.7.0`):
+
+**Where are you running YTDescGen?** (web / Windows / Linux / macOS 1.6.0 or older / Android / local dev):
+
+**Operating system and browser** (e.g. Windows 11 25H2 + Edge 141, Android 15):
+
+**App language** (en / vi / ja / es / ko / zh / pt-BR / id):
+
+### Screen recording, screenshot or screen reader output (optional)
+
+/label ~accessibility ~needs-triage
diff --git a/.gitlab/issue_templates/Bug.md b/.gitlab/issue_templates/Bug.md
new file mode 100644
index 0000000..e3bfc90
--- /dev/null
+++ b/.gitlab/issue_templates/Bug.md
@@ -0,0 +1,50 @@
+
+
+**App version** (About page, e.g. `v1.7.0`):
+
+**Where are you running YTDescGen?** (keep one)
+- Web (ytgenerator.stream)
+- Desktop — Windows
+- Desktop — Linux
+- Desktop — macOS (1.6.0 or older)
+- Android (APK)
+- Local dev (`npm run dev`)
+
+**Operating system** (e.g. Windows 11 25H2, Ubuntu 24.04, Android 15):
+
+**Browser** (web only, e.g. Chrome 141, Firefox 144, Safari 26):
+
+**App language at the time of the bug** (en / vi / ja / es / ko / zh / pt-BR / id):
+
+### Steps to reproduce
+
+
+
+1.
+2.
+3.
+
+### Expected behavior
+
+### Actual behavior
+
+### Console / log output
+
+
+
+```
+```
+
+### Screenshots / screen recording (optional)
+
+### Pre-flight checks
+
+- [ ] I searched existing issues and this is not a duplicate.
+- [ ] I'm on the latest released version (or noted my older version above).
+
+/label ~bug ~needs-triage
diff --git a/.gitlab/issue_templates/Option request.md b/.gitlab/issue_templates/Option request.md
new file mode 100644
index 0000000..10199eb
--- /dev/null
+++ b/.gitlab/issue_templates/Option request.md
@@ -0,0 +1,39 @@
+
+
+**Add or remove?** (keep one)
+- Add an option
+- Remove an option
+
+**Which list** (keep one)
+- Store (store links)
+- Social or donate platform
+- Game genre
+- Video type
+- Content warning
+- Tech note
+- GPU (rig catalog)
+- Upscaler / frame generation (Video settings)
+- Another list (say which below)
+
+**The option** — its name as it should appear, e.g. "itch.io", "Roguelite", "AMD FSR 4 x4":
+
+### Who needs it, and why
+
+
+
+### Suggested wording (optional)
+
+
+
+### Pre-flight checks
+
+- [ ] I searched existing issues and this is not a duplicate.
+- [ ] This adds or removes an option in a list the app already has — it is not a new feature.
+
+/label ~option-request ~needs-triage
diff --git a/.gitlab/issue_templates/Translation.md b/.gitlab/issue_templates/Translation.md
new file mode 100644
index 0000000..ea328b5
--- /dev/null
+++ b/.gitlab/issue_templates/Translation.md
@@ -0,0 +1,34 @@
+
+
+**Language** (en / vi / ja / es / ko / zh / pt-BR / id):
+
+**Where** (keep one)
+- The interface (buttons, labels, messages)
+- The generated title, description or tags
+- Both
+
+### Current text
+
+
+
+### Suggested text
+
+**Why** (keep one)
+- It doesn't fit the culture, region or usual tone
+- A spelling or grammar mistake that could mislead
+- The meaning is wrong (a mistranslation)
+- Something else (say below)
+
+### Details (optional)
+
+### Pre-flight checks
+
+- [ ] I searched existing issues and this is not a duplicate.
+
+/label ~i18n ~needs-triage
diff --git a/.gitlab/merge_request_templates/Default.md b/.gitlab/merge_request_templates/Default.md
new file mode 100644
index 0000000..423e1f5
--- /dev/null
+++ b/.gitlab/merge_request_templates/Default.md
@@ -0,0 +1,88 @@
+
+
+## Summary
+
+
+
+-
+-
+
+## Scope
+
+
+
+- [ ] Bug fix, broken UI/UX or accessibility fix
+- [ ] Translation or wording fix
+- [ ] Add or remove an option in one of the app's lists, agreed in issue #
+- [ ] Dependency update, security fix, or major language/runtime/framework upgrade
+- [ ] Cloudflare / Worker change, or a fix for a website incident
+- [ ] Docs or tests only
+
+## Type
+
+- [ ] `feat` — new feature
+- [ ] `fix` — bug fix
+- [ ] `refactor` — code change with no behavior change
+- [ ] `docs` — documentation only
+- [ ] `test` — tests only
+- [ ] `ci` — CI / build pipeline
+- [ ] `chore` — other
+
+## Checklist
+
+- [ ] `npm run typecheck` and `npm run typecheck:all` pass
+- [ ] `npm run lint` and `npm run format:check` pass
+- [ ] `npm run validate:locales` passes — new strings are in all 8 locales (en, vi, ja, es, ko, zh, pt-BR, id)
+- [ ] `npm run test:coverage` passes, with tests for the change
+- [ ] `npm run knip` passes — no unused files, exports or dependencies
+- [ ] `npm run check:version`, `check:tauri`, `check:licenses` and `check:copyright` pass
+- [ ] `npm run build && npm run check:bundle` stay within budget
+- [ ] Touched `worker/` or `wrangler.jsonc`: `npm run cf:check`
+- [ ] Touched `src-tauri/`: `cargo fmt --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test`
+- [ ] No secrets, credentials, or PII committed
+- [ ] No new runtime dependencies without prior discussion in an issue
+- [ ] Commit messages follow `type(scope): message`
+
+## UI Changes
+
+
+
+## Accessibility
+
+
+
+- [ ] Works with the keyboard alone: logical focus order, visible focus, Esc closes, no focus trap
+- [ ] Every control has a name and every field a label (`Field`, `IconButton`); new `aria-label` text is in all 8 locales
+- [ ] Errors and status changes are announced (alert banner, toast or live region)
+- [ ] Colour is not the only signal; design tokens only, and the contrast test passes
+- [ ] New animation respects reduced motion; targets are at least 24 × 24 px
+- [ ] Checked once with a screen reader (Narrator, VoiceOver, NVDA or Orca)
+
+## AI-Assisted Contribution
+
+- [ ] Yes — AI tool used:
+- [ ] No
+
+If yes: did you review every line of generated code/text yourself before submitting?
+
+## Related Issues
+
+
diff --git a/.gitleaksignore b/.gitleaksignore
new file mode 100644
index 0000000..882282d
--- /dev/null
+++ b/.gitleaksignore
@@ -0,0 +1,10 @@
+# gitleaks exceptions (security.yml → the ops repo's security.yml, `secrets`
+# job, full history). One fingerprint per line: :::.
+# Describe each finding in words, never quote it (a quote is a new finding).
+# Editing a flagged line later makes a new finding, with its own entry.
+
+# The Cloudflare Web Analytics beacon token: public by design, the site embeds
+# it in every page (build-plugins/web-only.ts), and its test checks the snippet
+# byte for byte. It identifies the site to the analytics, it grants nothing.
+5ced6b4a86810c098ae6bda289eb46b16066699f:build-plugins/web-only.ts:generic-api-key:16
+5ced6b4a86810c098ae6bda289eb46b16066699f:tests/build/web-only.test.ts:generic-api-key:42
diff --git a/ACCESSIBILITY.md b/ACCESSIBILITY.md
index 700834f..bd10d98 100644
--- a/ACCESSIBILITY.md
+++ b/ACCESSIBILITY.md
@@ -1,10 +1,10 @@
# Accessibility
-**Last updated:** 2026-11-09
+**Last updated:** 2026-11-25
YTDescGen should work for everyone who makes videos, including people who use a keyboard instead of a mouse, a screen reader, zoom or magnification, high-contrast modes, voice control or a touch screen. This statement says what works today, how it is checked, what doesn't work yet, and how to tell us about a barrier.
-It covers the website at [ytgenerator.stream](https://ytgenerator.stream), the desktop apps (Windows, macOS, Linux) and the Android app. They share one interface, so what is said here applies to all of them unless a platform is named.
+It covers the website at [ytgenerator.stream](https://ytgenerator.stream), the desktop apps (Windows and Linux; the macOS app up to 1.6.0, the last version built for it) and the Android app. They share one interface, so what is said here applies to all of them unless a platform is named.
## Our goal
@@ -86,7 +86,7 @@ The app has **not** been tested yet with NVDA, JAWS, VoiceOver (macOS), TalkBack
If something in YTDescGen gets in your way, please tell us. You don't need to know what causes it.
-- **Preferred:** open an [accessibility issue](https://github.com/poli0981/youtube-generator/issues/new?template=accessibility.yml). The form asks for the platform, the assistive technology you use and what happened.
+- **Preferred:** open an [accessibility issue](https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Accessibility) on the GitLab mirror (the project's issue tracker since November 2026). The template asks for the platform, the assistive technology you use and what happened.
- **Not comfortable posting publicly?** Email **contact@poli0981.dev** with `[Accessibility]` at the start of the subject.
- **Quick question?** Ask on [Discord](https://discord.gg/kDM9GMu5vm).
@@ -124,4 +124,4 @@ The pull request template has the same checklist.
## Feedback on this statement
-Ideas for improving this statement or the way accessibility is handled are welcome in [GitHub Discussions](https://github.com/poli0981/youtube-generator/discussions). Please report barriers through the [reporting process](#reporting-a-barrier) so they can be tracked.
+Ideas for improving this statement or the way accessibility is handled are welcome as an [issue on the GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) or by email to **contact@poli0981.dev**. Please report barriers through the [reporting process](#reporting-a-barrier) so they can be tracked.
diff --git a/CLAUDE.md b/CLAUDE.md
index 23d55cc..b1b2b5c 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -4,9 +4,9 @@
**YTDescGen** generates YouTube titles, descriptions and tags for Gameplay No Commentary channels, in eight languages, with profiles (channel), presets (game) and templates (whole form) to skip repeated data entry.
-- **Web app**: — a Cloudflare Worker (Turnstile gate + static build), deployed by Cloudflare Workers Builds on every push to `main`. See [docs/HOSTING.md](docs/HOSTING.md).
-- **Desktop** (Windows / macOS / Linux) and **Android** apps: Tauri 2, released from signed tags.
-- **Repository**: `github.com/poli0981/youtube-generator` · **License**: Apache-2.0 (`LICENSE`, `NOTICE`, REUSE-compliant).
+- **Web app**: — a Cloudflare Worker (Turnstile gate + static build), deployed by the `deploy` job of `.gitea/workflows/ci.yml` (`wrangler deploy`) after every green push to `main`. See [docs/HOSTING.md](docs/HOSTING.md).
+- **Desktop** (Windows / Linux) and **Android** apps: Tauri 2, released from signed tags to `releases.poli0981.dev/youtube-generator/` (no macOS builds after 1.6.0: no macOS runner).
+- **Repository**: `git.poli0981.dev/poli0981/youtube-generator` (Gitea, canonical; the GitHub account was suspended in November 2026, the `github` remote is a read-only record — never push to it). Issues and merge requests: the GitLab mirror `gitlab.com/poli0981/youtube-generator`. **License**: Apache-2.0 (`LICENSE`, `NOTICE`, REUSE-compliant).
- **Maintainer**: poli0981 (SkullMute). Contacts by purpose: see `src/config/about.ts` and README.
**Status: maintenance mode** (since v1.6.0). Don't propose new features. Every change must fall under the policy in [`CONTRIBUTING.md` → Maintenance mode](CONTRIBUTING.md#maintenance-mode):
@@ -18,7 +18,7 @@
- translation fixes (wording that doesn't fit a culture or region, misleading spelling);
- Cloudflare / Worker changes the platform forces, website incidents.
-`.github/workflows/maintenance-triage.yml` closes out-of-scope issues and pull requests (label `out-of-scope`); `feat(options)`, `feat(a11y)` and `feat(i18n)` pull requests stay open.
+Out-of-scope issues and merge requests on the GitLab mirror are closed by hand (label `out-of-scope`); `feat(options)`, `feat(a11y)` and `feat(i18n)` stay open. (GitHub's triage workflow went with the move: Gitea Actions cannot see GitLab.)
## Tech Stack
@@ -34,7 +34,7 @@
| Desktop / Android | Tauri 2 (Rust) — see `src-tauri/` |
| Web hosting | Cloudflare Workers (`worker/`, `wrangler.jsonc`), Turnstile, Web Analytics |
| Tests | Vitest (node environment; Worker tests included) |
-| Quality | ESLint, Prettier, knip, coverage thresholds, bundle budget, licence allow-list, copyright years, REUSE, actionlint/zizmor, cargo fmt/clippy/deny, SonarCloud (CI-based), Qodana (JS + Rust) |
+| Quality | ESLint, Prettier, knip, coverage thresholds, bundle budget, licence allow-list, copyright years, REUSE, actionlint/zizmor, cargo fmt/clippy, gitleaks/Opengrep/osv-scanner/cargo-deny (ops), Qodana (JS + Rust) |
## Project Structure
@@ -77,7 +77,6 @@ worker/ # Cloudflare Worker: gate, cookies, headers, rate
build-plugins/ # legal pages at build time; web-only extras
src-tauri/src/ # lib.rs (plugins, tray), storage.rs (name-only file
# commands), file_dialog.rs (native Save/Open)
-migration-page/ # moving notice for the old GitHub Pages address (until 2026-11-29)
tests/ # engine, store, utils, worker, build, i18n, config, hooks, scripts
scripts/ # locale validation + generator, version sync, Tauri versions,
# bundle budget, licences/third-party notices, copyright
@@ -88,6 +87,12 @@ docs/ # DEVELOPMENT, HOSTING, ARCHITECTURE, FEATURES, R
assets/brand/ # logo sources: every icon and the link-preview card come from them
public/ # static web files (_headers, icons, manifest, 404, robots, sitemap)
LICENSES/ # license texts for REUSE
+.gitea/workflows/ # CI (Gitea Actions): ci (+ deploy), compliance, security, rust,
+ # qodana, release, announce/notify callers of the ops repo
+.github/ # issue forms + PR template (Gitea reads them), actionlint/zizmor
+ # config, requirements-ci (hash-locked Python tools)
+.gitlab/ # issue + merge request templates for the GitLab mirror
+renovate.json # Renovate rules on top of local>poli0981/renovate-config
```
## Coding Conventions
@@ -99,7 +104,7 @@ LICENSES/ # license texts for REUSE
- `src/` is typed against `lib` ES2022 — the browsers' floor (Chrome 111, Safari 16.4, Firefox 114), because Vite never polyfills. Don't reach for newer built-ins in the app without raising that floor; tests, scripts, worker and build plugins get ES2025 (`tsconfig.check.json`). `target` is ES2025 (ES2026 waits for TypeScript 7.1).
- Erasable syntax only (`erasableSyntaxOnly`, `verbatimModuleSyntax`): no enums, namespaces or parameter properties; `import type` for types.
- React 19: `ref` is an ordinary prop — no `forwardRef`.
-- Regexes must stay linear (SonarCloud S8786): no unbounded quantifier that can restart inside its own run (`\s+$`, a leading `\s+` in an unanchored pattern, `\s*` next to `\s*`) — trim first, anchor, bound the run, or use a loop.
+- Regexes must stay linear (a ReDoS rule Sonar enforced as S8786; Opengrep and Qodana look for the same): no unbounded quantifier that can restart inside its own run (`\s+$`, a leading `\s+` in an unanchored pattern, `\s*` next to `\s*`) — trim first, anchor, bound the run, or use a loop.
### React
@@ -141,7 +146,7 @@ LICENSES/ # license texts for REUSE
3. **Profiles vs presets vs templates**: profile = channel (rarely changes), preset = game (reused across parts), template = the whole form. The field lists live in `src/config/library-fields.ts`.
4. **Tags are generated**, then trimmed to YouTube's own length count.
5. **Your data stays on your device.** localStorage is the only store; backups are files the user controls (plus automatic backups in the desktop app's data folder).
-6. **The desktop webview never names a path**: Rust commands take file names under the app data folder or open the native dialog themselves. Blocking work in an `async` command (a dialog, file I/O) goes through `tauri::async_runtime::spawn_blocking` — SonarCloud flags it otherwise (`rust:S7493`).
+6. **The desktop webview never names a path**: Rust commands take file names under the app data folder or open the native dialog themselves. Blocking work in an `async` command (a dialog, file I/O) goes through `tauri::async_runtime::spawn_blocking`, so the async runtime is never blocked.
7. **The web app is gated** by Turnstile, verified server-side in the Worker; the gate fails open if its secret is missing.
## Development Commands
@@ -173,15 +178,16 @@ npm run generate:brand # favicon, PWA icons, link-preview card from assets/
## Git Workflow
-- `main` only: feature branches (`feat/…`, `fix/…`, `docs/…`, `chore/…`) → PR → `main`. Every merge to `main` deploys the web app.
+- `main` only: feature branches (`feat/…`, `fix/…`, `docs/…`, `chore/…`) → pull request on Gitea → `main`. Every merge to `main` deploys the web app (CI's `deploy` job).
- Commit and PR-title format: `type(scope): message` (`feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`) — CI checks PR titles, and the message must start with a lower-case letter (`feat(editor): warnings for AI…`, not `feat(editor): AI…`).
-- Commits and release tags are GPG-signed; never bypass signing or hooks.
-- Required checks: `check`, `dependency-review`, `workflow-lint`, `reuse`, `pr-title`.
+- Commits and release tags are GPG-signed; never bypass signing or hooks. Merges made in the Gitea UI are unsigned (Gitea has no signing key), so branch protection must not require signatures.
+- Required checks (Gitea branch protection on `main`): `check`, `workflow-lint`, `reuse`, `pr-title`.
+- Push and fetch over SSH (`ssh://git@git.poli0981.dev:2222/…`); from Git Bash use Windows' OpenSSH, which has the key: `GIT_SSH_COMMAND=C:/Windows/System32/OpenSSH/ssh.exe git push origin `. Merge pull requests in the Gitea UI: a command-line merge leaves the PR open.
## Releases
- Bump the version in all six places: `package.json`, `package-lock.json` (×2), `src-tauri/tauri.conf.json`, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock` (`npm run check:version`), and add a `CHANGELOG.md` entry.
-- Push a signed tag `vX.Y.Z` → the release workflows verify, build the desktop and Android artifacts and create a **draft** release. The maintainer publishes it.
+- Push a signed tag `vX.Y.Z` → `.gitea/workflows/release.yml` verifies, builds Windows (host mode on the maintainer's PC), Linux (`ubuntu-22.04`) and the universal APK, uploads them with `SHA256SUMS` to R2 (`releases.poli0981.dev/youtube-generator//`, then the alias `youtube-generator-latest.apk`) and opens a **draft** Gitea release with the links. Check the links, publish the draft in the Gitea UI, then run **Announce Release to Discord** by hand with the tag (a draft the job token created fires no `release: published`). A dispatch of `release.yml` without a tag is a dry run (artifacts only). An uploaded file is never replaced: a broken release ships as a new version.
## Important Notes for Claude Code
@@ -195,7 +201,8 @@ npm run generate:brand # favicon, PWA icons, link-preview card from assets/
- New upscaler / frame-gen option: the id in `src/config/graphics-settings.ts`, the vendor's list in `src/engine/graphics-vendor.ts`, the editor label (`editor.upscaleQuality.` / `editor.frameGenMultiplier.`, `ui.json`) and the description label (`description.graphics.upscale|frameGen.`, `templates.json`) in all 8 locales and `_schema.json` — `tests/engine/graphics-vendor.test.ts` fails on a gap. A new id only widens the lists (no store bump); a new field does need one.
- UI changes follow the accessibility checklist in `ACCESSIBILITY.md` (#for-contributors): keyboard, names via `Field` / `IconButton`, announced errors, tokens only, reduced motion, 24 px targets. Generated text gets `lang` (the output language); pages name themselves with `useDocumentTitle`, which `RouteAnnouncer` reads out. Update ACCESSIBILITY.md (+ `docs/i18n/vi/`) when what it promises changes.
- Never commit `note.txt`, `warning.txt` or `__pycache__/`; never put real secrets in files (`.dev.vars` holds Cloudflare's public Turnstile test keys only).
-- SonarCloud (project `poli0981_youtube-generator`) is CI-based: the `sonarcloud` job in `ci.yml` scans every PR from this repository and every push to `main`, with the coverage from `check`; settings in `sonar-project.properties`; Automatic Analysis is off. Keep it at 0 open issues and the quality gate (Sonar way: A ratings, reviewed hotspots, ≤ 3 % duplication, ≥ 80 % coverage on new code) green — the job fails with the gate. Coverage covers what `coverage.include` in `vitest.config.ts` lists (the logic layers); everything else is in `sonar.coverage.exclusions`, because a file missing from the LCOV report counts as 0 % — a new source folder goes into one list or the other. The version passed to the scanner starts each release's new-code period. Fork and Dependabot PRs skip the scan (no `SONAR_TOKEN`). Check a PR with `https://sonarcloud.io/api/issues/search?componentKeys=poli0981_youtube-generator&pullRequest=&resolved=false` and its gate with `https://sonarcloud.io/api/qualitygates/project_status?projectKey=poli0981_youtube-generator&pullRequest=`. Workflows install with `npm ci --ignore-scripts` and call local binaries (`npm run …`), never `npx` for a package that isn't installed.
-- Qodana (`.github/workflows/qodana.yml`) runs on every PR and push to `main`: job `typescript` is Qodana for JS in native mode (`qodana.yaml`, Cloud project `yt-ts-js`, secret `QODANA_TOKEN_TS_JS`), job `rust` is Qodana for Rust, Early Access, in Docker on `src-tauri/` (`src-tauri/qodana.yaml`, project `yt-rust`, secret `QODANA_TOKEN_RUST`). Both gate on zero problems: fix a finding, or exclude it in the `qodana.yaml` with a comment saying why. Both skip without their token (Dependabot and fork PRs). It needs an Ultimate licence (currently the trial): when it lapses both jobs fail at the licence check.
-- TypeScript bumps may be manual: `@typescript/native` (`npm:typescript@^7`) and `typescript` (`npm:@typescript/typescript6@^6`) are npm aliases Dependabot may not follow. Stop the dev server before `npm ci` on Windows — it locks native modules (EPERM).
-- The Cloudflare dashboard, publishing releases and repository settings are the maintainer's; ask before touching them.
+- **Forge & CI**: Gitea Actions on `.gitea/workflows/`, run by the maintainer's PC (`windows-latest` = host mode, `ubuntu-*` = Docker), so jobs wait while the PC is off, and scheduled jobs sit inside 13:00–16:00 UTC (slots in the ops repo's registry). The procedure, the shared decisions (D1–D16) and Gitea's quirks are in the ops repo `poli0981/.github` (`docs/GITEA-MIGRATION.md`, `docs/migration/youtube-generator.md`). Calls into the ops repo are pinned to a tag's commit SHA with `ops_ref` set to the same SHA; Renovate does not bump them — do it by hand when the ops repo is tagged. Workflows install with `npm ci --ignore-scripts` and call local binaries (`npm run …`), never `npx` for a package that isn't installed. No GitHub API anywhere (`gh`, `actions/github-script`): Gitea's REST API with the job token, as the ops README's table says. Watch a run without a token: `GET https://git.poli0981.dev/api/v1/repos/poli0981/youtube-generator/commits//status`.
+- Security scanning: `.gitea/workflows/security.yml` runs actionlint + zizmor (offline; tools from the hash-locked `.github/requirements-ci.txt` and pinned binaries) and the ops `security.yml` (gitleaks, Opengrep, osv-scanner, cargo-deny). An advisory no release fixes yet goes into `osv-scanner.toml` (next to the lockfile, with `effectiveUntil`) and, for crates, `src-tauri/deny.toml`, each with its reason.
+- Qodana (`.gitea/workflows/qodana.yml`, the ops `reusable-qodana.yml`) runs on every PR and push to `main`: job `typescript` is Qodana for JS in native mode (`qodana.yaml`, Cloud project `yt-ts-js`, secret `QODANA_TOKEN_TS_JS`), job `rust` is Qodana for Rust, Early Access, in Docker Desktop on the maintainer's PC on `src-tauri/` (`src-tauri/qodana.yaml` with the dhi.io apt pin, project `yt-rust`, secret `QODANA_TOKEN_RUST`). Both gate on zero problems: fix a finding, or exclude it in the `qodana.yaml` with a comment saying why. Both skip without their token. It needs an Ultimate licence (currently the trial): when it lapses both jobs fail at the licence check.
+- Dependencies: Renovate (self-hosted, `renovate.json` extends `local>poli0981/renovate-config`): non-majors grouped daily after a 3-day release age, OSV security PRs at once, majors only when ticked on the Dependency Dashboard. An npm bump makes `check:licenses` fail until `npm run generate:third-party` runs on the branch. TypeScript bumps are manual: `@typescript/native` (`npm:typescript@^7`) and `typescript` (`npm:@typescript/typescript6@^6`) are npm aliases. Stop the dev server before `npm ci` on Windows — it locks native modules (EPERM).
+- The Cloudflare dashboard, publishing releases, Gitea/GitLab repository settings and secrets are the maintainer's; ask before touching them.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 7a2aa4c..57c47ca 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,6 +1,16 @@
# Contributing to YTDescGen
-Thanks for taking the time to contribute. Read this once before opening your first PR — it saves time on both sides.
+Thanks for taking the time to contribute. Read this once before opening your first merge request — it saves time on both sides.
+
+## Where things live
+
+Since November 2026 (the GitHub account was suspended):
+
+- **Source** — [`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator), the canonical repository, on the maintainer's Gitea. It is read-only for everyone else: sign-ups are closed.
+- **Issues and merge requests** — the mirror on GitLab, [`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator). Gitea pushes every change there, so it is always current.
+- **Patches by e-mail** — `git format-patch` / `git send-email` to `code@poli0981.dev`.
+
+The maintainer applies an accepted change on Gitea; the mirror then updates GitLab, and the merge request shows as merged (or is closed with a link to the commit). GitLab CI does not run on merge requests: CI runs on Gitea, on the maintainer's branch.
## Code of Conduct
@@ -10,7 +20,7 @@ Participation is governed by the [Code of Conduct](./CODE_OF_CONDUCT.md). By con
Since 1.6.0 (November 2026) YTDescGen is in **maintenance mode**. It is feature-complete and stays maintained, but it doesn't grow new features. These changes are still accepted:
-1. **Dependency updates** on a regular schedule (weekly, grouped by Dependabot after a 7-day cooldown).
+1. **Dependency updates** on a regular schedule (Renovate, daily, grouped, after a 3-day release age; majors wait for the maintainer on the Dependency Dashboard).
2. **Security fixes**, as soon as possible: a dependency with a high or critical CVE, or a serious security issue in a runtime such as Node.js.
3. **Major upgrades** of a language, runtime or framework, for example Node 24 → 26 or TypeScript 6 → 7.
4. **Issues and pull requests** that:
@@ -22,9 +32,9 @@ Since 1.6.0 (November 2026) YTDescGen is in **maintenance mode**. It is feature-
Anything else is out of scope, new features in particular, unless the maintainer judges one genuinely necessary.
-- The [maintenance triage workflow](.github/workflows/maintenance-triage.yml) closes feature issues and `feat:` pull requests from outside contributors automatically — a `feat(options)`, `feat(a11y)` or `feat(i18n)` pull request stays open. It also closes anything the maintainer labels `out-of-scope`.
-- Feature ideas are welcome in [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas), with no commitment.
-- If your issue or pull request was closed by mistake, reply to it and the maintainer will take another look.
+- The maintainer closes feature issues and `feat:` merge requests by hand, with the label `out-of-scope` — a `feat(options)`, `feat(a11y)` or `feat(i18n)` merge request stays open. (The workflow that did this on GitHub cannot see GitLab.)
+- Feature ideas are welcome as a GitLab issue, with no commitment.
+- If your issue or merge request was closed by mistake, reply to it and the maintainer will take another look.
Releases ship only when one of these changes needs one, for example a security fix for the desktop and Android apps. The website keeps deploying from `main`.
@@ -33,7 +43,7 @@ Releases ship only when one of these changes needs one, for example a security f
1. Read the [Development Guide](./docs/DEVELOPMENT.md) — also available in [Vietnamese](./docs/i18n/vi/DEVELOPMENT.md).
2. Install dependencies: `npm install`.
3. Start the dev server: `npm run dev`.
-4. Before opening a PR, run the same gates CI runs (the required `check` job):
+4. Before opening a merge request, run the same gates CI runs (the required `check` job):
```bash
npm run typecheck && npm run typecheck:all
npm run lint && npm run format:check
@@ -51,35 +61,35 @@ Releases ship only when one of these changes needs one, for example a security f
### Issues
-Use the templates in `.github/ISSUE_TEMPLATE/`:
+Open them on the [GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues/new) and pick a template (`.gitlab/issue_templates/`):
- **Bug report** — only if you can reproduce on the latest release.
- **Option request** — add or remove an option in one of the app's lists; see [Option requests](#option-requests).
- **Translation or wording fix** — wording that doesn't fit a culture or region, or a spelling mistake that could mislead, in any of the eight languages.
- **Accessibility barrier** — anything that gets in the way with a keyboard, a screen reader, zoom, high contrast, voice control or touch. No reproduction on the latest release needed, and you don't need to know the cause. See [ACCESSIBILITY.md](./ACCESSIBILITY.md#reporting-a-barrier).
-There is no feature request form any more: YTDescGen is in [maintenance mode](#maintenance-mode). Share ideas in [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas).
+There is no feature request template: YTDescGen is in [maintenance mode](#maintenance-mode). An idea can still go in a plain issue.
### Option requests
The one kind of addition maintenance mode still takes: an option in a list the app already has, when people really need it — a store (store links), a social or donate platform, a genre, a video type, a content warning or tech note, a GPU in the rig catalog, an upscaler or frame-generation mode. Removing one that no longer makes sense works the same way.
-Open an **Option request** issue first: the option's name as it should appear, which list, and who needs it and why (a link to the store page, the vendor's announcement or a video that needed it helps). Once it's agreed, a pull request titled `feat(options): …` is welcome. [ARCHITECTURE.md → Extensibility Points](./docs/ARCHITECTURE.md) and CLAUDE.md's "Important Notes" say which files each kind of option touches, and the checks fail until all eight locales have its strings.
+Open an **Option request** issue first: the option's name as it should appear, which list, and who needs it and why (a link to the store page, the vendor's announcement or a video that needed it helps). Once it's agreed, a merge request titled `feat(options): …` is welcome. [ARCHITECTURE.md → Extensibility Points](./docs/ARCHITECTURE.md) and CLAUDE.md's "Important Notes" say which files each kind of option touches, and the checks fail until all eight locales have its strings.
-### Pull Requests
+### Merge requests
-- Branch from `main` (`feat/…`, `fix/…`, `docs/…`) and open the PR against `main`. Every merge to `main` deploys the web app, so `main` stays releasable.
-- Commit format and **PR title**: `type(scope): message` — e.g. `feat(engine): add Spanish template support`. Types: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`. CI checks the PR title.
-- Required checks: `check`, `dependency-review`, `workflow-lint`, `reuse`, `pr-title`. When `src-tauri/` changes, the Rust workflow's `lint-and-test` and `cargo-deny` run too, and GitHub's CodeQL code scanning runs on every PR. SonarCloud analyses PRs opened from this repository — its quality gate wants A ratings, reviewed security hotspots, at most 3 % duplication and at least 80 % test coverage on new code in the layers Vitest measures (PRs from forks get no secrets and skip it; the maintainer's merge runs it on `main`). JetBrains Qodana does the same for TypeScript and for the Rust shell, and fails on any problem it finds. Commits on `main` are signed.
-- PR titles start with a lower-case letter after the colon (`feat(editor): add …`, not `feat(editor): Add …`).
-- In [maintenance mode](#maintenance-mode) a `feat` pull request from an outside contributor is closed automatically, unless its scope is `options`, `a11y` or `i18n`. A fix is a `fix`.
-- One logical change per PR. Don't bundle unrelated refactors.
+- Branch from `main` (`feat/…`, `fix/…`, `docs/…`) and open the merge request against `main` on the GitLab mirror. Every merge to `main` deploys the web app, so `main` stays releasable.
+- Commit format and **title**: `type(scope): message` — e.g. `feat(engine): add Spanish template support`. Types: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`. CI checks the title of the maintainer's pull request on Gitea.
+- CI runs on Gitea Actions (`.gitea/workflows/`), on the maintainer's PC: `check` (the gates above, then the production deploy on `main`), `reuse` and `pr-title`, `workflow-lint` (actionlint, zizmor) and the shared security scan — gitleaks, Opengrep, osv-scanner and cargo-deny. When `src-tauri/` changes, the Rust workflow's `lint-and-test` runs too. JetBrains Qodana analyses TypeScript and the Rust shell and fails on any problem it finds. Commits on `main` are signed; merges made in the Gitea UI are not.
+- Titles start with a lower-case letter after the colon (`feat(editor): add …`, not `feat(editor): Add …`).
+- In [maintenance mode](#maintenance-mode) a `feat` merge request from an outside contributor is closed, unless its scope is `options`, `a11y` or `i18n`. A fix is a `fix`.
+- One logical change per merge request. Don't bundle unrelated refactors.
- All locale files must stay in lock-step — see the i18n section below.
-- AI-assisted contributions are welcome but **must be disclosed** in the PR description.
+- AI-assisted contributions are welcome but **must be disclosed** in the merge request description.
### Accessibility
-UI changes keep YTDescGen usable with the keyboard alone and with screen readers. Run through the checklist in [ACCESSIBILITY.md](./ACCESSIBILITY.md#for-contributors) (the PR template repeats it); the contrast test (`tests/styles/contrast.test.ts`) fails if a colour token drops under WCAG AA.
+UI changes keep YTDescGen usable with the keyboard alone and with screen readers. Run through the checklist in [ACCESSIBILITY.md](./ACCESSIBILITY.md#for-contributors) (the merge request template repeats it); the contrast test (`tests/styles/contrast.test.ts`) fails if a colour token drops under WCAG AA.
### i18n Contributions
@@ -95,14 +105,14 @@ Native-speaker corrections to AI-translated locales (JA / ES / KO / ZH / PT-BR /
The following are closed without review and may result in a contributor ban — no exceptions:
-- **Suspected malicious code.** If a PR contains code we suspect may be a supply-chain attack, obfuscation, credential harvesting, cryptominer, or any form of malware — even if CodeQL and Dependabot don't flag it, the maintainer may investigate manually. **Detection equals ban.**
-- **Unverified or suspicious links** in issues, PRs, or comments (pastebin scrapers, redirect chains, unfamiliar shortlinks, link-shortener URLs without context).
-- **Behavior or language violating** [GitHub's Acceptable Use Policies](https://docs.github.com/en/site-policy/acceptable-use-policies).
+- **Suspected malicious code.** If a merge request contains code we suspect may be a supply-chain attack, obfuscation, credential harvesting, cryptominer, or any form of malware — even if the security scans don't flag it, the maintainer may investigate manually. **Detection equals ban.**
+- **Unverified or suspicious links** in issues, merge requests, or comments (pastebin scrapers, redirect chains, unfamiliar shortlinks, link-shortener URLs without context).
+- **Behavior or language violating** [GitLab's Acceptable Use Policy](https://handbook.gitlab.com/handbook/legal/acceptable-use-policy/) or the [Code of Conduct](./CODE_OF_CONDUCT.md).
- **Off-topic / rambling reports** that don't get to the point. Example of what gets ignored: _"Good morning, today is a beautiful day, I was just wondering if maybe…"_ — get straight to the problem.
-- **PRs that touch hundreds of files for a one-line fix** (typical sign of an auto-formatter run on unrelated files).
+- **Merge requests that touch hundreds of files for a one-line fix** (typical sign of an auto-formatter run on unrelated files).
- **Tests deleted or skipped to make CI pass.**
-- **"AI rewrote my entire codebase in a different style" PRs.** AI-assisted edits are welcome (disclosed); whole-repo rewrites are not.
-- **Spam, drive-by typo fixes** that don't address a real issue, and karma-farming PRs.
+- **"AI rewrote my entire codebase in a different style" merge requests.** AI-assisted edits are welcome (disclosed); whole-repo rewrites are not.
+- **Spam, drive-by typo fixes** that don't address a real issue, and karma-farming merge requests.
## What We Want
@@ -116,15 +126,15 @@ Within [maintenance mode](#maintenance-mode):
## What We Don't Want
-- New features, unless the maintainer judges one genuinely necessary — share the idea in [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas) instead.
+- New features, unless the maintainer judges one genuinely necessary — share the idea in an issue instead.
- Cosmetic refactors with no behavior change.
- Adding new runtime dependencies without first opening an issue to discuss the tradeoff.
-- Renaming files without coordinating with open PRs.
+- Renaming files without coordinating with open merge requests.
- Changes to the LICENSE or NOTICE files (these are governance, not contributions).
## Contact
-Questions about contributing or conduct: `code@poli0981.dev`. Security issues go through [SECURITY.md](./SECURITY.md), never a public issue. Accessibility barriers you'd rather not post publicly: `contact@poli0981.dev`, subject starting with `[Accessibility]`.
+Questions about contributing or conduct: `code@poli0981.dev`. Security issues go by e-mail as [SECURITY.md](./SECURITY.md) says, never as a public issue on the GitLab mirror. Accessibility barriers you'd rather not post publicly: `contact@poli0981.dev`, subject starting with `[Accessibility]`.
## License
diff --git a/DISCLAIMER.md b/DISCLAIMER.md
index 6e0808e..179a875 100644
--- a/DISCLAIMER.md
+++ b/DISCLAIMER.md
@@ -11,7 +11,7 @@ This disclosure applies to:
- Source code in `src/` and `src-tauri/`.
- Documentation in `docs/` and all root markdown files.
- Locale files in `src/i18n/locales/`.
-- CI/CD workflows in `.github/workflows/`.
+- CI/CD workflows in `.gitea/workflows/`.
- The Cloudflare Worker in `worker/` and the build plugins in `build-plugins/`.
See also: [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md) § "AI-assisted development".
diff --git a/MAINTAINERS.md b/MAINTAINERS.md
index a7e735e..3a52457 100644
--- a/MAINTAINERS.md
+++ b/MAINTAINERS.md
@@ -6,7 +6,7 @@ Since 1.6.0 the project is in **maintenance mode**: no new features, only the ch
### `@poli0981`
-- **GitHub**:
+- **Gitea** (canonical repositories): · **GitLab** (mirrors, issues):
- **YouTube** (reference channel):
- **Website**: · all channels at
- **Email**: `code@poli0981.dev` (project) · `security@poli0981.dev` (vulnerabilities, see [SECURITY.md](./SECURITY.md))
@@ -14,18 +14,20 @@ Since 1.6.0 the project is in **maintenance mode**: no new features, only the ch
## Maintainer Responsibilities
-- Triage incoming issues and PRs, keeping them within the maintenance scope: the [triage workflow](./.github/workflows/maintenance-triage.yml) closes feature requests from outside contributors, and anything labelled `out-of-scope`, with an explanation.
-- Run the release process: `CHANGELOG.md` entry, version bump, build artifacts, signed tag.
+- Triage incoming issues and merge requests on the GitLab mirror, keeping them within the maintenance scope: feature requests from outside contributors are closed by hand with the label `out-of-scope` and an explanation.
+- Apply accepted merge requests and e-mailed patches on Gitea (the mirror then updates GitLab).
+- Run the release process: `CHANGELOG.md` entry, version bump, signed tag; CI builds the apps, uploads them to `releases.poli0981.dev` and drafts the Gitea release, which the maintainer publishes.
- Enforce the [Code of Conduct](./CODE_OF_CONDUCT.md).
- Review and approve locale translation contributions.
-- Coordinate security advisory disclosure per [SECURITY.md](./SECURITY.md).
+- Coordinate security disclosure per [SECURITY.md](./SECURITY.md).
## Where to Reach Us
-- Bug reports, translation fixes and option requests: [GitHub Issues](https://github.com/poli0981/youtube-generator/issues)
-- Feature ideas, with no commitment while in maintenance mode: [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas)
-- Accessibility barriers: the [Accessibility barrier](https://github.com/poli0981/youtube-generator/issues/new?template=accessibility.yml) form — see [ACCESSIBILITY.md](./ACCESSIBILITY.md)
-- Vulnerabilities: privately, as [SECURITY.md](./SECURITY.md) describes
+- Bug reports, translation fixes and option requests: [issues on the GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) (the Gitea repository takes no sign-ups)
+- Feature ideas, with no commitment while in maintenance mode: a plain issue there
+- Accessibility barriers: the [Accessibility barrier](https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Accessibility) template — see [ACCESSIBILITY.md](./ACCESSIBILITY.md)
+- Patches and questions: `code@poli0981.dev`
+- Vulnerabilities: privately, by e-mail, as [SECURITY.md](./SECURITY.md) describes
## Becoming a Maintainer
diff --git a/NOTICE b/NOTICE
index 056addb..b65a5f6 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
YTDescGen — YouTube Gameplay Description Generator
-Copyright 2026 poli0981 (https://github.com/poli0981)
+Copyright 2026 poli0981 (https://git.poli0981.dev/poli0981)
This product includes software developed by poli0981 and contributors.
diff --git a/PRIVACY.md b/PRIVACY.md
index 2d8ac16..8eeefeb 100644
--- a/PRIVACY.md
+++ b/PRIVACY.md
@@ -1,6 +1,6 @@
# Privacy Policy
-**Effective:** 2026-10-12
+**Effective:** 2026-11-25
This policy covers YTDescGen — the web app at **https://ytgenerator.stream** and the desktop (Windows, macOS, Linux) and Android apps built from the same source. It is maintained by **poli0981 (SkullMute)**, who is responsible for it. Questions and requests: **privacy@poli0981.dev**.
@@ -42,10 +42,6 @@ The apps keep the same data in the app's own WebView storage and application-dat
The desktop app keeps its automatic backups (the newest ten, plus one made before each restore) in the `backups` folder inside the application-data folder, and its event log in `logs`. Uninstalling the app or deleting those folders removes everything. The apps make no network requests of their own; links you choose to open (store pages, donation pages, this policy on the web) open in your browser.
-### The old address
-
-Until 29 November 2026, `poli0981.github.io/youtube-generator` — where the web app used to live — shows a moving notice hosted by **GitHub Pages**. Browser storage belongs to a site, so data saved there can't move on its own: the notice reads what your browser saved on that address and lets you download it as a file. Nothing is uploaded; GitHub, as the host, receives the usual request data (see the [GitHub Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement)).
-
## 2. What the web app's hosting provider processes
The web app is hosted on **Cloudflare Workers**. Cloudflare acts as a service provider (processor) for the site and handles:
@@ -54,6 +50,8 @@ The web app is hosted on **Cloudflare Workers**. Cloudflare acts as a service pr
- **Turnstile bot check.** Before you enter, [Cloudflare Turnstile](https://www.cloudflare.com/products/turnstile/) runs a check — usually invisible — that evaluates technical browser and device signals and your IP address to tell people from automated traffic. Its data handling is described in Cloudflare's [Turnstile Privacy Addendum](https://www.cloudflare.com/turnstile-privacy-policy/). YTDescGen receives only a pass/fail result.
- **Cloudflare Web Analytics.** Aggregate, **cookieless** statistics: page views, referrer, country, browser, operating system and device type, and page-load performance. It sets no cookies, uses no local storage and does not fingerprint visitors. See [Cloudflare's Web Analytics privacy notes](https://www.cloudflare.com/web-analytics/) and the [Cloudflare Privacy Policy](https://www.cloudflare.com/privacypolicy/).
+The desktop installers and the Android APK are downloaded from `releases.poli0981.dev`, which is served by Cloudflare (R2 storage) in the same way: the request data above, used to deliver the file, and nothing else. The apps themselves never contact it.
+
Cloudflare operates a global network, so this data may be processed outside your country under Cloudflare's data-processing terms (including the EU Standard Contractual Clauses).
## 3. Cookies
diff --git a/README.md b/README.md
index 53c671b..780dd75 100644
--- a/README.md
+++ b/README.md
@@ -2,20 +2,20 @@
**YouTube Gameplay Description Generator** — a template engine for Gameplay No Commentary YouTube channels.
-**Use it at [ytgenerator.stream](https://ytgenerator.stream)**, or install the desktop app (Windows / macOS / Linux, 3–6 MB installers) or the Android app from [Releases](https://github.com/poli0981/youtube-generator/releases). One codebase: React + Tauri 2.
+**Use it at [ytgenerator.stream](https://ytgenerator.stream)**, or install the desktop app (Windows / Linux, 3–6 MB installers) or the Android app — see [Download](#download). One codebase: React + Tauri 2.
Generate YouTube titles, descriptions and tags in eight languages. Save your channel as a profile and each game as a preset, and every new video is a few clicks.
[](#project-status)
-[](https://github.com/poli0981/youtube-generator/actions/workflows/ci.yml)
-[](https://github.com/poli0981/youtube-generator/actions/workflows/qodana.yml)
-[](https://sonarcloud.io/summary/new_code?id=poli0981_youtube-generator)
+[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=ci.yml)
+[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=qodana.yml)
+[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=security.yml)
[](./LICENSE)
[](./docs/DEVELOPMENT.md)
-[](https://github.com/poli0981/youtube-generator/releases)
-[](https://github.com/poli0981/youtube-generator/commits)
+[](https://git.poli0981.dev/poli0981/youtube-generator/releases)
+[](https://git.poli0981.dev/poli0981/youtube-generator/commits/branch/main)
-> **Moved from GitHub Pages?** Data saved at the old `poli0981.github.io/youtube-generator` address stays in that browser. Open the old address once — it offers your data as a backup file — then restore it in **Settings › Backup & restore**. Details: [Moving from GitHub Pages](https://github.com/poli0981/youtube-generator/wiki/Moving-from-GitHub-Pages).
+> **Where things live** (since November 2026, when the GitHub account was suspended): source at [`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator) (canonical). Mirror for issues and merge requests: [`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator). Downloads: [`releases.poli0981.dev/youtube-generator/`](#download). Patches and questions: `code@poli0981.dev`. Security: `security@poli0981.dev` (see [SECURITY.md](./SECURITY.md)).
---
@@ -37,7 +37,7 @@ Built for the gameplay no-commentary niche — especially horror / scary games
- translation fixes: wording that doesn't fit a culture or region, and spelling mistakes that could mislead;
- changes the Cloudflare or Worker platform forces, and website incidents such as DDoS or bot spam.
-New features are not planned, except the rare one that is genuinely necessary. Feature issues and pull requests outside this list are closed automatically. The full policy is in [CONTRIBUTING.md](./CONTRIBUTING.md#maintenance-mode).
+New features are not planned, except the rare one that is genuinely necessary. Feature issues and merge requests outside this list are closed. The full policy is in [CONTRIBUTING.md](./CONTRIBUTING.md#maintenance-mode).
## Features
@@ -57,7 +57,20 @@ New features are not planned, except the rare one that is genuinely necessary. F
- **Guardrails** — length caps on every field and an opt-in **Strict Mode** that blocks copy and export while a field has an error.
- **Dark and light themes** at WCAG AA contrast, larger controls on touch screens, and an option to hide every scrollbar.
- **Accessible** — works with the keyboard alone and with screen readers (generated text is marked with its language), respects reduce motion, zooms on desktop; see [ACCESSIBILITY.md](./ACCESSIBILITY.md).
-- **Desktop app** — Windows, macOS & Linux via Tauri; **Android app** — Android 11+, sideloaded from [Releases](https://github.com/poli0981/youtube-generator/releases).
+- **Desktop app** — Windows & Linux via Tauri; **Android app** — Android 11+, sideloaded. See [Download](#download).
+
+## Download
+
+Each release on the [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) links its files on `releases.poli0981.dev/youtube-generator//`, with a `SHA256SUMS` next to them:
+
+| Platform | File |
+| ----------------------- | ---------------------------------------------------------------------- |
+| Windows 10/11 x64 | `YTDescGen__x64-setup.exe` (or the `…_x64_en-US.msi`) |
+| Linux x86_64 | `YTDescGen__amd64.AppImage`, `…_amd64.deb` or `…_x86_64.rpm` |
+| Android 11+ (all ABIs) | `YTDescGen__universal.apk` |
+| macOS | no new builds after 1.6.0 (no macOS build machine since the move) |
+
+The newest APK is always at . The apps have no auto-update: install a new version over the old one, and your data stays. Releases up to 1.6.0 were published on GitHub, which is gone.
## Quick Start
@@ -66,17 +79,17 @@ Use the web app: **** — a quick bot check runs on
Build it yourself:
```bash
-git clone https://github.com/poli0981/youtube-generator.git
+git clone https://git.poli0981.dev/poli0981/youtube-generator.git
cd youtube-generator
npm install
npm run dev # web dev server at http://localhost:5173
```
-Desktop build (Windows / macOS / Linux):
+Desktop build (Windows / Linux; macOS still builds locally on a Mac, but no release ships one):
```bash
npm run tauri:build
-# Output: src-tauri/target/release/bundle/{msi,nsis,deb,rpm,appimage,dmg,app}
+# Output: src-tauri/target/release/bundle/{msi,nsis,deb,rpm,appimage}
```
Android build (`.apk`) — requires the Android SDK + NDK + a JDK:
@@ -114,7 +127,6 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
| Document | What's in it |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| **[Wiki](https://github.com/poli0981/youtube-generator/wiki)** | **User documentation** — quick start, backup & restore, every field and its limit, shortcuts, troubleshooting, FAQ. Start here if you're using the app rather than building it. |
| [Development Guide](./docs/DEVELOPMENT.md) | Toolchain, IDE setup, build commands, troubleshooting. _(Also: [Vietnamese](./docs/i18n/vi/DEVELOPMENT.md).)_ |
| [Hosting](./docs/HOSTING.md) | How ytgenerator.stream is built, deployed and protected. |
| [Architecture](./docs/ARCHITECTURE.md) | Layer model, data flow, engine design. |
@@ -124,7 +136,7 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
| [Tech Spec](./docs/TECH-SPEC.md) | Implementation details and configs. |
| [i18n Guide](./docs/I18N.md) | Adding new locales. |
| [Packaging](./docs/PACKAGING.md) | Tauri desktop + Android release builds and signing. |
-| [Contributing](./CONTRIBUTING.md) | PR process, commit conventions, required checks. |
+| [Contributing](./CONTRIBUTING.md) | Issues and merge requests on GitLab, patches by e-mail, commit conventions, CI. |
| [Security](./SECURITY.md) | Reporting vulnerabilities. |
| [Accessibility](./ACCESSIBILITY.md) | What works with a keyboard, screen readers and zoom, known gaps, how to report a barrier. _(Also: [Vietnamese](./docs/i18n/vi/ACCESSIBILITY.md).)_ |
| [Privacy](./PRIVACY.md) | What is stored where, and what Cloudflare processes. |
@@ -137,7 +149,7 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
## Contributing
-YTDescGen is in [maintenance mode](#project-status): bug, accessibility and translation fixes and agreed option requests are welcome — read [CONTRIBUTING.md](./CONTRIBUTING.md) first. Native-speaker corrections to the AI-translated locales (JA / ES / KO / ZH / PT-BR / ID) are especially appreciated. Feature ideas go to [Discussions → Ideas](https://github.com/poli0981/youtube-generator/discussions/categories/ideas).
+YTDescGen is in [maintenance mode](#project-status): bug, accessibility and translation fixes and agreed option requests are welcome — read [CONTRIBUTING.md](./CONTRIBUTING.md) first. Native-speaker corrections to the AI-translated locales (JA / ES / KO / ZH / PT-BR / ID) are especially appreciated. Issues and merge requests go to the [GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) (the Gitea repository takes no sign-ups); patches also by e-mail to `code@poli0981.dev`.
## License
@@ -152,7 +164,7 @@ This project was co-authored with **Anthropic's Claude Code** (Claude Opus model
| For | Where |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Anything general | `contact@poli0981.dev` |
-| Security vulnerabilities | [GitHub advisory](https://github.com/poli0981/youtube-generator/security/advisories/new) or `security@poli0981.dev` — see [SECURITY.md](./SECURITY.md) |
+| Security vulnerabilities | `security@poli0981.dev`, by e-mail only — see [SECURITY.md](./SECURITY.md) |
| Privacy and data requests | `privacy@poli0981.dev` |
| Terms, legal | `legal@poli0981.dev` |
| Copyright / DMCA notices | `dmca@poli0981.dev` |
diff --git a/REUSE.toml b/REUSE.toml
index e09bc31..9764806 100644
--- a/REUSE.toml
+++ b/REUSE.toml
@@ -1,5 +1,5 @@
# REUSE (https://reuse.software) licensing information for the whole
-# repository, checked in CI by .github/workflows/compliance.yml.
+# repository, checked in CI by .gitea/workflows/compliance.yml.
#
# Everything here is original work released under Apache-2.0 unless a more
# specific annotation below says otherwise. Add one whenever a file under
diff --git a/SECURITY.md b/SECURITY.md
index dda7eeb..341028f 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -13,14 +13,11 @@ YTDescGen has been in [maintenance mode](./CONTRIBUTING.md#maintenance-mode) sin
## Reporting a Vulnerability
-Please report security issues **privately**. Do not open a public issue.
+Please report security issues **privately, by e-mail**: **security@poli0981.dev**, with the subject prefix `[SECURITY]`.
-**Preferred channels (in order):**
+**Do not open a public issue** — in particular not on the GitLab mirror (`gitlab.com/poli0981/youtube-generator`), which is where ordinary issues go. If a report arrives there anyway, the maintainer makes the issue confidential and carries on by e-mail. (The GitHub advisory form went with the suspended GitHub account in November 2026.)
-1. **GitHub Security Advisory** — [open a draft advisory](https://github.com/poli0981/youtube-generator/security/advisories/new) in this repository.
-2. **Email** — **security@poli0981.dev** with the subject prefix `[SECURITY]`.
-
-The same contacts are published in [`/.well-known/security.txt`](https://ytgenerator.stream/.well-known/security.txt) (RFC 9116).
+The same contact is published in [`/.well-known/security.txt`](https://ytgenerator.stream/.well-known/security.txt) (RFC 9116).
Include:
@@ -40,8 +37,8 @@ Include:
In scope:
- The web app at `ytgenerator.stream`, including its Cloudflare Worker (`worker/`): the Turnstile gate, its cookies, and the security headers.
-- The desktop binaries (Windows, macOS, Linux) and the Android APK published on the GitHub releases page, including the Tauri commands in `src-tauri/`.
-- CI/CD workflows in `.github/workflows/`.
+- The desktop installers (Windows, Linux) and the Android APK linked from the [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) and served from `releases.poli0981.dev/youtube-generator/`, including the Tauri commands in `src-tauri/`. (macOS builds stopped after 1.6.0.)
+- CI/CD workflows in `.gitea/workflows/` and the shared workflows they call in `poli0981/.github`.
Out of scope:
diff --git a/TERMS.md b/TERMS.md
index 4b30a84..5fe8f7f 100644
--- a/TERMS.md
+++ b/TERMS.md
@@ -1,8 +1,8 @@
# Terms of Use
-**Effective:** 2026-09-30
+**Effective:** 2026-11-25
-These terms govern your use of YTDescGen — the web app at **https://ytgenerator.stream** and the desktop and Android apps distributed from this project's [GitHub releases](https://github.com/poli0981/youtube-generator/releases). By using YTDescGen you agree to them, together with the [Privacy Policy](PRIVACY.md) and the [Disclaimer](DISCLAIMER.md).
+These terms govern your use of YTDescGen — the web app at **https://ytgenerator.stream** and the desktop and Android apps distributed from this project's [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) (the files are served from `releases.poli0981.dev`). By using YTDescGen you agree to them, together with the [Privacy Policy](PRIVACY.md) and the [Disclaimer](DISCLAIMER.md).
## License
@@ -57,7 +57,7 @@ By submitting a contribution (issue, pull request, comment, locale translation,
3. You will not include malicious code or knowingly vulnerable dependencies.
4. You will follow the [Code of Conduct](CODE_OF_CONDUCT.md) and [Contributing Guide](CONTRIBUTING.md).
-Violations may result in your contribution being closed and, in severe cases, a permanent ban from the repository — see `CONTRIBUTING.md` § "Auto-ignored Contributions". Contributions made on GitHub are also subject to [GitHub's Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service).
+Violations may result in your contribution being closed and, in severe cases, a permanent ban from the repository — see `CONTRIBUTING.md` § "Auto-ignored Contributions". Contributions made on the GitLab mirror are also subject to [GitLab's terms](https://about.gitlab.com/terms/).
## Termination
diff --git a/assets/brand/og-image.svg b/assets/brand/og-image.svg
index 15844bf..c377790 100644
--- a/assets/brand/og-image.svg
+++ b/assets/brand/og-image.svg
@@ -27,7 +27,7 @@
YTDescGenTitles, descriptions & tags for gameplay videos
- 8 languages · Web · Windows · macOS · Linux · Android
+ 8 languages · Web · Windows · Linux · Androidytgenerator.stream
diff --git a/build-plugins/legal-docs.ts b/build-plugins/legal-docs.ts
index b294fa5..760001e 100644
--- a/build-plugins/legal-docs.ts
+++ b/build-plugins/legal-docs.ts
@@ -10,7 +10,7 @@ import { LEGAL_DOCS, legalDocPath, type LegalDoc, type LegalDocId } from "../src
*
* 1. `virtual:legal-docs` — { [id]: { title, effective, html: { en, vi? } } },
* imported lazily by the in-app Legal Center, so desktop and Android carry
- * the documents offline and nothing is fetched from GitHub any more.
+ * the documents offline and nothing is fetched from the forge.
* 2. `dist/legal/.html` (+ `.vi.html`, `index.html`) — plain pages
* with no script, which the Cloudflare Worker serves to anyone, before the
* Turnstile gate: people must be able to read the Terms and the Privacy
@@ -21,7 +21,8 @@ import { LEGAL_DOCS, legalDocPath, type LegalDoc, type LegalDocId } from "../src
const VIRTUAL_ID = "virtual:legal-docs";
const RESOLVED_VIRTUAL_ID = `\0${VIRTUAL_ID}`;
-const REPO_BLOB = "https://github.com/poli0981/youtube-generator/blob/main/";
+/** Files in the canonical repository on Gitea (where outside links point). */
+const REPO_BLOB = "https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/";
const ROOT = resolve(import.meta.dirname, "..");
type DocLang = "en" | "vi";
@@ -63,7 +64,7 @@ export function escapeHtml(text: string): string {
return text.replace(/[&<>"']/g, (ch) => HTML_ESCAPES[ch] ?? ch);
}
-/** Point relative links at the in-site page, or at GitHub for anything else. */
+/** Point relative links at the in-site page, or at the Gitea repository for anything else. */
export function rewriteHref(href: string, fromFile: string): string {
if (/^(?:[a-z][a-z0-9+.-]*:|#)/i.test(href)) return href;
const hashAt = href.indexOf("#");
@@ -248,7 +249,7 @@ function pageShell(options: {
${options.body}
-
+