Skip to content

Commit

Permalink
Fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhurst committed Jul 14, 2024
1 parent aa0ce5d commit 65f79c8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ namespace ModularPipelines.Build.Modules;
public class UpdateReleaseNotesModule : Module
{
private readonly IOptions<GitHubSettings> _githubSettings;
private readonly IGitHubClient _gitHubClient;
private readonly IOptions<PublishSettings> _publishSettings;

public UpdateReleaseNotesModule(IOptions<GitHubSettings> githubSettings,
IGitHubClient gitHubClient,
IOptions<PublishSettings> publishSettings)
{
_githubSettings = githubSettings;
_gitHubClient = gitHubClient;
_publishSettings = publishSettings;
}

Expand Down Expand Up @@ -70,7 +67,7 @@ protected override async Task<SkipDecision> ShouldSkip(IPipelineContext context)

if (!string.IsNullOrWhiteSpace(releaseNotesContents.Trim()))
{
await _gitHubClient.Repository.Release.Create(long.Parse(context.GitHub().EnvironmentVariables.RepositoryId!),
await context.GitHub().Client.Repository.Release.Create(long.Parse(context.GitHub().EnvironmentVariables.RepositoryId!),
new NewRelease(versionInfoResult.Value)
{
Name = versionInfoResult.Value,
Expand Down

0 comments on commit 65f79c8

Please sign in to comment.