Skip to content

feat: implement pull command and add PyPI release workflow - #1

Merged
CameronBrooks11 merged 2 commits into
mainfrom
feat/pull-and-release
Oct 21, 2026
Merged

CameronBrooks11 merged 2 commits into
mainfrom
feat/pull-and-release

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

What

First functional slice plus the release path.

  • pull — fetch one or more MediaWiki pages to local .wiki files and
    record each page's baseline revision in .wikisync/manifest.json, so a later
    status/push can compare against what was pulled. Default host is
    www.appropedia.org; --host, --path, and --dir override it. The fetch
    step is injected into pull(), so the core logic is unit-tested without a
    network. status and push remain honest stubs (exit 2).
  • Release workflow — publishes to PyPI on a v* tag via OIDC trusted
    publishing, using the pypi GitHub environment. No API token is stored.
  • Ignore local .claude/ and .mcp.json agent state; exclude .claude from
    ruff.

Verification

  • just check (ruff format + lint + pyright) and just test both green;
    12 tests, all offline and deterministic.
  • Live read-only smoke test against Appropedia: pulling "Welcome to Appropedia"
    wrote 7726 bytes of wikitext and recorded revid 1264646 in the manifest.

Not in this PR

  • status / push (push needs auth — a bot password or OAuth — and writes to a
    live public wiki, so it will be gated behind explicit confirmation).
  • No release is cut here; tagging v0.1.0 is a separate, deliberate step.

Publishes to PyPI on a v* tag via OIDC trusted publishing, using the
pypi GitHub environment. No API token is stored.
Fetch one or more MediaWiki pages (default host www.appropedia.org) to
local .wiki files via mwclient, and record each page's baseline revision
in .wikisync/manifest.json so a later status/push can compare against it.
The fetch step is injected, so the logic is unit-tested without a network.

Also ignore local .claude/.mcp.json agent state and skip .claude in ruff.
@CameronBrooks11
CameronBrooks11 merged commit 44d68e5 into main Oct 21, 2026
6 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/pull-and-release branch October 21, 2026 19:35
CameronBrooks11 added a commit that referenced this pull request Nov 11, 2026
CodeQL's first run on this repo raised 5 medium
`actions/missing-workflow-permissions` alerts (#1-#5), one per job in
`.github/workflows/check.yml`, because the workflow declares no
`permissions:` block.

The repo's default workflow token is already `read` (`GET
repos/CameronBrooks11/wikisync/actions/permissions/workflow` →
`"default_workflow_permissions":"read"`), so this pins that in the file
rather than changing behaviour. `pull-requests: read` covers
`dorny/paths-filter`, which lists a PR's changed files through the API.

This PR's own run exercises the `pull_request` path of `paths-filter`
under the new permissions; the alerts should close on the next CodeQL
run after merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant