Files
tgstation-server/_git_lab_remote_features_8cs_source.html

199 lines
34 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tgstation-server: src/Tgstation.Server.Host/Components/Repository/GitLabRemoteFeatures.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">tgstation-server<span id="projectnumber">&#160;6.19.3</span>
</div>
<div id="projectbrief">The /tg/station 13 server suite</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_34761767c1c3cd212f9d2f80ea0828a8.html">Tgstation.Server.Host</a></li><li class="navelem"><a class="el" href="dir_7a3fd032a1362a6005a1fc9227a8dd86.html">Components</a></li><li class="navelem"><a class="el" href="dir_5d46d0c3fd1cac5ce1ea23751ad25792.html">Repository</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">GitLabRemoteFeatures.cs</div></div>
</div><!--header-->
<div class="contents">
<a href="_git_lab_remote_features_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="keyword">using </span>System;</div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="keyword">using </span>System.Globalization;</div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">using </span>System.Threading;</div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="keyword">using </span>System.Threading.Tasks;</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">using </span>Microsoft.Extensions.Logging;</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">using </span>StrawberryShake;</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a>;</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l.html">Tgstation.Server.Host.Utils.GitLab.GraphQL</a>;</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository.html">Tgstation.Server.Host.Components.Repository</a></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span>{</div>
<div class="foldopen" id="foldopen00018" data-start="{" data-end="};">
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html"> 18</a></span> <span class="keyword">sealed</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html">GitLabRemoteFeatures</a> : <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_base.html">GitRemoteFeaturesBase</a></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a7481da98c65e1f178597a6a61de87ea9"> 24</a></span> <span class="keyword">public</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a7481da98c65e1f178597a6a61de87ea9">GitLabUrl</a> = <span class="stringliteral">&quot;https://gitlab.com&quot;</span>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#af69399ca8fa3f8aed87ee44c5fe06ce1"> 27</a></span> <span class="keyword">public</span> <span class="keyword">override</span> <span class="keywordtype">string</span> <a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#af69399ca8fa3f8aed87ee44c5fe06ce1">TestMergeRefSpecFormatter</a> =&gt; <span class="stringliteral">&quot;merge-requests/{0}/head:{1}&quot;</span>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a58a9f5ad3ae44344d6cb1fdeea5e7cdd"> 30</a></span> <span class="keyword">public</span> <span class="keyword">override</span> <span class="keywordtype">string</span> <a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a58a9f5ad3ae44344d6cb1fdeea5e7cdd">TestMergeLocalBranchNameFormatter</a> =&gt; <span class="stringliteral">&quot;merge-requests/{0}/headrefs/heads/{1}&quot;</span>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#ae580b67ef5ae3f3d3dab8ae2a803b6dd"> 33</a></span> <span class="keyword">public</span> <span class="keyword">override</span> <a class="code hl_enumeration" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#aaff5188f30ee5c04c081684eb9672f17">RemoteGitProvider</a>? <a class="code hl_enumeration" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#aaff5188f30ee5c04c081684eb9672f17">RemoteGitProvider</a> =&gt; Api.Models.RemoteGitProvider.GitLab;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="foldopen" id="foldopen00040" data-start="{" data-end="}">
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a9d23fd143c7809ce5d3fbf42a4c12432"> 40</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a9d23fd143c7809ce5d3fbf42a4c12432">GitLabRemoteFeatures</a>(ILogger&lt;GitLabRemoteFeatures&gt; logger, Uri remoteUrl)</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> : base(logger, remoteUrl)</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> {</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> }</div>
</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#ad6851c0182caa11dc90e7ce28c0d3f49"> 46</a></span> <span class="keyword">public</span> <span class="keyword">override</span> ValueTask&lt;string?&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#ad6851c0182caa11dc90e7ce28c0d3f49">TransformRepositoryPassword</a>(<span class="keywordtype">string</span>? rawPassword, CancellationToken cancellationToken)</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> =&gt; ValueTask.FromResult(rawPassword);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="foldopen" id="foldopen00050" data-start="{" data-end="}">
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a27ad2efa6a7e4e062004fbc09a2c1dc6"> 50</a></span> <span class="keyword">protected</span> <span class="keyword">override</span> async ValueTask&lt;Models.TestMerge&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a27ad2efa6a7e4e062004fbc09a2c1dc6">GetTestMergeImpl</a>(</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html">TestMergeParameters</a> parameters,</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_repository_settings.html">RepositorySettings</a> repositorySettings,</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> CancellationToken cancellationToken)</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> {</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> await <span class="keyword">using </span>var client = await <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l_1_1_graph_q_l_git_lab_client_factory.html">GraphQLGitLabClientFactory</a>.<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l_1_1_graph_q_l_git_lab_client_factory.html#af0bb372de6dc07fd7411964ce47335cb">CreateClient</a>(repositorySettings.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_repository_settings.html#ab0bca804385494f141395c333ea81221">AccessToken</a>);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">try</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> {</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> var operationResult = await client.GraphQL.GetMergeRequest.ExecuteAsync(</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> $<span class="stringliteral">&quot;{RemoteRepositoryOwner}/{RemoteRepositoryName}&quot;</span>,</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> parameters.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a91cb81663a87f96476a47a2628ac1a86">Number</a>.ToString(CultureInfo.InvariantCulture),</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> cancellationToken);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> operationResult.EnsureNoErrors();</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> var mr = operationResult.Data?.Project?.MergeRequest ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(<span class="stringliteral">&quot;GitLab MergeRequest check returned null!&quot;</span>);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_test_merge.html">Models.TestMerge</a></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> {</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> Author = mr.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_internal_1_1_test_merge_model_base.html#aafce2803b522023b2837cf7255d21213">Author</a>?.Username,</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> BodyAtMerge = mr.Description,</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> TitleAtMerge = mr.Title,</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> Comment = parameters.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a556ffae15694a68aa1c78f851407eb5b">Comment</a>,</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> Number = parameters.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a91cb81663a87f96476a47a2628ac1a86">Number</a>,</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> TargetCommitSha = mr.DiffHeadSha,</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> Url = mr.WebUrl,</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> };</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">catch</span> (<a class="code hl_class" href="class_exception.html">Exception</a> ex)</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> {</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_base.html#aa93edf27d4c5255e22771d14350e6a32">Logger</a>.LogWarning(ex, <span class="stringliteral">&quot;Error retrieving merge request metadata!&quot;</span>);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_test_merge.html">Models.TestMerge</a></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> {</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> Author = ex.Message,</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> BodyAtMerge = ex.Message,</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> TitleAtMerge = ex.Message,</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> Comment = parameters.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a556ffae15694a68aa1c78f851407eb5b">Comment</a>,</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> Number = parameters.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a91cb81663a87f96476a47a2628ac1a86">Number</a>,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> TargetCommitSha = parameters.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a1b7f38a2ee2f645796ffeb89fe51b2ce">TargetCommitSha</a>,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> Url = $<span class="stringliteral">&quot;https://gitlab.com/{RemoteRepositoryOwner}/{RemoteRepositoryName}/-/merge_requests/{parameters.Number}&quot;</span>,</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> };</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> }</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</div>
</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> }</div>
</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span>}</div>
<div class="ttc" id="aclass_exception_html"><div class="ttname"><a href="class_exception.html">Exception</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_internal_1_1_test_merge_model_base_html_aafce2803b522023b2837cf7255d21213"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_internal_1_1_test_merge_model_base.html#aafce2803b522023b2837cf7255d21213">Tgstation.Server.Api.Models.Internal.TestMergeModelBase.Author</a></div><div class="ttdeci">string? Author</div><div class="ttdoc">The author of the test merge source.</div><div class="ttdef"><b>Definition</b> <a href="_test_merge_model_base_8cs_source.html#l00039">TestMergeModelBase.cs:39</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_repository_settings_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_repository_settings.html">Tgstation.Server.Api.Models.RepositorySettings</a></div><div class="ttdoc">Represents configurable settings for a git repository.</div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_repository_settings_8cs_source.html#l00008">RepositorySettings.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_repository_settings_html_ab0bca804385494f141395c333ea81221"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_repository_settings.html#ab0bca804385494f141395c333ea81221">Tgstation.Server.Api.Models.RepositorySettings.AccessToken</a></div><div class="ttdeci">string? AccessToken</div><div class="ttdoc">The token/password to access the git repository with. Can also be a TGS encoded app private key....</div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_repository_settings_8cs_source.html#l00042">RepositorySettings.cs:42</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html">Tgstation.Server.Api.Models.TestMergeParameters</a></div><div class="ttdoc">Parameters for creating a TestMerge.</div><div class="ttdef"><b>Definition</b> <a href="_test_merge_parameters_8cs_source.html#l00008">TestMergeParameters.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters_html_a1b7f38a2ee2f645796ffeb89fe51b2ce"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a1b7f38a2ee2f645796ffeb89fe51b2ce">Tgstation.Server.Api.Models.TestMergeParameters.TargetCommitSha</a></div><div class="ttdeci">virtual ? string TargetCommitSha</div><div class="ttdoc">The sha of the test merge revision to merge. If not specified, the latest commit from the source will...</div><div class="ttdef"><b>Definition</b> <a href="_test_merge_parameters_8cs_source.html#l00022">TestMergeParameters.cs:22</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters_html_a556ffae15694a68aa1c78f851407eb5b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a556ffae15694a68aa1c78f851407eb5b">Tgstation.Server.Api.Models.TestMergeParameters.Comment</a></div><div class="ttdeci">string? Comment</div><div class="ttdoc">Optional comment about the test.</div><div class="ttdef"><b>Definition</b> <a href="_test_merge_parameters_8cs_source.html#l00030">TestMergeParameters.cs:30</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters_html_a91cb81663a87f96476a47a2628ac1a86"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_test_merge_parameters.html#a91cb81663a87f96476a47a2628ac1a86">Tgstation.Server.Api.Models.TestMergeParameters.Number</a></div><div class="ttdeci">int Number</div><div class="ttdoc">The number of the test merge source.</div><div class="ttdef"><b>Definition</b> <a href="_test_merge_parameters_8cs_source.html#l00014">TestMergeParameters.cs:14</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html">Tgstation.Server.Host.Components.Repository.GitLabRemoteFeatures</a></div><div class="ttdoc">GitLab IGitRemoteFeatures.</div><div class="ttdef"><b>Definition</b> <a href="_git_lab_remote_features_8cs_source.html#l00018">GitLabRemoteFeatures.cs:19</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features_html_a27ad2efa6a7e4e062004fbc09a2c1dc6"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a27ad2efa6a7e4e062004fbc09a2c1dc6">Tgstation.Server.Host.Components.Repository.GitLabRemoteFeatures.GetTestMergeImpl</a></div><div class="ttdeci">override async ValueTask&lt; Models.TestMerge &gt; GetTestMergeImpl(TestMergeParameters parameters, RepositorySettings repositorySettings, CancellationToken cancellationToken)</div><div class="ttdef"><b>Definition</b> <a href="_git_lab_remote_features_8cs_source.html#l00050">GitLabRemoteFeatures.cs:50</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features_html_a58a9f5ad3ae44344d6cb1fdeea5e7cdd"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a58a9f5ad3ae44344d6cb1fdeea5e7cdd">Tgstation.Server.Host.Components.Repository.GitLabRemoteFeatures.TestMergeLocalBranchNameFormatter</a></div><div class="ttdeci">override string TestMergeLocalBranchNameFormatter</div><div class="ttdoc">Get.</div><div class="ttdef"><b>Definition</b> <a href="_git_lab_remote_features_8cs_source.html#l00030">GitLabRemoteFeatures.cs:30</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features_html_a7481da98c65e1f178597a6a61de87ea9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a7481da98c65e1f178597a6a61de87ea9">Tgstation.Server.Host.Components.Repository.GitLabRemoteFeatures.GitLabUrl</a></div><div class="ttdeci">const string GitLabUrl</div><div class="ttdoc">Url for main GitLab site.</div><div class="ttdef"><b>Definition</b> <a href="_git_lab_remote_features_8cs_source.html#l00024">GitLabRemoteFeatures.cs:24</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features_html_a9d23fd143c7809ce5d3fbf42a4c12432"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#a9d23fd143c7809ce5d3fbf42a4c12432">Tgstation.Server.Host.Components.Repository.GitLabRemoteFeatures.GitLabRemoteFeatures</a></div><div class="ttdeci">GitLabRemoteFeatures(ILogger&lt; GitLabRemoteFeatures &gt; logger, Uri remoteUrl)</div><div class="ttdoc">Initializes a new instance of the GitLabRemoteFeatures class.</div><div class="ttdef"><b>Definition</b> <a href="_git_lab_remote_features_8cs_source.html#l00040">GitLabRemoteFeatures.cs:40</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features_html_ad6851c0182caa11dc90e7ce28c0d3f49"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#ad6851c0182caa11dc90e7ce28c0d3f49">Tgstation.Server.Host.Components.Repository.GitLabRemoteFeatures.TransformRepositoryPassword</a></div><div class="ttdeci">override ValueTask&lt; string?&gt; TransformRepositoryPassword(string? rawPassword, CancellationToken cancellationToken)</div><div class="ttdoc">Transform a service's rawPassword into a password usable by git.A ValueTask&lt;TResult&gt; resulting in th...</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features_html_af69399ca8fa3f8aed87ee44c5fe06ce1"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html#af69399ca8fa3f8aed87ee44c5fe06ce1">Tgstation.Server.Host.Components.Repository.GitLabRemoteFeatures.TestMergeRefSpecFormatter</a></div><div class="ttdeci">override string TestMergeRefSpecFormatter</div><div class="ttdoc">Gets a formatter string which creates the remote refspec for fetching the HEAD of passed in test merg...</div><div class="ttdef"><b>Definition</b> <a href="_git_lab_remote_features_8cs_source.html#l00027">GitLabRemoteFeatures.cs:27</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_base_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_base.html">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesBase</a></div><div class="ttdoc">Base class for implementing IGitRemoteFeatures.</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_base_8cs_source.html#l00015">GitRemoteFeaturesBase.cs:16</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_base_html_aa93edf27d4c5255e22771d14350e6a32"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_base.html#aa93edf27d4c5255e22771d14350e6a32">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesBase.Logger</a></div><div class="ttdeci">ILogger&lt; GitRemoteFeaturesBase &gt; Logger</div><div class="ttdoc">The ILogger for the GitRemoteFeaturesBase.</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_base_8cs_source.html#l00035">GitRemoteFeaturesBase.cs:35</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_test_merge_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_test_merge.html">Tgstation.Server.Host.Models.TestMerge</a></div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_host_2_models_2_test_merge_8cs_source.html#l00008">TestMerge.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l_1_1_graph_q_l_git_lab_client_factory_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l_1_1_graph_q_l_git_lab_client_factory.html">Tgstation.Server.Host.Utils.GitLab.GraphQL.GraphQLGitLabClientFactory</a></div><div class="ttdoc">Factory for creating IGraphQLGitLabClients.</div><div class="ttdef"><b>Definition</b> <a href="_graph_q_l_git_lab_client_factory_8cs_source.html#l00012">GraphQLGitLabClientFactory.cs:13</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l_1_1_graph_q_l_git_lab_client_factory_html_af0bb372de6dc07fd7411964ce47335cb"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l_1_1_graph_q_l_git_lab_client_factory.html#af0bb372de6dc07fd7411964ce47335cb">Tgstation.Server.Host.Utils.GitLab.GraphQL.GraphQLGitLabClientFactory.CreateClient</a></div><div class="ttdeci">static async ValueTask&lt; IGraphQLGitLabClient &gt; CreateClient(string? bearerToken=null)</div><div class="ttdoc">Sets up a IGraphQLGitLabClient.</div><div class="ttdef"><b>Definition</b> <a href="_graph_q_l_git_lab_client_factory_8cs_source.html#l00019">GraphQLGitLabClientFactory.cs:19</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_chat_channel_8cs_source.html#l00005">ChatChannel.cs:6</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html_aaff5188f30ee5c04c081684eb9672f17"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#aaff5188f30ee5c04c081684eb9672f17">Tgstation.Server.Api.Models.RemoteGitProvider</a></div><div class="ttdeci">RemoteGitProvider</div><div class="ttdoc">Indicates the remote git host.</div><div class="ttdef"><b>Definition</b> <a href="_remote_git_provider_8cs_source.html#l00006">RemoteGitProvider.cs:7</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository.html">Tgstation.Server.Host.Components.Repository</a></div><div class="ttdef"><b>Definition</b> <a href="_default_git_remote_features_8cs_source.html#l00007">DefaultGitRemoteFeatures.cs:8</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_lab_1_1_graph_q_l.html">Tgstation.Server.Host.Utils.GitLab.GraphQL</a></div><div class="ttdef"><b>Definition</b> <a href="_graph_q_l_git_lab_client_8cs_source.html#l00006">GraphQLGitLabClient.cs:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>