Skip to content

Commit

Permalink
Add ToString method to MergeStyle (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug123 authored Sep 22, 2024
1 parent 9f0e2c0 commit 0c394a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Gitea.Declarative.Lib/ConfigSchema.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ type MergeStyle =
elif s = "rebase-merge" then MergeStyle.RebaseMerge
else failwithf "Unrecognised merge style '%s'" s

static member toString (s : MergeStyle) : string =
match s with
override this.ToString () : string =
match this with
| Merge -> "merge"
| RebaseMerge -> "rebase-merge"
| Rebase -> "rebase"
| Squash -> "squash"

static member toString (m : MergeStyle) = m.ToString ()

type PushMirror =
{
GitHubAddress : Uri
Expand Down

0 comments on commit 0c394a0

Please sign in to comment.