fix: Start working on more eslint rules, p=#11874

* fix: Start working on more eslint rules, b=no-bug, c=common, mods, workspaces

* chore: Continue migration, b=no-bug, c=workflows, windows, glance, mods, welcome, workspaces, common, compact-mode, folders, tests, kbs, media, split-view, tabs

* chore: Finish, b=no-bug, c=common, compact-mode, folders, glance, tests, kbs, media, mods, split-view, tabs, workspaces, welcome

* fix: Fix installing deps, b=no-bug, c=common

* feat: Dont initialize git on download checks, b=no-bug, c=workflows

* feat: Remove empty JS docs, b=no-bug, c=common, compact-mode, folders, glance, kbs, media, mods, split-view, tabs, tests, workspaces

* chore: Run lint, b=no-bug, c=common, folders, glance, kbs, mods, split-view, tabs, workspaces
This commit is contained in:
mr. m
2026-01-12 15:11:43 +01:00
committed by GitHub
parent fd82ad95b7
commit 37eed5fcfe
200 changed files with 15153 additions and 12664 deletions

View File

@@ -3,56 +3,56 @@ policy:
- id: [component]
label:
# Make sure it's in sync with the dropdown in the issue template
- name: 'component: sync'
keys: ['Sync']
- name: 'component: compact-mode'
keys: ['Compact Mode']
- name: 'component: workspaces'
keys: ['Workspaces']
- name: 'component: mods-themes'
keys: ['Mods / Themes']
- name: 'component: bookmarks'
keys: ['Bookmarks']
- name: 'component: glance'
keys: ['Glance']
- name: 'component: url-bar'
keys: ['URL Bar']
- name: 'component: tabs'
keys: ['Tabs']
- name: 'component: settings'
keys: ['Settings']
- name: 'component: privacy'
keys: ['Privacy']
- name: 'component: split-view'
keys: ['Split View']
- name: 'component: performance'
keys: ['Performance']
- name: 'component: media-controller'
keys: ['Media Controler']
- name: 'component: tab-unloading'
keys: ['Tab unloading']
- name: 'component: tab-folders'
keys: ['Tab Folders']
- name: 'component: keyboard-shortcuts'
keys: ['Keyboard Shortcuts']
- name: 'component: security'
keys: ['Security']
- name: 'component: extensions'
keys: ['Extensions']
- name: 'component: customizable-ui-toolbars'
keys: ['Customizable UI / Toolbars']
- name: 'component: localization'
keys: ['Localization']
- name: 'component: other'
keys: ['Other']
- name: "component: sync"
keys: ["Sync"]
- name: "component: compact-mode"
keys: ["Compact Mode"]
- name: "component: workspaces"
keys: ["Workspaces"]
- name: "component: mods-themes"
keys: ["Mods / Themes"]
- name: "component: bookmarks"
keys: ["Bookmarks"]
- name: "component: glance"
keys: ["Glance"]
- name: "component: url-bar"
keys: ["URL Bar"]
- name: "component: tabs"
keys: ["Tabs"]
- name: "component: settings"
keys: ["Settings"]
- name: "component: privacy"
keys: ["Privacy"]
- name: "component: split-view"
keys: ["Split View"]
- name: "component: performance"
keys: ["Performance"]
- name: "component: media-controller"
keys: ["Media Controler"]
- name: "component: tab-unloading"
keys: ["Tab unloading"]
- name: "component: tab-folders"
keys: ["Tab Folders"]
- name: "component: keyboard-shortcuts"
keys: ["Keyboard Shortcuts"]
- name: "component: security"
keys: ["Security"]
- name: "component: extensions"
keys: ["Extensions"]
- name: "component: customizable-ui-toolbars"
keys: ["Customizable UI / Toolbars"]
- name: "component: localization"
keys: ["Localization"]
- name: "component: other"
keys: ["Other"]
- id: [platform]
block-list: ['Other']
block-list: ["Other"]
label:
# Make sure it's in sync with the dropdown in the issue template
- name: 'platform: linux'
keys: ['Linux (AppImage)', 'Linux (Flatpak)', 'Linux (Tarball)']
- name: 'platform: macOS'
keys: ['macOS - aarch64', 'macOS - Intel']
- name: 'platform: windows'
keys: ['Windows - x64', 'Windows - aarch64']
- name: "platform: linux"
keys: ["Linux (AppImage)", "Linux (Flatpak)", "Linux (Tarball)"]
- name: "platform: macOS"
keys: ["macOS - aarch64", "macOS - Intel"]
- name: "platform: windows"
keys: ["Windows - x64", "Windows - aarch64"]

View File

