diff --git a/Pipeline/Build.MutationTests.cs b/Pipeline/Build.MutationTests.cs index 83fb745..a59869e 100644 --- a/Pipeline/Build.MutationTests.cs +++ b/Pipeline/Build.MutationTests.cs @@ -67,7 +67,7 @@ partial class Build { "stryker-config": { "project-info": { - "name": "github.com/aweXpect/aweXpect.Mockolate", + "name": "github.com/Testably/aweXpect.Mockolate", "module": "{{project.Key.Name}}", "version": "{{branchName}}" }, @@ -124,7 +124,7 @@ partial class Build string body = "## :alien: Mutation Results" + Environment.NewLine - + $"[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FaweXpect%2FaweXpect.Mockolate%2Fpull/{prId}/merge)](https://dashboard.stryker-mutator.io/reports/github.com/aweXpect/aweXpect.Mockolate/pull/{prId}/merge)" + + $"[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FTestably%2FaweXpect.Mockolate%2Fpull/{prId}/merge)](https://dashboard.stryker-mutator.io/reports/github.com/Testably/aweXpect.Mockolate/pull/{prId}/merge)" + Environment.NewLine + MutationCommentBody; File.WriteAllText(ArtifactsDirectory / "PR_Comment.md", body); @@ -158,7 +158,7 @@ partial class Build client.DefaultRequestHeaders.Add("X-Api-Key", apiKey); // https://stryker-mutator.io/docs/General/dashboard/#send-a-report-via-curl await client.PutAsync( - $"https://dashboard.stryker-mutator.io/api/reports/github.com/aweXpect/aweXpect.Mockolate/{branchName}?module={project.Key.Name}", + $"https://dashboard.stryker-mutator.io/api/reports/github.com/Testably/aweXpect.Mockolate/{branchName}?module={project.Key.Name}", new StringContent(reportComment, new MediaTypeHeaderValue("application/json"))); } @@ -173,7 +173,7 @@ await client.PutAsync( Credentials tokenAuth = new(GithubToken); gitHubClient.Credentials = tokenAuth; IReadOnlyList comments = - await gitHubClient.Issue.Comment.GetAllForIssue("aweXpect", "aweXpect.Mockolate", prId); + await gitHubClient.Issue.Comment.GetAllForIssue("Testably", "aweXpect.Mockolate", prId); long? commentId = null; Log.Information($"Found {comments.Count} comments"); foreach (IssueComment comment in comments) @@ -188,12 +188,12 @@ await client.PutAsync( if (commentId == null) { Log.Information($"Create comment:\n{body}"); - await gitHubClient.Issue.Comment.Create("aweXpect", "aweXpect.Mockolate", prId, body); + await gitHubClient.Issue.Comment.Create("Testably", "aweXpect.Mockolate", prId, body); } else { Log.Information($"Update comment:\n{body}"); - await gitHubClient.Issue.Comment.Update("aweXpect", "aweXpect.Mockolate", commentId.Value, + await gitHubClient.Issue.Comment.Update("Testably", "aweXpect.Mockolate", commentId.Value, body); } } diff --git a/README.md b/README.md index bf2495a..7f5edfe 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # aweXpect.Mockolate [![Nuget](https://img.shields.io/nuget/v/aweXpect.Mockolate)](https://www.nuget.org/packages/aweXpect.Mockolate) -[![Build](https://github.com/aweXpect/aweXpect.Mockolate/actions/workflows/build.yml/badge.svg)](https://github.com/aweXpect/aweXpect.Mockolate/actions/workflows/build.yml) +[![Build](https://github.com/Testably/aweXpect.Mockolate/actions/workflows/build.yml/badge.svg)](https://github.com/Testably/aweXpect.Mockolate/actions/workflows/build.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Testably_aweXpect.Mockolate&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Testably_aweXpect.Mockolate) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Testably_aweXpect.Mockolate&metric=coverage)](https://sonarcloud.io/summary/overall?id=Testably_aweXpect.Mockolate) -[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FaweXpect%2FaweXpect.Mockolate%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/aweXpect/aweXpect.Mockolate/main) +[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FTestably%2FaweXpect.Mockolate%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/Testably/aweXpect.Mockolate/main) Expectations to verify interactions with mocks from [Mockolate](https://github.com/aweXpect/Mockolate).