Compare commits

..

3 Commits

Author SHA1 Message Date
GitCaddy
2c9f94dad5 fix: use process.cwd() for stylelint config path resolution
All checks were successful
Build and Release / Lint (push) Successful in 6m24s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 2m46s
Build and Release / Unit Tests (push) Successful in 4m22s
Build and Release / Build Binaries (amd64, windows) (push) Successful in 3m0s
Build and Release / Create Release (push) Successful in 0s
Build and Release / Build Binaries (amd64, darwin) (push) Successful in 3m27s
Build and Release / Build Binaries (amd64, linux) (push) Successful in 3m28s
Build and Release / Build Binaries (arm64, darwin) (push) Successful in 3m2s
Build and Release / Build Binaries (arm64, linux) (push) Successful in 2m50s
Fixes stylelint configuration error on CI runners where import.meta.url
resolves to the cached node_modules location instead of the project root.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 00:00:45 +00:00
GitCaddy
f6e9e3b17d ci: only build binaries on tag pushes
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m14s
Build and Release / Lint (push) Successful in 4m59s
Build and Release / Unit Tests (push) Successful in 4m59s
Build and Release / Build Binaries (arm64, linux) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin) (push) Has been cancelled
Build and Release / Build Binaries (amd64, linux) (push) Has been cancelled
Skip binary builds for main/release branch pushes - only build when
creating a release (tag push). Tests still run on all pushes.

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 23:27:07 +00:00
GitCaddy
e414c24004 Fix theme settings: add Hide Explore Users, move Help URL inside section
All checks were successful
Build and Release / Lint (push) Successful in 4m51s
Build and Release / Build Binaries (amd64, windows) (push) Successful in 3m11s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m42s
Build and Release / Create Release (push) Has been skipped
Build and Release / Unit Tests (push) Successful in 5m17s
Build and Release / Build Binaries (arm64, darwin) (push) Successful in 3m9s
Build and Release / Build Binaries (amd64, darwin) (push) Successful in 3m54s
Build and Release / Build Binaries (amd64, linux) (push) Successful in 4m19s
Build and Release / Build Binaries (arm64, linux) (push) Successful in 3m6s
- Add Hide Explore Users toggle checkbox to theme settings
- Move Help URL setting inside Theme Configuration section
- Fix closing div tag placement

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 23:22:48 +00:00
3 changed files with 30 additions and 8 deletions

View File

@@ -199,7 +199,7 @@ jobs:
name: Build Binaries
runs-on: linux-latest
needs: [lint, create-release]
if: always() && needs.lint.result == 'success' && (needs.create-release.result == 'success' || needs.create-release.result == 'skipped')
if: startsWith(github.ref, 'refs/tags/v') && needs.lint.result == 'success' && needs.create-release.result == 'success'
strategy:
matrix:
include:

View File

@@ -1,10 +1,11 @@
import {fileURLToPath} from 'node:url';
import path from 'node:path';
import type {Config} from 'stylelint';
// Use process.cwd() for more reliable path resolution across different environments
const cssVarFiles = [
fileURLToPath(new URL('web_src/css/base.css', import.meta.url)),
fileURLToPath(new URL('web_src/css/themes/theme-gitea-light.css', import.meta.url)),
fileURLToPath(new URL('web_src/css/themes/theme-gitea-dark.css', import.meta.url)),
path.join(process.cwd(), 'web_src/css/base.css'),
path.join(process.cwd(), 'web_src/css/themes/theme-gitea-light.css'),
path.join(process.cwd(), 'web_src/css/themes/theme-gitea-dark.css'),
];
export default {
@@ -133,9 +134,9 @@ export default {
'media-feature-name-no-vendor-prefix': true,
'no-descending-specificity': null,
'no-invalid-position-at-import-rule': [true, {ignoreAtRules: ['tailwind']}],
'no-unknown-animations': null, // disabled until stylelint supports multi-file linting
'no-unknown-custom-media': null, // disabled until stylelint supports multi-file linting
'no-unknown-custom-properties': null, // disabled until stylelint supports multi-file linting
'no-unknown-animations': null,
'no-unknown-custom-media': null,
'no-unknown-custom-properties': null,
'plugin/declaration-block-no-ignored-properties': true,
'scale-unlimited/declaration-strict-value': [['/color$/', 'font-weight'], {ignoreValues: '/^(inherit|transparent|unset|initial|currentcolor|none)$/', ignoreFunctions: true, disableFix: true, expandShorthand: true}],
'selector-attribute-quotes': 'always',

View File

@@ -10,6 +10,26 @@
</div>
</dd>
<div class="divider"></div>
<dt>{{ctx.Locale.Tr "admin.config.hide_explore_users"}}</dt>
<dd>
<div class="ui toggle checkbox" data-tooltip-content="{{ctx.Locale.Tr "admin.config.hide_explore_users_desc"}}">
<input type="checkbox" data-config-dyn-key="theme.hide_explore_users" {{if .SystemConfig.Theme.HideExploreUsers.Value ctx}}checked{{end}}><label></label>
</div>
</dd>
<div class="divider"></div>
<dt>{{ctx.Locale.Tr "admin.config.help_url"}}</dt>
<dd>
<form class="ui form form-fetch-action" method="post" action="{{AppSubUrl}}/-/admin/config">
{{.CsrfTokenHtml}}
<input type="hidden" name="key" value="theme.help_url">
<div class="field">
<input type="text" name="value" value="{{.SystemConfig.Theme.HelpURL.Value ctx}}" placeholder="{{ctx.Locale.Tr "admin.config.help_url_placeholder"}}">
</div>
<div class="help">{{ctx.Locale.Tr "admin.config.help_url_help"}}</div>
<button class="ui primary button">{{ctx.Locale.Tr "save"}}</button>
</form>
</dd>
<div class="divider"></div>
<dt>{{ctx.Locale.Tr "admin.config.custom_site_icon"}}</dt>
<dd>
<form class="ui form" method="post" action="{{AppSubUrl}}/-/admin/config/theme/icon" enctype="multipart/form-data">
@@ -95,6 +115,7 @@
<input type="hidden" name="key" value="theme.pinned_org_display_format">
<div class="field">
<select class="ui dropdown" name="value">
<option value="promotional" {{if eq (.SystemConfig.Theme.PinnedOrgDisplayFormat.Value ctx) "promotional"}}selected{{end}}>{{ctx.Locale.Tr "admin.config.pinned_org_format_promotional"}}</option>
<option value="condensed" {{if eq (.SystemConfig.Theme.PinnedOrgDisplayFormat.Value ctx) "condensed"}}selected{{end}}>{{ctx.Locale.Tr "admin.config.pinned_org_format_condensed"}}</option>
<option value="regular" {{if eq (.SystemConfig.Theme.PinnedOrgDisplayFormat.Value ctx) "regular"}}selected{{end}}>{{ctx.Locale.Tr "admin.config.pinned_org_format_regular"}}</option>
</select>