gitea.config.model
model
Configuration model for GitHub accounts.
Classes
gitea.config.model.AccountConfig
Bases: BaseModel
Configuration for a GitHub account.
Attributes
gitea.config.model.AccountConfig.name
class-attribute
instance-attribute
Label of the Gitea account (e.g., 'my_account').
gitea.config.model.AccountConfig.token
class-attribute
instance-attribute
Authentication token for the account.
gitea.config.model.AccountConfig.base_url
class-attribute
instance-attribute
Base URL for the GitHub platform.
Methods:
gitea.config.model.AccountConfig.validate_base_url
classmethod
Validate and normalize the base_url field.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
v
|
str
|
The base URL to validate. |
required |
Returns:
| Type | Description |
|---|---|
str
|
The normalized base URL. |