Repository navigation
feat: implement pull command and add PyPI release workflow - #1
Merged
Merged
Conversation
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
First functional slice plus the release path.
pull— fetch one or more MediaWiki pages to local.wikifiles andrecord each page's baseline revision in
.wikisync/manifest.json, so a laterstatus/pushcan compare against what was pulled. Default host iswww.appropedia.org;--host,--path, and--diroverride it. The fetchstep is injected into
pull(), so the core logic is unit-tested without anetwork.
statusandpushremain honest stubs (exit 2).v*tag via OIDC trustedpublishing, using the
pypiGitHub environment. No API token is stored..claude/and.mcp.jsonagent state; exclude.claudefromruff.
Verification
just check(ruff format + lint + pyright) andjust testboth green;12 tests, all offline and deterministic.
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 alive public wiki, so it will be gated behind explicit confirmation).
v0.1.0is a separate, deliberate step.