Skip to content

Commit

Permalink
Change PublishRelease to PublishDraft to match GitHub UI
Browse files Browse the repository at this point in the history
  • Loading branch information
csmager committed Oct 26, 2017
1 parent 89ab98d commit d0268b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ Target.Create "FastRelease" (fun _ ->
GitHub.CreateClientWithToken token
|> GitHub.CreateDraftWithNotes gitOwner gitName release.NugetVersion (release.SemVer.PreRelease <> None) release.Notes
|> GitHub.UploadFiles files
|> GitHub.ReleaseDraft
|> GitHub.PublishDraft
|> Async.RunSynchronously
#else
let draft =
Expand Down
6 changes: 3 additions & 3 deletions src/app/Fake.Api.GitHub/GitHub.fs
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ module GitHub =
return release'
}

/// Publishes the specified release by removing its Draft status
let ReleaseDraft (release : Async<Release>) =
/// Publishes the specified release by removing its draft status
let PublishDraft (release : Async<Release>) =
retryWithArg 5 release <| fun release' -> async {
let update = release'.Release.ToUpdate()
update.Draft <- Nullable<bool>(false)
let! released = Async.AwaitTask <| release'.Client.Repository.Release.Edit(release'.Owner, release'.RepoName, release'.Release.Id, update)
printfn "Released %d on GitHub" released.Id
printfn "Published release %d on GitHub" released.Id
}

/// Gets the latest release for the specified repository
Expand Down

0 comments on commit d0268b1

Please sign in to comment.