Enrich Feishu daily digest with auto-refresh status.

Include Gitea web-daily/weekly/patch conclusions and Cloudflare Pages deploys; ship the refresh workflows so those signals exist.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
voson
2026-07-28 21:17:23 +08:00
co-authored by Cursor
parent 9f484166d4
commit 37769580f5
10 changed files with 889 additions and 68 deletions
+9
View File
@@ -15,6 +15,7 @@ import sys
from pathlib import Path
STASH = Path(os.environ.get("TEMP") or os.environ.get("TMP") or ".") / "climperor_feishu_wh.url"
GITEA_STASH = Path(os.environ.get("TEMP") or os.environ.get("TMP") or ".") / "climperor_gitea.tok"
def stash() -> None:
@@ -40,6 +41,14 @@ def run(argv: list[str]) -> int:
except OSError:
pass
os.environ["FEISHU_WEBHOOK_URL"] = url
if GITEA_STASH.exists():
tok = GITEA_STASH.read_text(encoding="utf-8").strip()
try:
GITEA_STASH.unlink()
except OSError:
pass
if tok:
os.environ["GITEA_TOKEN"] = tok
# Import after env is set
import notify_site_traffic as n