File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ public GitLabConfig()
14
14
Projects = new GitLabProjectsCollection ( this ) ;
15
15
}
16
16
17
+ /// <summary>
18
+ /// Server url
19
+ /// </summary>
20
+ public string Url { get ; set ; }
21
+
17
22
/// <summary>
18
23
/// User used by default when not specified in extensions methods
19
24
/// </summary>
Original file line number Diff line number Diff line change @@ -817,7 +817,7 @@ private static GitLabServer CreateServer(GitLabConfig config)
817
817
{
818
818
DefaultBranchName = config . DefaultBranch ?? "main" ,
819
819
DefaultForkVisibilityLevel = config . DefaultVisibility ,
820
- Url = new Uri ( Path . GetTempPath ( ) ) ,
820
+ Url = new Uri ( config . Url ?? Path . GetTempPath ( ) ) ,
821
821
} ;
822
822
}
823
823
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public UserRef Assignee
38
38
39
39
public DateTimeOffset ? ClosedAt { get ; set ; }
40
40
41
- public string WebUrl => Server . MakeUrl ( $ "{ Project . PathWithNamespace } /issues/{ Id . ToString ( CultureInfo . InvariantCulture ) } ") ;
41
+ public string WebUrl => Server . MakeUrl ( $ "{ Project . PathWithNamespace } /-/ issues/{ Iid . ToString ( CultureInfo . InvariantCulture ) } ") ;
42
42
43
43
public IssueState State
44
44
{
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public MergeRequest()
57
57
58
58
public bool RebaseInProgress { get ; set ; }
59
59
60
- public string WebUrl => Server . MakeUrl ( $ "{ Project . PathWithNamespace } /merge_requests/{ Id . ToString ( CultureInfo . InvariantCulture ) } ") ;
60
+ public string WebUrl => Server . MakeUrl ( $ "{ Project . PathWithNamespace } /-/ merge_requests/{ Iid . ToString ( CultureInfo . InvariantCulture ) } ") ;
61
61
62
62
public Pipeline HeadPipeline => Project . Pipelines
63
63
. Where ( p => p . Sha . Equals ( Sha ) )
Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ NGitLab.Mock.Config.GitLabConfig.DefaultUser.set -> void
106
106
NGitLab.Mock.Config.GitLabConfig.DefaultVisibility.get -> NGitLab.Models.VisibilityLevel
107
107
NGitLab.Mock.Config.GitLabConfig.DefaultVisibility.set -> void
108
108
NGitLab.Mock.Config.GitLabConfig.Serialize() -> string
109
+ NGitLab.Mock.Config.GitLabConfig.Url.get -> string
110
+ NGitLab.Mock.Config.GitLabConfig.Url.set -> void
109
111
NGitLab.Mock.Config.GitLabGroup.Visibility.get -> NGitLab.Models.VisibilityLevel?
110
112
NGitLab.Mock.Config.GitLabIssue.CreatedAt.get -> System.DateTime?
111
113
NGitLab.Mock.Config.GitLabIssue.Milestone.get -> string
You can’t perform that action at this time.
0 commit comments