Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Generated GitHub Java Client

License

NotificationsYou must be signed in to change notification settings

pulpogato/pulpogato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pulpogato is a java client for GitHub.

Coveralls GitHub commits since latest release

Usage

For releases, use mavenCentral.

https://repo.maven.apache.org/maven2/

For snapshots, use this url.

https://central.sonatype.com/repository/maven-snapshots/

The maven group id isio.github.pulpogato.

The maven artifact id ispulpogato-<api-type>-<gh-version>.

Theapi-type is one ofgraphql orrest.

Thegh-version is one ofghec,fpt, orghes-<GHES-version>.

Example in a gradle kotlin build script
ext {    set("netflixDgsVersion","9.1.2")    set("ghesVersion","fpt")    set("pulpogatoVersion","0.2.0")}dependencies {    implementation("io.github.pulpogato:pulpogato-rest-${property("ghesVersion")}:${property("pulpogatoVersion")}")    implementation("io.github.pulpogato:pulpogato-graphql-${property("ghesVersion")}:${property("pulpogatoVersion")}")}dependencyManagement {    imports {        mavenBom("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:${property("netflixDgsVersion")}")    }}

Development

Install JDK 21 first.

To get the rest schemas, installbun.The gradle build will use bun to download schemas.

To build, run./gradlew build.If you have low memory or CPU, you can customize parallelism with--max-workers.

Automatically generated tests

When the REST schema contains examples, they are automatically converted to tests in the generated test sources directory.

REST API tests

To contribute a test for the REST API:

  1. Write a test like the ones inUserApiIntegrationTest.

  2. Then set up the environment variableGITHUB_TOKEN.

  3. If you’re running a test against a GitHub Enterprise instance, set upGITHUB_HOST andGITHUB_PORT as well.

  4. Run a command like./gradlew :pulpogato-rest-fpt:test --tests AppsApiIntegrationTest.

  5. That generates a yaml file insrc/test/resources. If it needs cleaning up for sensitive data, do so.

REST Webhook tests

To contribute a Webhook test:

  1. Capture the HTTP request from the webhook using any tool. If you’re looking at public data, something like RequestBin is useful.

  2. Clean up the data and place it inpulpogato-rest-tests/src/main/resources/webhooks/ under the right directory based on thex-github-event header.

  3. Verify the tests work.


[8]ページ先頭

©2009-2025 Movatter.jp