Skip to content

Commit 65f79c8

Browse files
committed
Fix again
1 parent aa0ce5d commit 65f79c8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ModularPipelines.Build/Modules/UpdateReleaseNotesModule.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ namespace ModularPipelines.Build.Modules;
2323
public class UpdateReleaseNotesModule : Module
2424
{
2525
private readonly IOptions<GitHubSettings> _githubSettings;
26-
private readonly IGitHubClient _gitHubClient;
2726
private readonly IOptions<PublishSettings> _publishSettings;
2827

2928
public UpdateReleaseNotesModule(IOptions<GitHubSettings> githubSettings,
30-
IGitHubClient gitHubClient,
3129
IOptions<PublishSettings> publishSettings)
3230
{
3331
_githubSettings = githubSettings;
34-
_gitHubClient = gitHubClient;
3532
_publishSettings = publishSettings;
3633
}
3734

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

7168
if (!string.IsNullOrWhiteSpace(releaseNotesContents.Trim()))
7269
{
73-
await _gitHubClient.Repository.Release.Create(long.Parse(context.GitHub().EnvironmentVariables.RepositoryId!),
70+
await context.GitHub().Client.Repository.Release.Create(long.Parse(context.GitHub().EnvironmentVariables.RepositoryId!),
7471
new NewRelease(versionInfoResult.Value)
7572
{
7673
Name = versionInfoResult.Value,

0 commit comments

Comments
 (0)