Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions infrastructure/comp-sync/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WORKDIR /src

# Copy project files and restore
COPY src/COMP.Data/COMP.Data.csproj src/COMP.Data/
COPY src/COMP.API/COMP.API.csproj src/COMP.API/
COPY src/COMP.Sync/COMP.Sync.csproj src/COMP.Sync/
RUN dotnet restore "src/COMP.Sync/COMP.Sync.csproj"

Expand Down
12 changes: 0 additions & 12 deletions src/COMP.API/appsettings.json

This file was deleted.

4 changes: 3 additions & 1 deletion src/COMP.Sync/COMP.Sync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

<ItemGroup>
<ProjectReference Include="..\COMP.Data\COMP.Data.csproj" />
<ProjectReference Include="..\COMP.API\COMP.API.csproj" />
<ProjectReference Include="..\COMP.API\COMP.API.csproj">
<ExcludeAssets>contentfiles</ExcludeAssets>
</ProjectReference>
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/COMP.Sync/Services/GithubService.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Text.Json;
using COMP.Data.Models.Github;

namespace COMP.Sync.Services;

public class GithubService
(
IConfiguration config,
IHttpClientFactory httpClientFactory)
IConfiguration config,
IHttpClientFactory httpClientFactory)
{

private readonly string _registryOwner = config["RegistryOwner"] ?? throw new InvalidOperationException("RegistryOwner is not configured.");
private readonly string _registryRepo = config["RegistryRepo"] ?? throw new InvalidOperationException("RegistryRepo is not configured.");
private readonly HttpClient _httpClient = httpClientFactory.CreateClient("GithubApi");
Expand Down
1 change: 0 additions & 1 deletion src/COMP.Sync/Services/MetadataDbService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using COMP.Data.Models.Entity;
using COMP.Data.Models;
using Microsoft.EntityFrameworkCore;
using COMP.Data.Models.Github;
using COMP.Data.Data;
Expand Down
42 changes: 0 additions & 42 deletions src/COMP.Sync/appsettings.json

This file was deleted.