mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-13 08:21:20 +00:00
Compare commits
6 Commits
github-api
...
github-api
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3dae361d7b | ||
|
|
967831388e | ||
|
|
f9794f20d4 | ||
|
|
f98efd6af0 | ||
|
|
69bf0641f8 | ||
|
|
5791843d16 |
18
pom.xml
18
pom.xml
@@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.kohsuke</groupId>
|
<groupId>org.kohsuke</groupId>
|
||||||
<artifactId>github-api</artifactId>
|
<artifactId>github-api</artifactId>
|
||||||
<version>1.102</version>
|
<version>1.103</version>
|
||||||
<name>GitHub API for Java</name>
|
<name>GitHub API for Java</name>
|
||||||
<url>https://github-api.kohsuke.org/</url>
|
<url>https://github-api.kohsuke.org/</url>
|
||||||
<description>GitHub API for Java</description>
|
<description>GitHub API for Java</description>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<connection>scm:git:git@github.com/github-api/${project.artifactId}.git</connection>
|
<connection>scm:git:git@github.com/github-api/${project.artifactId}.git</connection>
|
||||||
<developerConnection>scm:git:ssh://git@github.com/github-api/${project.artifactId}.git</developerConnection>
|
<developerConnection>scm:git:ssh://git@github.com/github-api/${project.artifactId}.git</developerConnection>
|
||||||
<url>https://${project.artifactId}.kohsuke.org/</url>
|
<url>https://${project.artifactId}.kohsuke.org/</url>
|
||||||
<tag>github-api-1.102</tag>
|
<tag>github-api-1.103</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
@@ -85,11 +85,22 @@
|
|||||||
<version>3.2.1</version>
|
<version>3.2.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
<id>shaded-jar</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>shade</goal>
|
<goal>shade</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<relocations>
|
||||||
|
<relocation>
|
||||||
|
<pattern>com.fasterxml.jackson</pattern>
|
||||||
|
<shadedPattern>hidden.com.fasterxml.jackson</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
<relocation>
|
||||||
|
<pattern>org.apache</pattern>
|
||||||
|
<shadedPattern>hidden.org.apache</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
</relocations>
|
||||||
<artifactSet>
|
<artifactSet>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>com.infradna.tool:bridge-method-annotation</exclude>
|
<exclude>com.infradna.tool:bridge-method-annotation</exclude>
|
||||||
@@ -100,6 +111,7 @@
|
|||||||
<exclude>com.google.code.findbugs:*</exclude>
|
<exclude>com.google.code.findbugs:*</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</artifactSet>
|
</artifactSet>
|
||||||
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||||||
<filters>
|
<filters>
|
||||||
<filter>
|
<filter>
|
||||||
<artifact>*:*</artifact>
|
<artifact>*:*</artifact>
|
||||||
@@ -538,7 +550,7 @@
|
|||||||
<groupId>com.github.spotbugs</groupId>
|
<groupId>com.github.spotbugs</groupId>
|
||||||
<artifactId>spotbugs-annotations</artifactId>
|
<artifactId>spotbugs-annotations</artifactId>
|
||||||
<version>${spotbugs.version}</version>
|
<version>${spotbugs.version}</version>
|
||||||
<optional>true</optional>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.tomakehurst</groupId>
|
<groupId>com.github.tomakehurst</groupId>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ GitHub github = GitHub.connect();
|
|||||||
|
|
||||||
GHRepository repo = github.createRepository(
|
GHRepository repo = github.createRepository(
|
||||||
"new-repository","this is my new repository",
|
"new-repository","this is my new repository",
|
||||||
"http://www.kohsuke.org/",true/*public*/);
|
"https://www.kohsuke.org/",true/*public*/);
|
||||||
repo.addCollaborators(github.getUser("abayer"),github.getUser("rtyler"));
|
repo.addCollaborators(github.getUser("abayer"),github.getUser("rtyler"));
|
||||||
repo.delete();
|
repo.delete();
|
||||||
+-----+
|
+-----+
|
||||||
@@ -139,10 +139,10 @@ GitHub github = GitHubBuilder.fromEnvironment().build();
|
|||||||
Pluggable HTTP client
|
Pluggable HTTP client
|
||||||
|
|
||||||
This library comes with a pluggable connector to use different HTTP client implementations
|
This library comes with a pluggable connector to use different HTTP client implementations
|
||||||
through <<<HttpConnector>>>. In particular, this means you can use {{{http://square.github.io/okhttp/}OkHttp}},
|
through <<<HttpConnector>>>. In particular, this means you can use {{{https://square.github.io/okhttp/}OkHttp}},
|
||||||
so we can make use of it's HTTP response cache.
|
so we can make use of it's HTTP response cache.
|
||||||
Making a conditional request against the GitHub API and receiving a 304 response
|
Making a conditional request against the GitHub API and receiving a 304 response
|
||||||
{{{http://developer.github.com/v3/#conditional-requests}does not count against the rate limit}}.
|
{{{https://developer.github.com/v3/#conditional-requests}does not count against the rate limit}}.
|
||||||
|
|
||||||
The following code shows an example of how to set up persistent cache on the disk:
|
The following code shows an example of how to set up persistent cache on the disk:
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<project name="GitHub API for Java">
|
<project name="GitHub API for Java">
|
||||||
<bannerLeft>
|
<bannerLeft>
|
||||||
<name>GitHub API for Java</name>
|
<name>GitHub API for Java</name>
|
||||||
<href>http://github-api.kohsuke.org/</href>
|
<href>https://github-api.kohsuke.org/</href>
|
||||||
</bannerLeft>
|
</bannerLeft>
|
||||||
<skin>
|
<skin>
|
||||||
<groupId>org.kohsuke</groupId>
|
<groupId>org.kohsuke</groupId>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<menu name="Git Hub API for Java">
|
<menu name="Git Hub API for Java">
|
||||||
<item name="Introduction" href="/index.html"/>
|
<item name="Introduction" href="/index.html"/>
|
||||||
<item name="Download" href="http://mvnrepository.com/artifact/${project.groupId}/${project.artifactId}"/>
|
<item name="Download" href="https://mvnrepository.com/artifact/${project.groupId}/${project.artifactId}"/>
|
||||||
<item name="Source code" href="https://github.com/github-api/${project.artifactId}"/>
|
<item name="Source code" href="https://github.com/github-api/${project.artifactId}"/>
|
||||||
<item name="Mailing List" href="https://groups.google.com/forum/#!forum/github-api"/>
|
<item name="Mailing List" href="https://groups.google.com/forum/#!forum/github-api"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user