From 3ce06a6b936b4d655ee0c71e40e9d7b39672f3cd Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Fri, 1 Dec 2023 09:53:49 +0100
Subject: [PATCH] Fix

---
 app/models/communication/website/with_deuxfleurs.rb | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/app/models/communication/website/with_deuxfleurs.rb b/app/models/communication/website/with_deuxfleurs.rb
index bf16cc778..6a31cd512 100644
--- a/app/models/communication/website/with_deuxfleurs.rb
+++ b/app/models/communication/website/with_deuxfleurs.rb
@@ -50,19 +50,27 @@ module Communication::Website::WithDeuxfleurs
     update_columns  access_token: ENV['GITHUB_ACCESS_TOKEN'],
                     repository: deuxfleurs_default_github_repository,
                     deployment_status_badge: deuxfleurs_default_badge_url
-    git_repository.init_from_template(deuxfleurs_default_identifier)
+    git_repository.init_from_template(deuxfleurs_default_github_repository_name)
   end
 
+  # cartographie.agit.osuny.site
   def deuxfleurs_default_identifier
     "#{to_s.parameterize}.#{university.identifier}.osuny.site"
   end
 
+  # https://cartographie.agit.osuny.site
   def deuxfleurs_default_url
     "https://#{deuxfleurs_default_identifier}"
   end
 
+  # agit-cartographie
+  def deuxfleurs_default_github_repository_name
+    "#{university.identifier}-#{to_s.parameterize}"
+  end
+
+  # noesya/agit-cartographie
   def deuxfleurs_default_github_repository
-    "noesya/#{university.identifier}-#{to_s.parameterize}"
+    "noesya/#{deuxfleurs_default_github_repository_name}"
   end
 
   def deuxfleurs_default_badge_url
-- 
GitLab