mirror of
https://github.com/hassio-addons/repository-updater.git
synced 2025-05-03 18:41:21 +00:00
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:
parent
618c846c33
commit
76d04bac48
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue