Migrate all repos into monorepo context folders
Bahn: aisupport, Analyse-O2C-C2S, awesome-bahn-mcp-servers, beam-mcp,
Confluence_Bot, db-planet-mcp-server, O2C-Harness, project-audit,
Projekt-KIQ-HP, teamlandkarte-mcp
Dhive: Jury-Voting
Privat: CV, NoteGraph (NOTE: NoteGraph needs complete redo after consolidation)
Shared: AI-Orchestrator, OrgMyLife, power_skills_and_more
Shared/references: symphony (read-only)
Bahn repos remain available as independent remotes - this monorepo
pulls them in via subtree, the originals are untouched.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Loescht die Test-Seite "TEST Umlaut-Pruefung" (ID: 583338908)
|
||||
#>
|
||||
|
||||
$ConfluenceUrl = "https://arija-confluence.jaas.service.deutschebahn.com"
|
||||
$ApiBase = "$ConfluenceUrl/rest/api"
|
||||
$PageId = "583338908"
|
||||
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
|
||||
# Token aus .secrets laden
|
||||
$SecretsPath = Join-Path $ScriptDir "..\.secrets"
|
||||
$PAT = $null
|
||||
if (Test-Path $SecretsPath) {
|
||||
Get-Content $SecretsPath | ForEach-Object {
|
||||
if ($_ -match "^CONFLUENCE_TOKEN=(.+)$") {
|
||||
$val = $Matches[1].Trim()
|
||||
if ($val -ne "HIER_TOKEN_EINTRAGEN") { $PAT = $val }
|
||||
}
|
||||
}
|
||||
}
|
||||
if (-not $PAT) { $PAT = Read-Host "Confluence PAT" }
|
||||
$Headers = @{ "Authorization" = "Bearer $PAT"; "Content-Type" = "application/json" }
|
||||
|
||||
Write-Host "=== Loesche Test-Seite ===" -ForegroundColor Yellow
|
||||
Write-Host " Seite: TEST Umlaut-Pruefung (ID: $PageId)"
|
||||
|
||||
# Pruefen ob Seite existiert
|
||||
try {
|
||||
$Resp = Invoke-WebRequest -Uri "$ApiBase/content/$PageId" -Headers $Headers -UseBasicParsing -ErrorAction Stop
|
||||
$Data = $Resp.Content | ConvertFrom-Json
|
||||
Write-Host " Gefunden: $($Data.title)" -ForegroundColor Green
|
||||
} catch {
|
||||
Write-Host " Seite nicht gefunden oder bereits geloescht." -ForegroundColor DarkGray
|
||||
exit 0
|
||||
}
|
||||
|
||||
# Loeschen
|
||||
try {
|
||||
Invoke-WebRequest -Uri "$ApiBase/content/$PageId" -Method Delete -Headers $Headers -UseBasicParsing -ErrorAction Stop
|
||||
Write-Host " GELOESCHT!" -ForegroundColor Green
|
||||
} catch {
|
||||
Write-Host " FEHLER: $($_.Exception.Message)" -ForegroundColor Red
|
||||
}
|
||||
Reference in New Issue
Block a user