From c81637dc713499847b7baeb0cb28ab4c32a79c6f Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Fri, 23 Oct 2026 15:29:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=20toast=20=E6=96=87=E6=A1=88=EF=BC=88GitMirr?= =?UTF-8?q?or=20=E4=B8=8A=E7=BA=BF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _toast.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_toast.ps1 b/_toast.ps1 index d71fa4b1..329f4c66 100644 --- a/_toast.ps1 +++ b/_toast.ps1 @@ -3,8 +3,8 @@ [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null $t = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02) $n = $t.GetElementsByTagName('text') -$n.Item(0).AppendChild($t.CreateTextNode('GitMirror:新 PAT 仍缺写权限与组织 Owner')) | Out-Null -$n.Item(1).AppendChild($t.CreateTextNode('实测 push GVSDS/NSQL 被拒(403 Permission denied)说明 Contents 只有读;建仓 403 need admin access 说明令牌未以 GVSDS 组织为资源所有者或属主不是 Owner。请按清单重建 fine-grained PAT:Resource owner 选 GVSDS、Repository access 选 All repositories、Repository permissions 勾 Contents 与 Administration 的 Read and write、Organization permissions 勾 Administration 的 Read and write;若组织启用了 PAT 审批还需批准。代码已提交 SMANAGE eb4ff519,服务与凭据均在本地,未泄漏')) | Out-Null +$n.Item(0).AppendChild($t.CreateTextNode('GitMirror 已上线:webhook 注册成功,回填进行中')) | Out-Null +$n.Item(1).AppendChild($t.CreateTextNode('服务监听 3001,公网 http://gitwebhook.gvsds.com:3001/hooks/gitea 已通;Gitea 组织级 webhook 已创建(push/create/delete/repository),签名校验实测 202 通过、401 拒绝。已修复三处:凭据改为 remote 内嵌(原 credential store 被全局 gho_ 令牌抢占)、仅镜像 heads/tags/notes(避免误删 main 与 refs/pull 隐藏 ref)、兼容 Gitea 28 的 events 数组。已同步成功 9 个仓库(含标签),其余回填中,个别因 Gitea 502 会由 15 分钟兜底重试。注意:frpc 已用 WMI 恢复(因计划任务需要管理员权限,未做开机自启);serve 进程仍挂在当前终端,需持久化请用管理员创建计划任务。SMANAGE d29ed808')) | Out-Null $toast = [Windows.UI.Notifications.ToastNotification]::new($t) [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier('TraeCode Agent').Show($toast) Write-Output 'toast-ok'