File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/ModularPipelines.Build/Modules Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,12 @@ namespace ModularPipelines.Build.Modules;
2323public 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 ,
You can’t perform that action at this time.
0 commit comments