From 76d04bac4835d394534a5af16a9a52079a674d4b Mon Sep 17 00:00:00 2001 From: "Regis A. Despres" Date: Sun, 2 Mar 2025 20:06:16 +0100 Subject: [PATCH] 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 --- README.md | 1 + repositoryupdater/addon.py | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index f506719..00aee68 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/repositoryupdater/addon.py b/repositoryupdater/addon.py index 70a27b0..a95716c 100644 --- a/repositoryupdater/addon.py +++ b/repositoryupdater/addon.py @@ -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