-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Gitea provider merge #11618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Gitea provider merge #11618
Changes from all commits
818bdab
1b36a9c
7ad9f64
3a1c22b
1a13b05
c0ca96c
a928dab
3e5118d
3f98c41
c0599af
d257b11
556ce2d
d33de81
16d32bc
d1b9069
1dd8ef7
fda3a9c
bd21cfb
9b7b38b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| name: Build Gitea fork artifacts | ||
|
|
||
| # Personal fork build. Upstream runs on Blacksmith runners that do not exist in | ||
| # this fork, so everything here uses GitHub-hosted runners instead. | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
| - gitea-provider-merge | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| linux: | ||
| name: Linux (server bundle + AppImage) | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 90 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| sparse-checkout: | | ||
| /* | ||
| !/.repos/ | ||
| sparse-checkout-cone-mode: false | ||
|
|
||
| - name: Setup Vite+ | ||
| uses: voidzero-dev/setup-vp@v1 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: true | ||
| run-install: true | ||
|
|
||
| - name: Install Linux packaging prerequisites | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y build-essential libsecret-1-dev pkg-config imagemagick | ||
|
|
||
| - name: Setup Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Build Linux AppImage | ||
| run: vp run dist:desktop:linux | ||
|
|
||
| - name: Upload Linux server bundle | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: t3-server-linux-x64 | ||
| path: apps/server/dist | ||
| if-no-files-found: error | ||
| retention-days: 30 | ||
|
|
||
| - name: Upload Linux AppImage | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: t3-desktop-linux-x64 | ||
| path: release/*.AppImage | ||
| if-no-files-found: error | ||
| retention-days: 30 | ||
|
|
||
| windows: | ||
| name: Windows (NSIS installer) | ||
| runs-on: windows-2022 | ||
| timeout-minutes: 90 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| sparse-checkout: | | ||
| /* | ||
| !/.repos/ | ||
| sparse-checkout-cone-mode: false | ||
|
|
||
| - name: Setup Vite+ | ||
| uses: voidzero-dev/setup-vp@v1 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: false | ||
| run-install: true | ||
|
|
||
| - name: Setup Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| targets: x86_64-pc-windows-msvc | ||
|
|
||
| # Mirrors upstream: node-pty and friends are rebuilt with MSVC, which | ||
| # wants the Spectre-mitigated libraries that are optional in the base | ||
| # runner image. | ||
| - name: Install Spectre-mitigated MSVC libs | ||
| shell: pwsh | ||
| run: | | ||
| $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" | ||
| $installPath = & $vswhere -products * -latest -property installationPath | ||
| $setupExe = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\setup.exe" | ||
| $proc = Start-Process -FilePath $setupExe ` | ||
| -ArgumentList "modify", "--installPath", "`"$installPath`"", "--add", ` | ||
| "Microsoft.VisualStudio.Component.VC.Tools.x86.x64.Spectre", "--quiet", "--norestart" ` | ||
| -Wait -PassThru -NoNewWindow | ||
| if ($null -eq $proc -or $proc.ExitCode -ne 0) { | ||
| $code = if ($null -ne $proc) { $proc.ExitCode } else { 1 } | ||
| Write-Error "Visual Studio Installer failed with exit code $code" | ||
| exit $code | ||
| } | ||
|
|
||
| - name: Build Windows installer | ||
| run: vp run dist:desktop:win | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 High The uploaded Windows installer has no runnable WSL-local server backend, so Windows users relying on the bundled WSL backend cannot start it. 🤖 Copy this AI Prompt to have your agent fix this: |
||
|
|
||
| - name: Upload Windows installer | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: t3-desktop-windows-x64 | ||
| path: release/*.exe | ||
| if-no-files-found: error | ||
| retention-days: 30 | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,15 @@ | ||||||||||||||||||||
| import Svg, { Circle, Defs, G, LinearGradient, Path, Stop } from "react-native-svg"; | ||||||||||||||||||||
| import Svg, { Circle, Defs, G, LinearGradient, Line, Path, Stop } from "react-native-svg"; | ||||||||||||||||||||
| import { withUniwind } from "uniwind"; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| const ThemedSvg = withUniwind(Svg); | ||||||||||||||||||||
|
|
||||||||||||||||||||
| export type SourceControlIconKind = "github" | "gitlab" | "forgejo" | "bitbucket" | "azure-devops"; | ||||||||||||||||||||
| export type SourceControlIconKind = | ||||||||||||||||||||
| | "github" | ||||||||||||||||||||
| | "gitlab" | ||||||||||||||||||||
| | "forgejo" | ||||||||||||||||||||
| | "bitbucket" | ||||||||||||||||||||
| | "azure-devops" | ||||||||||||||||||||
| | "gitea"; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| export function SourceControlIcon(props: { | ||||||||||||||||||||
| readonly kind: SourceControlIconKind; | ||||||||||||||||||||
|
|
@@ -14,6 +20,29 @@ export function SourceControlIcon(props: { | |||||||||||||||||||
| const size = props.size ?? 18; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| switch (props.kind) { | ||||||||||||||||||||
| case "gitea": | ||||||||||||||||||||
| return ( | ||||||||||||||||||||
| <Svg width={size} height={size} viewBox="0 0 24 24" fill="none"> | ||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Apply
Proposed fix- <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
+ <ThemedSvg
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ color={props.color}
+ colorClassName={props.colorClassName}
+ >
...
- </Svg>
+ </ThemedSvg>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
| <Circle cx="18" cy="18" r="3" stroke={props.color ?? "currentColor"} strokeWidth="2" /> | ||||||||||||||||||||
| <Circle cx="6" cy="6" r="3" stroke={props.color ?? "currentColor"} strokeWidth="2" /> | ||||||||||||||||||||
| <Path | ||||||||||||||||||||
| d="M13 6h3a2 2 0 0 1 2 2v7" | ||||||||||||||||||||
| stroke={props.color ?? "currentColor"} | ||||||||||||||||||||
| strokeWidth="2" | ||||||||||||||||||||
| strokeLinecap="round" | ||||||||||||||||||||
| strokeLinejoin="round" | ||||||||||||||||||||
| /> | ||||||||||||||||||||
| <Line | ||||||||||||||||||||
| x1="6" | ||||||||||||||||||||
| y1="9" | ||||||||||||||||||||
| x2="6" | ||||||||||||||||||||
| y2="21" | ||||||||||||||||||||
| stroke={props.color ?? "currentColor"} | ||||||||||||||||||||
| strokeWidth="2" | ||||||||||||||||||||
| strokeLinecap="round" | ||||||||||||||||||||
| /> | ||||||||||||||||||||
| </Svg> | ||||||||||||||||||||
| ); | ||||||||||||||||||||
| case "forgejo": | ||||||||||||||||||||
| // Official two-color mark from https://forgejo.org/favicon.svg. | ||||||||||||||||||||
| return ( | ||||||||||||||||||||
|
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Install the documented Spectre libraries component.
The current Visual Studio Build Tools component list names
Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectrefor current x86/x64 Spectre libraries. It does not listMicrosoft.VisualStudio.Component.VC.Tools.x86.x64.Spectre. If the installer does not recognize that ID, the required libraries remain unavailable and the following Windows build can fail.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents