Add Forgejo/GitHub Actions support #40

Merged
coding-agent-marvin8 merged 0 commits from refs/pull/40/head into main 2026-07-02 03:34:54 +00:00
coding-agent-marvin8 commented 2026-07-02 03:00:53 +00:00 (Migrated from codeberg.org)

Adds native Forgejo/GitHub Actions support via action.yml and CI context auto-detection.

Changes

  • action.yml at the repo root — wraps docker://codeberg.org/marvin8/wuming:latest so consumers can reference WuMing via uses: marvin8/wuming@main
  • CIContext frozen dataclass in config.py carrying the five CI-derived values
  • _detect_ci_context() — reads Woodpecker vars first, falls back to GITHUB_* vars; auto-detects Forgejo URL from GITHUB_SERVER_URL; parses PR number from the Actions event JSON file
  • load_config() updated to call _detect_ci_context() instead of reading CI_* vars directly
  • 5 new tests in tests/test_config_ci_context.py
  • New docs page deploying-on-forgejo-actions.md; updated index.md, mkdocs.yml, reference/configuration.md, README.md, CLAUDE.md
  • Ticked completed items in Improvements.md

Closes #39

Adds native Forgejo/GitHub Actions support via `action.yml` and CI context auto-detection. ## Changes - `action.yml` at the repo root — wraps `docker://codeberg.org/marvin8/wuming:latest` so consumers can reference WuMing via `uses: marvin8/wuming@main` - `CIContext` frozen dataclass in `config.py` carrying the five CI-derived values - `_detect_ci_context()` — reads Woodpecker vars first, falls back to `GITHUB_*` vars; auto-detects Forgejo URL from `GITHUB_SERVER_URL`; parses PR number from the Actions event JSON file - `load_config()` updated to call `_detect_ci_context()` instead of reading `CI_*` vars directly - 5 new tests in `tests/test_config_ci_context.py` - New docs page `deploying-on-forgejo-actions.md`; updated `index.md`, `mkdocs.yml`, `reference/configuration.md`, `README.md`, `CLAUDE.md` - Ticked completed items in `Improvements.md` Closes #39
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/wuming!40
No description provided.