fix(azdo): strip credentials from origin URL in the not-ready message
This commit is contained in:
@@ -55,7 +55,7 @@ public sealed class PullRequestPublisher
|
||||
return "Kein Azure-DevOps-PAT hinterlegt (Einstellungen → Externe Dienste) — nichts gepusht.";
|
||||
var remote = await _git.GetRemoteUrlAsync(workingDir, "origin", ct);
|
||||
return AzureDevOpsClient.ParseRemote(remote) is null
|
||||
? $"origin ist kein https-Remote eines Azure DevOps Servers: {remote}"
|
||||
? $"origin ist kein https-Remote eines Azure DevOps Servers: {System.Text.RegularExpressions.Regex.Replace(remote ?? "", "(?<=://)[^@/]+@", "")}"
|
||||
: null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user