forked from Gitlink/gitlink-cli
Rewrite the wiki section of community_ops_sweep.py to match the current
gitlink-cli wiki commands (shortcuts/wiki/wiki.go), replacing the obsolete
--page-name/--title/--project-id/--gateway flags.
New flow in _publish_report_to_wiki:
1. bootstrap _Sidebar on cold-start (empty wiki had no sidebar → mkdir/
create -d 404'd)
2. ensure the report directory exists (idempotent +mkdir)
3. wiki +create -d, letting the CLI maintain the sidebar link
Drops the hand-rolled _Sidebar parser (now built into the CLI) and the
unreliable create→update fallback (create always returns 201). Handles the
.- sub_url suffix: page name uses an ASCII slug; the CLI (after the
cleanSidebar fix) auto-cleans the link on delete.
Verified end-to-end with --apply on baoerjun/gitlink-cli: report page
created, _Sidebar directory structure correct, dry-run path intact.
|
||
|---|---|---|
| .. | ||
| community_ops_sweep.py | ||