diff --git a/.github/workflows/pony-lint.yml b/.github/workflows/pony-lint.yml index 5e4e20b..8ddec33 100644 --- a/.github/workflows/pony-lint.yml +++ b/.github/workflows/pony-lint.yml @@ -17,7 +17,7 @@ jobs: name: Lint Pony source runs-on: ubuntu-latest container: - image: ghcr.io/ponylang/shared-docker-ci-standard-builder:release + image: ghcr.io/ponylang/shared-docker-ci-standard-builder:nightly steps: - uses: actions/checkout@v6.0.2 - name: Lint diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 803871b..d10f1f4 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -21,7 +21,7 @@ jobs: name: Test against recent ponyc release on Linux runs-on: ubuntu-latest container: - image: ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.3.3:release + image: ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.3.3:nightly steps: - uses: actions/checkout@v6.0.2 - name: Test diff --git a/README.md b/README.md index 330d185..49856c0 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Additional API surface and functionality will be added as needed. If you need fu ## Installation -* Requires ponyc 0.78.0 or later. +* Requires ponyc 0.79.0 or later. * Install [corral](https://github.com/ponylang/corral) * `corral add github.com/ponylang/github_rest_api.git --version 0.15.0` * `corral fetch` to fetch your dependencies diff --git a/examples/create-gist-oo/main.pony b/examples/create-gist-oo/main.pony index acce1fe..f6cbc2d 100644 --- a/examples/create-gist-oo/main.pony +++ b/examples/create-gist-oo/main.pony @@ -13,21 +13,21 @@ actor Main [ OptionSpec.string( "filename", - "Name of the file to create") + "Name of the file to create")? OptionSpec.string( "content", - "Content of the file") + "Content of the file")? OptionSpec.string( "description", "Description of the gist" - where default' = "") + where default' = "")? OptionSpec.bool( "public", "Whether the gist should be public" - where default' = false) + where default' = false)? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/create-gist/main.pony b/examples/create-gist/main.pony index 57e0dc0..974f39d 100644 --- a/examples/create-gist/main.pony +++ b/examples/create-gist/main.pony @@ -13,21 +13,21 @@ actor Main [ OptionSpec.string( "filename", - "Name of the file to create") + "Name of the file to create")? OptionSpec.string( "content", - "Content of the file") + "Content of the file")? OptionSpec.string( "description", "Description of the gist" - where default' = "") + where default' = "")? OptionSpec.bool( "public", "Whether the gist should be public" - where default' = false) + where default' = false)? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/create-issue-comment-oo/main.pony b/examples/create-issue-comment-oo/main.pony index 8963c62..c18172f 100644 --- a/examples/create-issue-comment-oo/main.pony +++ b/examples/create-issue-comment-oo/main.pony @@ -14,17 +14,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") - OptionSpec.i64("issue", "Issue number") + "Name of the repository")? + OptionSpec.i64("issue", "Issue number")? OptionSpec.string( "comment", - "Comment to add to the issue") + "Comment to add to the issue")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/create-issue-comment/main.pony b/examples/create-issue-comment/main.pony index 127fe62..c9dac68 100644 --- a/examples/create-issue-comment/main.pony +++ b/examples/create-issue-comment/main.pony @@ -13,17 +13,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") - OptionSpec.i64("issue", "Issue number") + "Name of the repository")? + OptionSpec.i64("issue", "Issue number")? OptionSpec.string( "comment", - "Comment to add to the issue") + "Comment to add to the issue")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/create-label-oo/main.pony b/examples/create-label-oo/main.pony index 6c9faae..0aeb05f 100644 --- a/examples/create-label-oo/main.pony +++ b/examples/create-label-oo/main.pony @@ -14,18 +14,18 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") - OptionSpec.string("name", "Label name") - OptionSpec.string("color", "Label color") + "Name of the repository")? + OptionSpec.string("name", "Label name")? + OptionSpec.string("color", "Label color")? OptionSpec.string( "description", - "Label description") + "Label description")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/create-label/main.pony b/examples/create-label/main.pony index da595d6..eb191cd 100644 --- a/examples/create-label/main.pony +++ b/examples/create-label/main.pony @@ -13,18 +13,18 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") - OptionSpec.string("name", "Label name") - OptionSpec.string("color", "Label color") + "Name of the repository")? + OptionSpec.string("name", "Label name")? + OptionSpec.string("color", "Label color")? OptionSpec.string( "description", - "Label description") + "Label description")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/create-release-oo/main.pony b/examples/create-release-oo/main.pony index b9adf4a..5bf0529 100644 --- a/examples/create-release-oo/main.pony +++ b/examples/create-release-oo/main.pony @@ -14,16 +14,16 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") - OptionSpec.string("tag", "Tag for release") - OptionSpec.string("name", "Release name") - OptionSpec.string("body", "Release notes") + "Name of the repository")? + OptionSpec.string("tag", "Tag for release")? + OptionSpec.string("name", "Release name")? + OptionSpec.string("body", "Release notes")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/create-release/main.pony b/examples/create-release/main.pony index 88f5a7e..4cfffa9 100644 --- a/examples/create-release/main.pony +++ b/examples/create-release/main.pony @@ -13,16 +13,16 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") - OptionSpec.string("tag", "Tag for release") - OptionSpec.string("name", "Release name") - OptionSpec.string("body", "Release notes") + "Name of the repository")? + OptionSpec.string("tag", "Tag for release")? + OptionSpec.string("name", "Release name")? + OptionSpec.string("body", "Release notes")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/delete-label-oo/main.pony b/examples/delete-label-oo/main.pony index bafad45..eee98ef 100644 --- a/examples/delete-label-oo/main.pony +++ b/examples/delete-label-oo/main.pony @@ -14,16 +14,16 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "name", - "Name of the label to delete") + "Name of the label to delete")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/delete-label/main.pony b/examples/delete-label/main.pony index a1d7ba6..4d539d6 100644 --- a/examples/delete-label/main.pony +++ b/examples/delete-label/main.pony @@ -13,16 +13,16 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "name", - "Name of the label to delete") + "Name of the label to delete")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/get-commit-oo/main.pony b/examples/get-commit-oo/main.pony index b84989e..7b5fb61 100644 --- a/examples/get-commit-oo/main.pony +++ b/examples/get-commit-oo/main.pony @@ -14,17 +14,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "sha", - "Sha of the commit to retrieve") + "Sha of the commit to retrieve")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-commit/main.pony b/examples/get-commit/main.pony index a1981ec..fd0fd35 100644 --- a/examples/get-commit/main.pony +++ b/examples/get-commit/main.pony @@ -13,17 +13,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "sha", - "Sha of the commit to retrieve") + "Sha of the commit to retrieve")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-gist-oo/main.pony b/examples/get-gist-oo/main.pony index 7fc9619..49a5df2 100644 --- a/examples/get-gist-oo/main.pony +++ b/examples/get-gist-oo/main.pony @@ -13,11 +13,11 @@ actor Main [ OptionSpec.string( "gist-id", - "ID of the gist to fetch") + "ID of the gist to fetch")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-gist/main.pony b/examples/get-gist/main.pony index 4f4cf60..8d70456 100644 --- a/examples/get-gist/main.pony +++ b/examples/get-gist/main.pony @@ -13,11 +13,11 @@ actor Main [ OptionSpec.string( "gist-id", - "ID of the gist to fetch") + "ID of the gist to fetch")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-issue-comments-oo/main.pony b/examples/get-issue-comments-oo/main.pony index d3c5339..a4672ab 100644 --- a/examples/get-issue-comments-oo/main.pony +++ b/examples/get-issue-comments-oo/main.pony @@ -14,17 +14,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository the issue is in") + "Owner of the repository the issue is in")? OptionSpec.string( "repo", - "Name of the repository the issue is in") + "Name of the repository the issue is in")? OptionSpec.i64( "issue", - "Issue number to get comments for") + "Issue number to get comments for")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-issue-comments/main.pony b/examples/get-issue-comments/main.pony index da7d3ea..0fbe916 100644 --- a/examples/get-issue-comments/main.pony +++ b/examples/get-issue-comments/main.pony @@ -13,17 +13,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository the issue is in") + "Owner of the repository the issue is in")? OptionSpec.string( "repo", - "Name of the repository the issue is in") + "Name of the repository the issue is in")? OptionSpec.i64( "issue", - "Issue number to get comments for") + "Issue number to get comments for")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-issue-oo/main.pony b/examples/get-issue-oo/main.pony index f0efbc1..a044757 100644 --- a/examples/get-issue-oo/main.pony +++ b/examples/get-issue-oo/main.pony @@ -14,17 +14,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository the issue is in") + "Owner of the repository the issue is in")? OptionSpec.string( "repo", - "Name of the repository the issue is in") + "Name of the repository the issue is in")? OptionSpec.i64( "issue", - "Issue number to retrieve") + "Issue number to retrieve")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-issue/main.pony b/examples/get-issue/main.pony index 9859bce..3817415 100644 --- a/examples/get-issue/main.pony +++ b/examples/get-issue/main.pony @@ -13,17 +13,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository the issue is in") + "Owner of the repository the issue is in")? OptionSpec.string( "repo", - "Name of the repository the issue is in") + "Name of the repository the issue is in")? OptionSpec.i64( "issue", - "Issue number to retrieve") + "Issue number to retrieve")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-issues-oo/main.pony b/examples/get-issues-oo/main.pony index b10a60e..af7d564 100644 --- a/examples/get-issues-oo/main.pony +++ b/examples/get-issues-oo/main.pony @@ -14,39 +14,39 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? OptionSpec.string( "labels", "Comma-separated label names to filter by" - where default' = "") + where default' = "")? OptionSpec.string( "state", "Issue state: open, closed, or all" - where default' = "open") + where default' = "open")? OptionSpec.string( "sort", "Sort field: created, updated, or comments" - where default' = "created") + where default' = "created")? OptionSpec.string( "direction", "Sort direction: asc or desc" - where default' = "desc") + where default' = "desc")? OptionSpec.string( "since", "Only issues updated at or after " + "this ISO 8601 timestamp" - where default' = "") + where default' = "")? OptionSpec.i64( "per-page", "Results per page (1-100, default 30)" - where default' = 0) + where default' = 0)? ] )? .> add_help()? diff --git a/examples/get-issues/main.pony b/examples/get-issues/main.pony index 21c1b6c..22d1435 100644 --- a/examples/get-issues/main.pony +++ b/examples/get-issues/main.pony @@ -14,39 +14,39 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? OptionSpec.string( "labels", "Comma-separated label names to filter by" - where default' = "") + where default' = "")? OptionSpec.string( "state", "Issue state: open, closed, or all" - where default' = "open") + where default' = "open")? OptionSpec.string( "sort", "Sort field: created, updated, or comments" - where default' = "created") + where default' = "created")? OptionSpec.string( "direction", "Sort direction: asc or desc" - where default' = "desc") + where default' = "desc")? OptionSpec.string( "since", "Only issues updated at or after " + "this ISO 8601 timestamp" - where default' = "") + where default' = "")? OptionSpec.i64( "per-page", "Results per page (1-100, default 30)" - where default' = 0) + where default' = 0)? ] )? .> add_help()? diff --git a/examples/get-pull-request-files-oo/main.pony b/examples/get-pull-request-files-oo/main.pony index 86bcba4..e336db9 100644 --- a/examples/get-pull-request-files-oo/main.pony +++ b/examples/get-pull-request-files-oo/main.pony @@ -14,17 +14,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.i64( "pr", - "Pull request number to get files for") + "Pull request number to get files for")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-pull-request-files/main.pony b/examples/get-pull-request-files/main.pony index cb9bb2e..b2f4b0f 100644 --- a/examples/get-pull-request-files/main.pony +++ b/examples/get-pull-request-files/main.pony @@ -13,17 +13,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.i64( "pr", - "Pull request number to get files for") + "Pull request number to get files for")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-pull-request-oo/main.pony b/examples/get-pull-request-oo/main.pony index fa3d9cf..4325358 100644 --- a/examples/get-pull-request-oo/main.pony +++ b/examples/get-pull-request-oo/main.pony @@ -14,17 +14,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.i64( "pr", - "Pull request number to retrieve") + "Pull request number to retrieve")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-pull-request/main.pony b/examples/get-pull-request/main.pony index 7aedefa..eeaba28 100644 --- a/examples/get-pull-request/main.pony +++ b/examples/get-pull-request/main.pony @@ -13,17 +13,17 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.i64( "pr", - "Pull request number to retrieve") + "Pull request number to retrieve")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-repository-labels/main.pony b/examples/get-repository-labels/main.pony index 298114b..64f65ab 100644 --- a/examples/get-repository-labels/main.pony +++ b/examples/get-repository-labels/main.pony @@ -14,14 +14,14 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-repository-oo/main.pony b/examples/get-repository-oo/main.pony index 5a1b69a..9800ae8 100644 --- a/examples/get-repository-oo/main.pony +++ b/examples/get-repository-oo/main.pony @@ -13,14 +13,14 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/get-repository/main.pony b/examples/get-repository/main.pony index c448e9d..23cce8f 100644 --- a/examples/get-repository/main.pony +++ b/examples/get-repository/main.pony @@ -13,14 +13,14 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/gist-comments-oo/main.pony b/examples/gist-comments-oo/main.pony index 6806a33..97625df 100644 --- a/examples/gist-comments-oo/main.pony +++ b/examples/gist-comments-oo/main.pony @@ -14,11 +14,11 @@ actor Main [ OptionSpec.string( "gist-id", - "ID of the gist") + "ID of the gist")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/gist-comments/main.pony b/examples/gist-comments/main.pony index e615fff..cd48a0a 100644 --- a/examples/gist-comments/main.pony +++ b/examples/gist-comments/main.pony @@ -14,11 +14,11 @@ actor Main [ OptionSpec.string( "gist-id", - "ID of the gist") + "ID of the gist")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/list-gists-oo/main.pony b/examples/list-gists-oo/main.pony index b87330d..4771995 100644 --- a/examples/list-gists-oo/main.pony +++ b/examples/list-gists-oo/main.pony @@ -14,7 +14,7 @@ actor Main [ OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/list-gists/main.pony b/examples/list-gists/main.pony index 125cf53..707b943 100644 --- a/examples/list-gists/main.pony +++ b/examples/list-gists/main.pony @@ -14,7 +14,7 @@ actor Main [ OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/search-issues/main.pony b/examples/search-issues/main.pony index f9333e4..3daf694 100644 --- a/examples/search-issues/main.pony +++ b/examples/search-issues/main.pony @@ -14,11 +14,11 @@ actor Main [ OptionSpec.string( "query", - "Query string") + "Query string")? OptionSpec.string( "token", "GitHub personal access token" - where default' = "") + where default' = "")? ] )? .> add_help()? diff --git a/examples/standard-pony-labels/main.pony b/examples/standard-pony-labels/main.pony index e1b3e15..c37d28f 100644 --- a/examples/standard-pony-labels/main.pony +++ b/examples/standard-pony-labels/main.pony @@ -14,13 +14,13 @@ actor Main [ OptionSpec.string( "owner", - "Owner of the repository") + "Owner of the repository")? OptionSpec.string( "repo", - "Name of the repository") + "Name of the repository")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/star-gist-oo/main.pony b/examples/star-gist-oo/main.pony index 460179a..87965aa 100644 --- a/examples/star-gist-oo/main.pony +++ b/examples/star-gist-oo/main.pony @@ -14,10 +14,10 @@ actor Main [ OptionSpec.string( "gist-id", - "ID of the gist to star") + "ID of the gist to star")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()? diff --git a/examples/star-gist/main.pony b/examples/star-gist/main.pony index b864515..ae0c9c1 100644 --- a/examples/star-gist/main.pony +++ b/examples/star-gist/main.pony @@ -14,10 +14,10 @@ actor Main [ OptionSpec.string( "gist-id", - "ID of the gist to star") + "ID of the gist to star")? OptionSpec.string( "token", - "GitHub personal access token") + "GitHub personal access token")? ] )? .> add_help()?