Commit 8a9d21372b090026d088a486cef55dbef610c52a

Thomas de Grivel 2023-02-26T15:21:30

ci

diff --git a/.gitignore b/.gitignore
index e349100..941bcb5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -43,6 +43,7 @@ npm-debug.log
 *.o
 
 /priv/avatar/
+/priv/ci
 /priv/git
 /priv/libgit_nif.so
 /priv/repo/dumps/
diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index 946f64a..8356929 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -371,7 +371,7 @@ defmodule KmxgitWeb.RepositoryController do
     slug = Repository.full_slug(repo)
     log1 = case Git.log(slug, tree, path || "", 0, 1) do
              {:ok, [log1]} ->
-               ci_status_path = "priv/ci/#{Repository.full_slug(repo)}/ci/status/#{repo.slug}.ci.commit_#{log1.hash}.status"
+               ci_status_path = "priv/ci/#{Repository.full_slug(repo)}/ci/status/rbpkg_ci.#{repo.slug}.commit_#{log1.hash}.status"
                if File.exists?(ci_status_path) do
                  {:ok, ci_status} = File.read(ci_status_path)
                  %{log1 | ci_status: ci_status}
diff --git a/lib/kmxgit_web/templates/repository/show_commit_message.html.heex b/lib/kmxgit_web/templates/repository/show_commit_message.html.heex
index 7af1220..b5a0da3 100644
--- a/lib/kmxgit_web/templates/repository/show_commit_message.html.heex
+++ b/lib/kmxgit_web/templates/repository/show_commit_message.html.heex
@@ -18,7 +18,7 @@
         <br/>
         <%= if File.exists?("priv/ci/#{Repository.full_slug(@repo)}/ci/log/#{@repo.slug}.ci.commit_#{@git.log1.hash}.log.html") do %>
           <span class="property"><%= gettext "CI" %> :</span>
-          <% ci_status_html = Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_ci", "ci", "log", "#{@repo.slug}.ci.commit_#{@git.log1.hash}.log.html"])) %>
+          <% ci_status_html = Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_ci", "ci", "log", "rbpkg_ci.#{@repo.slug}.commit_#{@git.log1.hash}.html"])) %>
           <%= link to: ci_status_html do %>
             <img src={"/_images/status_#{@git.log1.ci_status}.32.png"} alt="" class="status-#{@git.log1.ci_status}" />
           <% end %>