Chore/add repo slug to addon templating data (#150)

* chore: add repo slug to addon templating data

* docs: adding the repo_slug addon info into the main readme
This commit is contained in:
Regis A. Despres 2025-03-02 20:06:16 +01:00 committed by GitHub
parent 618c846c33
commit 76d04bac48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -189,6 +189,7 @@ list contains the following variables:
- **description**: Description of the add-on
- **url**: URL of the add-on
- **repo**: URL to the add-on GitHub repo
- **repo_slug**: add-on GitHub slug (:user/:repo)
- **archs**: List of supported architectures by this add-on
- **slug**: The add-on slug
- **target**: The target directory of the add-on inside the add-ons repository

View file

@ -440,6 +440,7 @@ class Addon:
data["description"] = self.description
data["url"] = self.url
data["repo"] = self.addon_repository.html_url
data["repo_slug"] = self.addon_repository.full_name
data["archs"] = self.archs
data["slug"] = self.slug
data["target"] = self.repository_target