turbaszek opened a new issue #125: URL: https://github.com/apache/kibble/issues/125
**Description** Currently all data sources supported by Kibble are defined in this one, long yaml: https://github.com/apache/kibble/blob/8904f39ca2b19aef3522455ec357294cc398c49e/kibble/api/yaml/sourcetypes.yaml#L1-L103 We should introduce `DataSource` base class and then rewrite (automatically) the yaml file into pythonic code. For example: ```py class GitDataSource(DataSource): title: str = "Plain git repository" description: str = "This is a plain git repository with no issues/PRs attached. For GitHub repositories, use the GitHub source type." regex: str = r"(?:https?|git)://.*/.+\.git" example: str = "git://example.org/repos/foo.git" optauth: List[str] = [ "username", "password", ] ``` **Use case** To make it easier to work with data sources and keep them as pythonic object not yaml files. **Related Issues** N/A ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