@@ -4,49 +4,49 @@ on:
workflow_dispatch:
inputs:
create_release:
description: 'Create a new release for this build'
description: "Create a new release for this build"
required: false
default: false
type: 'boolean'
type: "boolean"
update_version:
description: 'Update the version number'
description: "Update the version number"
required: false
default: false
type: 'boolean'
type: "boolean"
update_branch:
description: 'Update branch with new version'
description: "Update branch with new version"
required: true
default: 'release'
type: 'choice'
default: "release"
type: "choice"
options:
- 'release'
- 'twilight'
- "release"
- "twilight"
use-sccache:
description: 'Use sccache'
description: "Use sccache"
required: true
type: 'boolean'
type: "boolean"
default: false
workflow_call:
inputs:
create_release:
description: 'Create a new release for this build'
description: "Create a new release for this build"
required: false
default: false
type: 'boolean'
type: "boolean"
update_version:
description: 'Update the version number'
description: "Update the version number"
required: false
default: false
type: 'boolean'
type: "boolean"
update_branch:
description: 'Update branch with new version'
description: "Update branch with new version"
required: true
default: 'release'
type: 'string'
default: "release"
type: "string"
use-sccache:
description: 'Use sccache'
description: "Use sccache"
required: true
type: 'boolean'
type: "boolean"
default: false
jobs:
@@ -142,7 +142,7 @@ jobs:
- name: Setup Node.js
uses: useblacksmith/setup-node@v5
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
@@ -202,7 +202,7 @@ jobs:
- name: Setup Node.js
uses: useblacksmith/setup-node@v5
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
@@ -244,7 +244,7 @@ jobs:
- name: Setup Node.js
uses: useblacksmith/setup-node@v5
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Setup Git
run: |
@@ -379,7 +379,7 @@ jobs:
- name: Setup Node.js
uses: useblacksmith/setup-node@v5
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Install dependencies
run: |
@@ -565,8 +565,8 @@ jobs:
./zen.installer.exe/*
./zen.installer-arm64.exe/*
./zen.macos-universal.dmg/*
tag_name: 'twilight'
name: 'Twilight build - ${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }} at ${{ needs.build-data.outputs.build_time }})'
tag_name: "twilight"
name: "Twilight build - ${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }} at ${{ needs.build-data.outputs.build_time }})"
draft: false
generate_release_notes: false
prerelease: true
@@ -584,7 +584,7 @@ jobs:
prerelease: false
fail_on_unmatched_files: false
generate_release_notes: false
name: 'Release build - ${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }})'
name: "Release build - ${{ needs.build-data.outputs.version }} (${{ needs.build-data.outputs.build_date }})"
body_path: release_notes.md
files: |
./zen.source.tar.zst/*
@@ -656,7 +656,7 @@ jobs:
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[release]: Update Flatpak manifest'
commit_message: "[release]: Update Flatpak manifest"
commit_user_name: Zen Browser Robot
commit_user_email: zen-browser-auto@users.noreply.github.com
repository: ./flatpak

View File

@@ -2,7 +2,7 @@ name: Check Firefox Candidate Release
on:
schedule:
- cron: '59 4 * * 2'
- cron: "59 4 * * 2"
workflow_dispatch:
permissions:

View File

@@ -5,9 +5,6 @@ on:
branches:
- dev
workflow_call:
pull_request:
branches:
- dev
permissions:
contents: read
@@ -25,7 +22,13 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Download Firefox
env:
ZEN_DOWNLOAD_DONT_INIT_GIT: "1"
run: |
npm run download
- name: Setup and run autopep8
if: ${{ contains(join(github.event.commits.*.modified, ' '), '.py') || contains(join(github.event.commits.*.added, ' '), '.py') || contains(join(github.event.commits.*.removed, ' '), '.py') }}

View File

@@ -5,7 +5,7 @@ permissions:
on:
workflow_dispatch:
schedule:
- cron: '3 2 1 * *'
- cron: "3 2 1 * *"
jobs:
build:
@@ -47,7 +47,7 @@ jobs:
GH_TOKEN: ${{ secrets.DEPLOY_KEY }}
HIDE_AUTHOR: true
HIDE_TIME_TO_ANSWER: true
SEARCH_QUERY: 'repo:zen-browser/desktop is:issue created:${{ env.last_month }}'
SEARCH_QUERY: "repo:zen-browser/desktop is:issue created:${{ env.last_month }}"
- name: Move metrics to docs folder
run: |
@@ -62,6 +62,6 @@ jobs:
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'docs: Update monthly issue metrics, b=(no bug), c={docs}'
commit_message: "docs: Update monthly issue metrics, b=(no bug), c={docs}"
commit_user_name: Zen Browser Robot
commit_user_email: zen-browser-auto@users.noreply.github.com

View File

@@ -4,19 +4,19 @@ on:
workflow_call:
inputs:
build-version:
description: 'The version to build'
description: "The version to build"
required: true
type: string
release-branch:
description: 'The branch to build'
description: "The branch to build"
required: true
type: string
MOZ_BUILD_DATE:
type: string
required: true
default: ''
default: ""
use-sccache:
description: 'Use sccache'
description: "Use sccache"
required: true
type: boolean
default: false
@@ -53,7 +53,7 @@ jobs:
- name: Setup Node.js
uses: useblacksmith/setup-node@v5
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@main

View File

@@ -6,19 +6,19 @@ on:
workflow_call:
inputs:
build-version:
description: 'The version to build'
description: "The version to build"
required: true
type: string
release-branch:
description: 'The branch to build'
description: "The branch to build"
required: true
type: string
MOZ_BUILD_DATE:
type: string
required: true
default: ''
default: ""
use-sccache:
description: 'Use sccache'
description: "Use sccache"
required: true
type: boolean
default: false
@@ -47,7 +47,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@main

View File

@@ -4,18 +4,18 @@ on:
workflow_call:
inputs:
build-version:
description: 'The version to build'
description: "The version to build"
required: true
type: string
release-branch:
description: 'The branch to build'
description: "The branch to build"
required: true
type: string
jobs:
mac-build:
name: Unify macOS (Universal)
runs-on: 'macos-26'
runs-on: "macos-26"
strategy:
fail-fast: false
@@ -30,7 +30,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Setup Python
uses: actions/setup-python@v5

View File

@@ -19,13 +19,18 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm ci
- name: Download Firefox and dependencies
env:
ZEN_DOWNLOAD_DONT_INIT_GIT: "1"
run: npm run download
- name: Import patches
run: npm run import
- name: Run linting
run: npm run lint

View File

@@ -4,14 +4,14 @@ on:
workflow_dispatch:
inputs:
release_candidate:
description: 'Set to true to sync release candidates'
description: "Set to true to sync release candidates"
required: false
type: boolean
default: false
workflow_call:
inputs:
release_candidate:
description: 'Set to true to sync release candidates'
description: "Set to true to sync release candidates"
required: false
type: boolean
default: false
@@ -41,7 +41,7 @@ jobs:
uses: actions/setup-node@v4
if: steps.check-upstream-branch.outputs.branch_exists == 'false'
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Install dependencies
if: steps.check-upstream-branch.outputs.branch_exists == 'false'
@@ -119,9 +119,9 @@ jobs:
GIT_CURL_VERBOSE: 1
with:
token: ${{ secrets.DEPLOY_KEY }}
commit-message: 'chore: Sync upstream to `Firefox ${{ steps.build-data.outputs.version }}`'
branch: 'chore/upstream-sync'
title: 'Sync upstream Firefox to version ${{ steps.build-data.outputs.version }}'
commit-message: "chore: Sync upstream to `Firefox ${{ steps.build-data.outputs.version }}`"
branch: "chore/upstream-sync"
title: "Sync upstream Firefox to version ${{ steps.build-data.outputs.version }}"
body: |
This PR syncs the upstream Firefox to version ${{ steps.build-data.outputs.version }}.

View File

@@ -2,11 +2,11 @@ name: Zen Twilight Scheduled Releases
on:
schedule:
- cron: '0 23 * * *'
- cron: "0 23 * * *"
workflow_dispatch:
inputs:
create_release:
description: 'Whether to do a release'
description: "Whether to do a release"
required: false
type: boolean
default: true
@@ -34,4 +34,4 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"

View File

@@ -7,15 +7,15 @@ on:
workflow_call:
inputs:
build-version:
description: 'The version to build'
description: "The version to build"
required: true
type: string
profile-data-path-archive:
description: 'The path to the zip archive containing the profile data'
description: "The path to the zip archive containing the profile data"
required: false
type: string
release-branch:
description: 'The branch to build'
description: "The branch to build"
required: true
type: string
@@ -37,7 +37,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Setup Git
run: |

View File

@@ -11,22 +11,22 @@ on:
type: boolean
default: false
build-version:
description: 'The version to build'
description: "The version to build"
required: true
type: string
profile-data-path-archive:
description: 'The path to the zip archive containing the profile data'
description: "The path to the zip archive containing the profile data"
type: string
release-branch:
description: 'The branch to build'
description: "The branch to build"
required: true
type: string
MOZ_BUILD_DATE:
type: string
required: true
default: ''
default: ""
use-sccache:
description: 'Use sccache'
description: "Use sccache"
required: true
type: boolean
default: false
@@ -62,7 +62,7 @@ jobs:
- name: Setup Node.js
uses: useblacksmith/setup-node@v5
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@main