License Generation¶
osa_tool.operations.docs.community_docs_generation.license_generation
¶
LicenseCompiler
¶
Compiles and ensures the presence of a LICENSE file in a repository.
This class is responsible for generating a LICENSE file based on a predefined license template and repository metadata. It resolves the target repository using SourceRank, checks whether a LICENSE file already exists, and, if not, renders and writes the license text to the repository root.
run()
¶
Executes the license compilation process.
Raises:
| Type | Description |
|---|---|
KeyError
|
If the specified license_type is not found in the license templates. |