Skip to content

Commit

Permalink
feat: use dynamic check name
Browse files Browse the repository at this point in the history
  • Loading branch information
yknx4 committed Sep 29, 2021
1 parent d426cb3 commit 5a1bf0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/opencov/services/github/checks.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
defmodule Librecov.Services.Github.Checks do
require Logger
import Librecov.Services.Github.Config
alias ExOctocat.Connection
alias ExOctocat.Api.Checks
alias Librecov.Build
Expand Down Expand Up @@ -40,7 +41,7 @@ defmodule Librecov.Services.Github.Checks do
conn
|> Checks.checks_create(owner, repo,
body: %{
name: "LibreCov/commit",
name: "#{github_app_name()}/commit",
head_sha: commit,
conclusion: "success",
output: %{
Expand All @@ -53,7 +54,7 @@ defmodule Librecov.Services.Github.Checks do
conn
|> Checks.checks_create(owner, repo,
body: %{
name: "LibreCov/diff",
name: "#{github_app_name()}/diff",
head_sha: commit,
conclusion: coverage_diff(coverage, real_previous_coverage) |> diff_conclusion(),
output: %{
Expand All @@ -80,7 +81,7 @@ defmodule Librecov.Services.Github.Checks do
|> Connection.new()
|> Checks.checks_create(owner, repo,
body: %{
name: "LibreCov/commit",
name: "#{github_app_name()}/commit",
head_sha: commit,
output: %{
title: "Waiting for tests to finish.",
Expand Down

0 comments on commit 5a1bf0f

Please sign in to comment.