Skip to content

Add full Gist API support#72

Merged
SeanTAllen merged 1 commit intomainfrom
add-gist-api-support
Feb 28, 2026
Merged

Add full Gist API support#72
SeanTAllen merged 1 commit intomainfrom
add-gist-api-support

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

Implements complete coverage of the GitHub Gist API (20 endpoints) for #70.

New models: Gist, GistFile, GistFileEdit, GistFileRename, GistFileDelete, GistCommit, GistChangeStatus, GistComment.

15 gist operations (CRUD, 4 list variants, revision, fork, list forks, list commits, star/unstar/check star) and 5 gist comment operations (CRUD + list). All list operations support pagination.

3 new HTTP infrastructure classes close the documented PATCH/PUT gaps: HTTPPatch (PATCH expecting 200), HTTPPut (PUT expecting 204), HTTPCheck (GET returning Bool via 204/404).

10 new example programs (functional + OO pairs for get, create, list, comments, star) and an examples/README.md covering all 33 examples.

Implements complete coverage of the GitHub Gist API (20 endpoints)
requested in #70 for an upcoming ponylang org project.

New models: Gist, GistFile, GistFileEdit, GistFileRename,
GistFileDelete, GistCommit, GistChangeStatus, GistComment.

15 gist operations: GetGist, CreateGist, UpdateGist, DeleteGist,
GetUserGists, GetPublicGists, GetStarredGists, GetUsernameGists,
GetGistRevision, ForkGist, GetGistForks, GetGistCommits, StarGist,
UnstarGist, CheckGistStar.

5 gist comment operations: GetGistComment, GetGistComments,
CreateGistComment, UpdateGistComment, DeleteGistComment.

3 new HTTP infrastructure classes: HTTPPatch (PATCH expecting 200),
HTTPPut (PUT expecting 204), HTTPCheck (GET returning Bool via
204/404 status codes). These close the documented PATCH/PUT
infrastructure gaps.

Closes #70
@SeanTAllen SeanTAllen added the changelog - added Automatically add "Added" CHANGELOG entry on merge label Feb 28, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 28, 2026
@SeanTAllen SeanTAllen merged commit 036a8d0 into main Feb 28, 2026
11 checks passed
@SeanTAllen SeanTAllen deleted the add-gist-api-support branch February 28, 2026 16:13
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Feb 28, 2026
github-actions bot pushed a commit that referenced this pull request Feb 28, 2026
github-actions bot pushed a commit that referenced this pull request Feb 28, 2026
SeanTAllen added a commit that referenced this pull request Feb 28, 2026
PR #72 (gist API) added docstrings to all new public types and methods,
leaving the pre-existing API undocumented. This adds docstrings to all
pre-existing public classes, primitives, actors, and their public methods
to bring the entire library to a consistent documentation standard.

Also replaces the placeholder package docstring with a proper overview
that guides users to the GitHub entry point and explains the
Promise-based return pattern.

The request/ subpackage is excluded — it's intended to be extracted
to its own library and will be documented separately.

Closes #74
SeanTAllen added a commit that referenced this pull request Feb 28, 2026
PR #72 (gist API) added docstrings to all new public types and methods,
leaving the pre-existing API undocumented. This adds docstrings to all
pre-existing public classes, primitives, actors, and their public methods
to bring the entire library to a consistent documentation standard.

Also replaces the placeholder package docstring with a proper overview
that guides users to the GitHub entry point and explains the
Promise-based return pattern.

The request/ subpackage is excluded — it's intended to be extracted
to its own library and will be documented separately.

Closes #74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog - added Automatically add "Added" CHANGELOG entry on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants