Surface Gitea settings via projects_portfolio_settings() and test

This commit is contained in:
Keith Solomon
2026-08-09 23:12:37 -05:00
parent 925ef184b9
commit e60a9eafb3
2 changed files with 36 additions and 2 deletions
+4 -2
View File
@@ -16,8 +16,10 @@ function projects_portfolio_settings() {
if ( $settings === null ) {
$settings = [
'github_api_token' => get_option( 'projects_portfolio_github_api_token', '' ),
'share_telemetry' => get_option( 'projects_portfolio_share_telemetry', '0' ),
'github_api_token' => get_option( 'projects_portfolio_github_api_token', '' ),
'gitea_api_token' => get_option( 'projects_portfolio_gitea_api_token', '' ),
'default_gitea_base_url' => get_option( 'projects_portfolio_default_gitea_base_url', 'https://codeberg.org' ),
'share_telemetry' => get_option( 'projects_portfolio_share_telemetry', '0' ),
'templates' => [
'version' => get_option( 'projects_portfolio_templates_version', '0' ),
'last_updated' => get_option( 'projects_portfolio_templates_last_updated', '0' ),