Skip to content

Commit 5a1bf0f

Browse files
committed
feat: use dynamic check name
1 parent d426cb3 commit 5a1bf0f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/opencov/services/github/checks.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
defmodule Librecov.Services.Github.Checks do
22
require Logger
3+
import Librecov.Services.Github.Config
34
alias ExOctocat.Connection
45
alias ExOctocat.Api.Checks
56
alias Librecov.Build
@@ -40,7 +41,7 @@ defmodule Librecov.Services.Github.Checks do
4041
conn
4142
|> Checks.checks_create(owner, repo,
4243
body: %{
43-
name: "LibreCov/commit",
44+
name: "#{github_app_name()}/commit",
4445
head_sha: commit,
4546
conclusion: "success",
4647
output: %{
@@ -53,7 +54,7 @@ defmodule Librecov.Services.Github.Checks do
5354
conn
5455
|> Checks.checks_create(owner, repo,
5556
body: %{
56-
name: "LibreCov/diff",
57+
name: "#{github_app_name()}/diff",
5758
head_sha: commit,
5859
conclusion: coverage_diff(coverage, real_previous_coverage) |> diff_conclusion(),
5960
output: %{
@@ -80,7 +81,7 @@ defmodule Librecov.Services.Github.Checks do
8081
|> Connection.new()
8182
|> Checks.checks_create(owner, repo,
8283
body: %{
83-
name: "LibreCov/commit",
84+
name: "#{github_app_name()}/commit",
8485
head_sha: commit,
8586
output: %{
8687
title: "Waiting for tests to finish.",

0 commit comments

Comments
 (0)