From ab3b0be88d8b636ef53e68a371ea668d2cbb3a5e Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Fri, 30 Oct 2026 15:47:15 +0000 Subject: [PATCH] chore: mark billing client generated files and add code owners (#45174) --- .gitattributes | 11 +++++++++++ .github/CODEOWNERS | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/.gitattributes b/.gitattributes index 8cf59a64843..fe4753707c1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,6 +10,13 @@ # `pnpm tree:check` in CI does not trip on CRLF rewrites. *.generated.ts text eol=lf +# The billing client is generated from the billing service OpenAPI; its +# `--check` compares bytes, so keep LF. transport.py and __init__.py are hand-written. +/api/services/billing_client/billing.openapi.json text eol=lf +/api/services/billing_client/saas.openapi.json text eol=lf +/api/services/billing_client/billing.py text eol=lf +/api/services/billing_client/saas.py text eol=lf + # Skill scripts run on every platform, so keep LF line endings. /skills/** text=auto eol=lf @@ -18,3 +25,7 @@ /api/openapi/markdown/** linguist-generated *.generated.ts linguist-generated /oxlint-suppressions.json linguist-generated +/api/services/billing_client/billing.openapi.json linguist-generated +/api/services/billing_client/saas.openapi.json linguist-generated +/api/services/billing_client/billing.py linguist-generated +/api/services/billing_client/saas.py linguist-generated diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 850799b7bf6..ddf4aac9eb3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -99,6 +99,8 @@ /api/tests/**/tasks/test_async_workflow_tasks.py @Mairuis /api/tests/**/services/test_billing_service.py @zyssyz123 /api/tests/**/controllers/console/billing/ @zyssyz123 +/api/tests/**/services/billing_client/ @zyssyz123 +/api/tests/**/dev/test_generate_billing_client.py @zyssyz123 /api/tests/**/configs/enterprise/ @GareArc /api/tests/**/services/enterprise/ @GareArc /api/tests/**/services/test_feature_service.py @GareArc @@ -188,6 +190,8 @@ # Backend - Billing /api/services/billing_service.py @zyssyz123 /api/controllers/console/billing/ @zyssyz123 +/api/services/billing_client/ @zyssyz123 +/api/dev/generate_billing_client.py @zyssyz123 # Backend - Enterprise /api/configs/enterprise/ @GareArc