mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-11 00:11:25 +00:00
Compare commits
144 Commits
github-api
...
github-api
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e92f1321d4 | ||
|
|
208904b634 | ||
|
|
a433bcda2e | ||
|
|
77baafa643 | ||
|
|
224d8c7cb4 | ||
|
|
0feb520549 | ||
|
|
ca365b12f6 | ||
|
|
bde6ad9a06 | ||
|
|
4953f4500d | ||
|
|
4415ac8fd2 | ||
|
|
8c81e48a31 | ||
|
|
9ad0329c56 | ||
|
|
78f533bbfc | ||
|
|
79c7dd9ecf | ||
|
|
5d796d1f79 | ||
|
|
68a82be6c4 | ||
|
|
2676ef2b73 | ||
|
|
04b283c539 | ||
|
|
98b067937a | ||
|
|
8ababb60bf | ||
|
|
b51d655f77 | ||
|
|
74496d32da | ||
|
|
316e278be1 | ||
|
|
d881bf6504 | ||
|
|
c74fbbe1fd | ||
|
|
929d9fb7bd | ||
|
|
5d069d0531 | ||
|
|
dd9e6dc5d3 | ||
|
|
d22c77c41d | ||
|
|
3a11b7ccbf | ||
|
|
9d161b28bb | ||
|
|
9b16a1caa0 | ||
|
|
9a918e3bac | ||
|
|
d4c5c6a1e0 | ||
|
|
63fda3555c | ||
|
|
6a2381c06b | ||
|
|
e9c0a16c26 | ||
|
|
2101a67ac1 | ||
|
|
ddac568aaa | ||
|
|
262ae9f635 | ||
|
|
381502fb80 | ||
|
|
92fb441eb2 | ||
|
|
29e08037a8 | ||
|
|
84cc6d9315 | ||
|
|
b8d5a1c732 | ||
|
|
0197ab9661 | ||
|
|
b7915e61a6 | ||
|
|
586db99450 | ||
|
|
5377d0dd18 | ||
|
|
c5d3a7d573 | ||
|
|
8267050f06 | ||
|
|
c21bd5765a | ||
|
|
b78c37a695 | ||
|
|
2f151d45c3 | ||
|
|
3ebe3afdbd | ||
|
|
f4845df6c0 | ||
|
|
272b87f04d | ||
|
|
6e3f754366 | ||
|
|
6360112432 | ||
|
|
f1ca0b5417 | ||
|
|
0894c8007c | ||
|
|
0456f10709 | ||
|
|
b7d03f7463 | ||
|
|
07a392c2a7 | ||
|
|
5b69de770f | ||
|
|
bf67069768 | ||
|
|
91764c1c74 | ||
|
|
8b2a3e1221 | ||
|
|
def2f0b37d | ||
|
|
5d7479a3dd | ||
|
|
ceb2d35f9f | ||
|
|
fc38dba59a | ||
|
|
75b383d398 | ||
|
|
ee2d9491fb | ||
|
|
bf86a7c75a | ||
|
|
70f6d129e2 | ||
|
|
a4ac2aa99a | ||
|
|
ae3b6fbe6b | ||
|
|
e357fca963 | ||
|
|
c84cc89805 | ||
|
|
181238cd50 | ||
|
|
214c24c736 | ||
|
|
cf51ce8f26 | ||
|
|
2b7ed40d01 | ||
|
|
349ef7a54c | ||
|
|
94df5fc389 | ||
|
|
906238a297 | ||
|
|
7963fa82b5 | ||
|
|
1aba6012fb | ||
|
|
ff4324ac67 | ||
|
|
11bc669e1d | ||
|
|
dcf26d58e4 | ||
|
|
4d46872c35 | ||
|
|
4f0d62f421 | ||
|
|
f7ad1f517b | ||
|
|
345d6197f3 | ||
|
|
bb4d44138a | ||
|
|
a8ef0cde53 | ||
|
|
77dc009c95 | ||
|
|
aa298c93cc | ||
|
|
dfb0a5240e | ||
|
|
9cfc3c22b5 | ||
|
|
b177d98e29 | ||
|
|
5405fb0370 | ||
|
|
72a1c24b3b | ||
|
|
f146ae94ec | ||
|
|
a0bbba748a | ||
|
|
81bf818573 | ||
|
|
d5913dc292 | ||
|
|
e1e901b794 | ||
|
|
2f2f26767e | ||
|
|
bffa78c1b8 | ||
|
|
c55719c67a | ||
|
|
cb3b4a6642 | ||
|
|
92c141cee6 | ||
|
|
fd1a1a1c23 | ||
|
|
b835884b2e | ||
|
|
660763908d | ||
|
|
fe8bdb755a | ||
|
|
67dc6d2d23 | ||
|
|
9c8d73cbe2 | ||
|
|
5db97d92dd | ||
|
|
ac470dddb5 | ||
|
|
43063fe8ce | ||
|
|
59e0046c1e | ||
|
|
36ab05c265 | ||
|
|
2b2be05dae | ||
|
|
fb1adbd1ef | ||
|
|
ab68a59b25 | ||
|
|
9c7de767e9 | ||
|
|
8ba5cf7c2e | ||
|
|
b194a19b98 | ||
|
|
1d344b016f | ||
|
|
474f3ef4ca | ||
|
|
9830927020 | ||
|
|
727932a442 | ||
|
|
cd92b51845 | ||
|
|
fe26d16411 | ||
|
|
d68c66ce2b | ||
|
|
e7bfbfb48f | ||
|
|
f2a88ae61c | ||
|
|
e2113f6ee5 | ||
|
|
3867224024 | ||
|
|
9ee0bf43bc |
4
.github/dependabot.yml
vendored
4
.github/dependabot.yml
vendored
@@ -3,10 +3,10 @@ updates:
|
||||
- package-ecosystem: "maven"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
interval: "monthly"
|
||||
time: "02:00"
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
interval: "monthly"
|
||||
time: "02:00"
|
||||
|
||||
3
.github/release-drafter.yml
vendored
3
.github/release-drafter.yml
vendored
@@ -1,5 +1,6 @@
|
||||
name-template: 'v$NEXT_PATCH_VERSION 🌈'
|
||||
name-template: 'v$NEXT_MINOR_VERSION 🌈'
|
||||
tag-template: 'github-api-$NEXT_MINOR_VERSION'
|
||||
version-template: '$MAJOR.$MINOR'
|
||||
categories:
|
||||
- title: '🚀 Features'
|
||||
labels:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
For changes after v1.101 see the [GitHub Releases page](https://github.com/hub4j/github-api/releases) for the project.
|
||||
|
||||
## [github-api-1.101](https://github.com/hub4j/github-api/tree/github-api-1.101) (2019-11-27)
|
||||
|
||||
[Full Changelog](https://github.com/hub4j/github-api/compare/github-api-1.100...github-api-1.101)
|
||||
|
||||
40
pom.xml
40
pom.xml
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.kohsuke</groupId>
|
||||
<artifactId>github-api</artifactId>
|
||||
<version>1.115</version>
|
||||
<version>1.117</version>
|
||||
<name>GitHub API for Java</name>
|
||||
<url>https://github-api.kohsuke.org/</url>
|
||||
<description>GitHub API for Java</description>
|
||||
@@ -11,7 +11,7 @@
|
||||
<connection>scm:git:git@github.com/hub4j/${project.artifactId}.git</connection>
|
||||
<developerConnection>scm:git:ssh://git@github.com/hub4j/${project.artifactId}.git</developerConnection>
|
||||
<url>https://github.com/hub4j/github-api/</url>
|
||||
<tag>github-api-1.115</tag>
|
||||
<tag>github-api-1.117</tag>
|
||||
</scm>
|
||||
|
||||
<distributionManagement>
|
||||
@@ -34,7 +34,7 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spotbugs-maven-plugin.version>4.0.4</spotbugs-maven-plugin.version>
|
||||
<spotbugs.version>4.0.6</spotbugs.version>
|
||||
<spotbugs.version>4.1.2</spotbugs.version>
|
||||
<spotbugs-maven-plugin.failOnError>true</spotbugs-maven-plugin.failOnError>
|
||||
<hamcrest.version>2.2</hamcrest.version>
|
||||
<okhttp3.version>4.4.1</okhttp3.version>
|
||||
@@ -100,7 +100,7 @@
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>0.8.5</version>
|
||||
<version>0.8.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
@@ -432,7 +432,7 @@
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13</version>
|
||||
<version>4.13.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -481,7 +481,25 @@
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jgit</groupId>
|
||||
<artifactId>org.eclipse.jgit</artifactId>
|
||||
<version>5.7.0.202003110725-r</version>
|
||||
<version>5.9.0.202009080501-r</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-api</artifactId>
|
||||
<version>0.11.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-impl</artifactId>
|
||||
<version>0.11.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-jackson</artifactId>
|
||||
<version>0.11.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -519,7 +537,7 @@
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-core</artifactId>
|
||||
<version>3.4.0</version>
|
||||
<version>3.6.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -531,7 +549,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.tomakehurst</groupId>
|
||||
<artifactId>wiremock-jre8-standalone</artifactId>
|
||||
<version>2.27.1</version>
|
||||
<version>2.27.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -540,6 +558,12 @@
|
||||
<version>2.8.6</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>1.7.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<repositories>
|
||||
<repository>
|
||||
|
||||
@@ -3,11 +3,13 @@ package org.kohsuke.github;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static org.kohsuke.github.Previews.GAMBIT;
|
||||
import static org.kohsuke.github.Previews.MACHINE_MAN;
|
||||
|
||||
/**
|
||||
* A Github App Installation.
|
||||
@@ -117,6 +119,36 @@ public class GHAppInstallation extends GHObject {
|
||||
return repositoriesUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* List repositories that this app installation can access.
|
||||
*
|
||||
* @return the paged iterable
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public PagedSearchIterable<GHRepository> listRepositories() {
|
||||
GitHubRequest request;
|
||||
|
||||
try {
|
||||
request = root.createRequest().withPreview(MACHINE_MAN).withUrlPath("/installation/repositories").build();
|
||||
} catch (MalformedURLException e) {
|
||||
throw new GHException("", e);
|
||||
}
|
||||
|
||||
return new PagedSearchIterable<>(root, request, GHAppInstallationRepositoryResult.class);
|
||||
}
|
||||
|
||||
private static class GHAppInstallationRepositoryResult extends SearchResult<GHRepository> {
|
||||
private GHRepository[] repositories;
|
||||
|
||||
@Override
|
||||
GHRepository[] getItems(GitHub root) {
|
||||
for (GHRepository item : repositories)
|
||||
item.wrap(root);
|
||||
return repositories;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets repositories url.
|
||||
*
|
||||
|
||||
@@ -9,6 +9,8 @@ import java.net.URL;
|
||||
import java.util.Collection;
|
||||
import java.util.Objects;
|
||||
|
||||
import javax.annotation.CheckForNull;
|
||||
|
||||
/**
|
||||
* A branch in a repository.
|
||||
*
|
||||
@@ -101,7 +103,11 @@ public class GHBranch {
|
||||
* the io exception
|
||||
*/
|
||||
public GHBranchProtection getProtection() throws IOException {
|
||||
return root.createRequest().setRawUrlPath(protection_url).fetch(GHBranchProtection.class).wrap(this);
|
||||
return root.createRequest()
|
||||
.withPreview(Previews.LUKE_CAGE)
|
||||
.setRawUrlPath(protection_url)
|
||||
.fetch(GHBranchProtection.class)
|
||||
.wrap(this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -161,6 +167,59 @@ public class GHBranch {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge a branch into this branch.
|
||||
*
|
||||
* @param headBranch
|
||||
* the branch whose head will be merged
|
||||
*
|
||||
* @param commitMessage
|
||||
* the commit message
|
||||
*
|
||||
* @return the merge {@link GHCommit} created, or {@code null} if the base already contains the head (nothing to
|
||||
* merge).
|
||||
*
|
||||
* @throws IOException
|
||||
* if merging fails
|
||||
*/
|
||||
@CheckForNull
|
||||
public GHCommit merge(GHBranch headBranch, String commitMessage) throws IOException {
|
||||
return merge(headBranch.getName(), commitMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge a ref into this branch.
|
||||
*
|
||||
* @param head
|
||||
* the ref name that will be merged into this branch. Follows the usual ref naming rules, could be a
|
||||
* branch name, tag, or commit sha.
|
||||
*
|
||||
* @param commitMessage
|
||||
* the commit message
|
||||
*
|
||||
* @return the merge {@link GHCommit} created, or {@code null} if the base already contains the head (nothing to
|
||||
* merge).
|
||||
*
|
||||
* @throws IOException
|
||||
* if merging fails
|
||||
*/
|
||||
@CheckForNull
|
||||
public GHCommit merge(String head, String commitMessage) throws IOException {
|
||||
GHCommit result = root.createRequest()
|
||||
.withUrlPath(owner.getApiTailUrl("merges"))
|
||||
.method("POST")
|
||||
.with("commit_message", commitMessage)
|
||||
.with("base", this.name)
|
||||
.with("head", head)
|
||||
.fetch(GHCommit.class);
|
||||
|
||||
if (result != null) {
|
||||
result.wrapUp(owner);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
String getApiRoute() {
|
||||
return owner.getApiTailUrl("/branches/" + name);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ import static org.kohsuke.github.Previews.ZZZAX;
|
||||
|
||||
/**
|
||||
* The type GHBranchProtection.
|
||||
*
|
||||
* @see <a href="https://docs.github.com/en/rest/reference/repos#get-branch-protection">GitHub Branch Protection</a>
|
||||
*/
|
||||
@SuppressFBWarnings(
|
||||
value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD",
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import edu.umd.cs.findbugs.annotations.NonNull;
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a check run.
|
||||
@@ -14,6 +19,8 @@ import java.util.Date;
|
||||
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" },
|
||||
justification = "JSON API")
|
||||
public class GHCheckRun extends GHObject {
|
||||
|
||||
@JsonProperty("repository")
|
||||
GHRepository owner;
|
||||
GitHub root;
|
||||
|
||||
@@ -34,7 +41,7 @@ public class GHCheckRun extends GHObject {
|
||||
|
||||
GHCheckRun wrap(GHRepository owner) {
|
||||
this.owner = owner;
|
||||
this.root = owner.root;
|
||||
wrap(owner.root);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -42,7 +49,24 @@ public class GHCheckRun extends GHObject {
|
||||
this.root = root;
|
||||
if (owner != null) {
|
||||
owner.wrap(root);
|
||||
if (pullRequests != null && pullRequests.length != 0) {
|
||||
for (GHPullRequest singlePull : pullRequests) {
|
||||
singlePull.wrap(owner);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (checkSuite != null) {
|
||||
if (owner != null) {
|
||||
checkSuite.wrap(owner);
|
||||
} else {
|
||||
checkSuite.wrap(root);
|
||||
}
|
||||
}
|
||||
if (app != null) {
|
||||
app.wrapUp(root);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -105,15 +129,22 @@ public class GHCheckRun extends GHObject {
|
||||
/**
|
||||
* Gets the pull requests participated in this check run.
|
||||
*
|
||||
* @return Pull requests of this check run
|
||||
* Note this field is only populated for events. When getting a {@link GHCheckRun} outside of an event, this is
|
||||
* always empty.
|
||||
*
|
||||
* @return the list of {@link GHPullRequest}s for this check run. Only populated for events.
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*/
|
||||
GHPullRequest[] getPullRequests() throws IOException {
|
||||
public List<GHPullRequest> getPullRequests() throws IOException {
|
||||
if (pullRequests != null && pullRequests.length != 0) {
|
||||
for (GHPullRequest singlePull : pullRequests) {
|
||||
singlePull.refresh();
|
||||
// Only refresh if we haven't do so before
|
||||
singlePull.refresh(singlePull.getTitle());
|
||||
}
|
||||
return Collections.unmodifiableList(Arrays.asList(pullRequests));
|
||||
}
|
||||
return pullRequests;
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -262,4 +293,15 @@ public class GHCheckRun extends GHObject {
|
||||
NOTICE, WARNING, FAILURE
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates this check run.
|
||||
*
|
||||
* @return a builder which you should customize, then call {@link GHCheckRunBuilder#create}
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public @NonNull GHCheckRunBuilder update() {
|
||||
return new GHCheckRunBuilder(owner, getId());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,30 +37,45 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Drafts a check run.
|
||||
* Drafts or updates a check run.
|
||||
*
|
||||
* @see GHCheckRun
|
||||
* @see GHRepository#createCheckRun
|
||||
* @see <a href="https://developer.github.com/v3/checks/runs/#create-a-check-run">documentation</a>
|
||||
* @see GHCheckRun#update()
|
||||
* @see <a href="https://developer.github.com/v3/checks/runs/#update-a-check-run">documentation</a>
|
||||
*/
|
||||
@SuppressFBWarnings(value = "URF_UNREAD_FIELD", justification = "Jackson serializes these even without a getter")
|
||||
@Preview
|
||||
@Deprecated
|
||||
public final class GHCheckRunBuilder {
|
||||
|
||||
private final GHRepository repo;
|
||||
private final Requester requester;
|
||||
protected final GHRepository repo;
|
||||
protected final Requester requester;
|
||||
private Output output;
|
||||
private List<Action> actions;
|
||||
|
||||
GHCheckRunBuilder(GHRepository repo, String name, String headSHA) {
|
||||
private GHCheckRunBuilder(GHRepository repo, Requester requester) {
|
||||
this.repo = repo;
|
||||
requester = repo.root.createRequest()
|
||||
.withPreview(Previews.ANTIOPE)
|
||||
.method("POST")
|
||||
.with("name", name)
|
||||
.with("head_sha", headSHA)
|
||||
.withUrlPath(repo.getApiTailUrl("check-runs"));
|
||||
this.requester = requester;
|
||||
}
|
||||
|
||||
GHCheckRunBuilder(GHRepository repo, String name, String headSHA) {
|
||||
this(repo,
|
||||
repo.root.createRequest()
|
||||
.withPreview(Previews.ANTIOPE)
|
||||
.method("POST")
|
||||
.with("name", name)
|
||||
.with("head_sha", headSHA)
|
||||
.withUrlPath(repo.getApiTailUrl("check-runs")));
|
||||
}
|
||||
|
||||
GHCheckRunBuilder(GHRepository repo, long checkId) {
|
||||
this(repo,
|
||||
repo.root.createRequest()
|
||||
.withPreview(Previews.ANTIOPE)
|
||||
.method("PATCH")
|
||||
.withUrlPath(repo.getApiTailUrl("check-runs/" + checkId)));
|
||||
}
|
||||
|
||||
public @NonNull GHCheckRunBuilder withDetailsURL(@CheckForNull String detailsURL) {
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a check suite.
|
||||
@@ -14,6 +18,8 @@ import java.util.Date;
|
||||
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" },
|
||||
justification = "JSON API")
|
||||
public class GHCheckSuite extends GHObject {
|
||||
|
||||
@JsonProperty("repository")
|
||||
GHRepository owner;
|
||||
GitHub root;
|
||||
|
||||
@@ -32,7 +38,7 @@ public class GHCheckSuite extends GHObject {
|
||||
|
||||
GHCheckSuite wrap(GHRepository owner) {
|
||||
this.owner = owner;
|
||||
this.root = owner.root;
|
||||
this.wrap(owner.root);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -40,6 +46,14 @@ public class GHCheckSuite extends GHObject {
|
||||
this.root = root;
|
||||
if (owner != null) {
|
||||
owner.wrap(root);
|
||||
if (pullRequests != null && pullRequests.length != 0) {
|
||||
for (GHPullRequest singlePull : pullRequests) {
|
||||
singlePull.wrap(owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (app != null) {
|
||||
app.wrapUp(root);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
@@ -153,15 +167,22 @@ public class GHCheckSuite extends GHObject {
|
||||
/**
|
||||
* Gets the pull requests participated in this check suite.
|
||||
*
|
||||
* @return Pull requests
|
||||
* Note this field is only populated for events. When getting a {@link GHCheckSuite} outside of an event, this is
|
||||
* always empty.
|
||||
*
|
||||
* @return the list of {@link GHPullRequest}s for this check suite. Only populated for events.
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*/
|
||||
GHPullRequest[] getPullRequests() throws IOException {
|
||||
public List<GHPullRequest> getPullRequests() throws IOException {
|
||||
if (pullRequests != null && pullRequests.length != 0) {
|
||||
for (GHPullRequest singlePull : pullRequests) {
|
||||
singlePull.refresh();
|
||||
// Only refresh if we haven't do so before
|
||||
singlePull.refresh(singlePull.getTitle());
|
||||
}
|
||||
return Collections.unmodifiableList(Arrays.asList(pullRequests));
|
||||
}
|
||||
return pullRequests;
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,6 +11,8 @@ import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import static org.kohsuke.github.Previews.GROOT;
|
||||
|
||||
/**
|
||||
* A commit in a repository.
|
||||
*
|
||||
@@ -446,6 +448,39 @@ public class GHCommit {
|
||||
return owner.root.getUser(author.login);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a list of pull requests which contain this commit.
|
||||
*
|
||||
* @return {@link PagedIterable} with the pull requests which contain this commit
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public PagedIterable<GHPullRequest> listPullRequests() {
|
||||
return owner.root.createRequest()
|
||||
.withPreview(GROOT)
|
||||
.withUrlPath(String.format("/repos/%s/%s/commits/%s/pulls", owner.getOwnerName(), owner.getName(), sha))
|
||||
.toIterable(GHPullRequest[].class, item -> item.wrapUp(owner));
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a list of branches where this commit is the head commit.
|
||||
*
|
||||
* @return {@link PagedIterable} with the branches where the commit is the head commit
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public PagedIterable<GHBranch> listBranchesWhereHead() throws IOException {
|
||||
return owner.root.createRequest()
|
||||
.withPreview(GROOT)
|
||||
.withUrlPath(String.format("/repos/%s/%s/commits/%s/branches-where-head",
|
||||
owner.getOwnerName(),
|
||||
owner.getName(),
|
||||
sha))
|
||||
.toIterable(GHBranch[].class, item -> item.wrap(owner));
|
||||
}
|
||||
|
||||
/**
|
||||
* List comments paged iterable.
|
||||
*
|
||||
|
||||
@@ -89,6 +89,19 @@ public class GHCommitBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures the PGP signature of this commit.
|
||||
*
|
||||
* @param signature
|
||||
* the signature calculated from the commit
|
||||
*
|
||||
* @return the gh commit builder
|
||||
*/
|
||||
public GHCommitBuilder withSignature(String signature) {
|
||||
req.with("signature", signature);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures the committer of this commit.
|
||||
*
|
||||
|
||||
@@ -3,6 +3,8 @@ package org.kohsuke.github;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import static org.kohsuke.github.Previews.BAPTISE;
|
||||
|
||||
/**
|
||||
* Creates a repository
|
||||
*
|
||||
@@ -11,7 +13,7 @@ import java.net.URL;
|
||||
public class GHCreateRepositoryBuilder {
|
||||
private final GitHub root;
|
||||
protected final Requester builder;
|
||||
private final String apiUrlTail;
|
||||
private String apiUrlTail;
|
||||
|
||||
GHCreateRepositoryBuilder(GitHub root, String apiUrlTail, String name) {
|
||||
this.root = root;
|
||||
@@ -200,6 +202,51 @@ public class GHCreateRepositoryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies whether the repository is a template.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public GHCreateRepositoryBuilder templateRepository(boolean enabled) {
|
||||
this.builder.withPreview(BAPTISE);
|
||||
this.builder.with("is_template", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies the ownership of the repository.
|
||||
*
|
||||
* @param owner
|
||||
* organization or personage
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder owner(String owner) {
|
||||
this.builder.with("owner", owner);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create repository from template repository.
|
||||
*
|
||||
* @param templateOwner
|
||||
* template repository owner
|
||||
* @param templateRepo
|
||||
* template repository
|
||||
* @return a builder to continue with building
|
||||
* @see <a href="https://developer.github.com/v3/previews/">GitHub API Previews</a>
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public GHCreateRepositoryBuilder fromTemplateRepository(String templateOwner, String templateRepo) {
|
||||
this.builder.withPreview(BAPTISE);
|
||||
this.apiUrlTail = "/repos/" + templateOwner + "/" + templateRepo + "/generate";
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a repository with all the parameters.
|
||||
*
|
||||
|
||||
@@ -2,6 +2,7 @@ package org.kohsuke.github;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Represents a deployment
|
||||
@@ -60,7 +61,8 @@ public class GHDeployment extends GHObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payload.
|
||||
* Gets payload. <b>NOTE:</b> only use this method if you can guarantee the payload will be a simple string,
|
||||
* otherwise use {@link #getPayloadObject()}.
|
||||
*
|
||||
* @return the payload
|
||||
*/
|
||||
@@ -68,6 +70,25 @@ public class GHDeployment extends GHObject {
|
||||
return (String) payload;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payload. <b>NOTE:</b> only use this method if you can guarantee the payload will be a JSON object (Map),
|
||||
* otherwise use {@link #getPayloadObject()}.
|
||||
*
|
||||
* @return the payload
|
||||
*/
|
||||
public Map<String, Object> getPayloadMap() {
|
||||
return (Map<String, Object>) payload;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payload without assuming its type. It could be a String or a Map.
|
||||
*
|
||||
* @return the payload
|
||||
*/
|
||||
public Object getPayloadObject() {
|
||||
return payload;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets environment.
|
||||
*
|
||||
|
||||
@@ -63,6 +63,7 @@ public enum GHEvent {
|
||||
TEAM_ADD,
|
||||
WATCH,
|
||||
WORKFLOW_DISPATCH,
|
||||
WORKFLOW_RUN,
|
||||
|
||||
/**
|
||||
* Special event type that means "every possible event"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -158,10 +158,8 @@ public class GHIssue extends GHObject implements Reactable {
|
||||
* Gets labels.
|
||||
*
|
||||
* @return the labels
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*/
|
||||
public Collection<GHLabel> getLabels() throws IOException {
|
||||
public Collection<GHLabel> getLabels() {
|
||||
if (labels == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
@@ -239,7 +237,7 @@ public class GHIssue extends GHObject implements Reactable {
|
||||
}
|
||||
|
||||
private void editIssue(String key, Object value) throws IOException {
|
||||
root.createRequest().with(key, value).method("PATCH").withUrlPath(getIssuesApiRoute()).send();
|
||||
root.createRequest().withNullable(key, value).method("PATCH").withUrlPath(getIssuesApiRoute()).send();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -296,9 +294,9 @@ public class GHIssue extends GHObject implements Reactable {
|
||||
*/
|
||||
public void setMilestone(GHMilestone milestone) throws IOException {
|
||||
if (milestone == null) {
|
||||
editNullable("milestone", null);
|
||||
editIssue("milestone", null);
|
||||
} else {
|
||||
edit("milestone", milestone.getNumber());
|
||||
editIssue("milestone", milestone.getNumber());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -421,7 +421,7 @@ public class GHOrganization extends GHPerson {
|
||||
* The enum Permission.
|
||||
*/
|
||||
public enum Permission {
|
||||
ADMIN, PUSH, PULL
|
||||
ADMIN, MAINTAIN, PUSH, TRIAGE, PULL
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -154,10 +154,7 @@ public abstract class GHPerson extends GHObject {
|
||||
*/
|
||||
public GHRepository getRepository(String name) throws IOException {
|
||||
try {
|
||||
return root.createRequest()
|
||||
.withUrlPath("/repos/" + login + '/' + name)
|
||||
.fetch(GHRepository.class)
|
||||
.wrap(root);
|
||||
return GHRepository.read(root, login, name);
|
||||
} catch (FileNotFoundException e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -80,10 +80,8 @@ public class GHProject extends GHObject {
|
||||
} else if (owner_url.contains("/users/")) {
|
||||
owner = root.createRequest().withUrlPath(getOwnerUrl().getPath()).fetch(GHUser.class).wrapUp(root);
|
||||
} else if (owner_url.contains("/repos/")) {
|
||||
owner = root.createRequest()
|
||||
.withUrlPath(getOwnerUrl().getPath())
|
||||
.fetch(GHRepository.class)
|
||||
.wrap(root);
|
||||
String[] pathElements = getOwnerUrl().getPath().split("/");
|
||||
owner = GHRepository.read(root, pathElements[1], pathElements[2]);
|
||||
}
|
||||
} catch (FileNotFoundException e) {
|
||||
return null;
|
||||
|
||||
@@ -29,7 +29,6 @@ import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
@@ -37,6 +36,7 @@ import java.util.Objects;
|
||||
|
||||
import javax.annotation.CheckForNull;
|
||||
|
||||
import static org.kohsuke.github.Previews.LYDIAN;
|
||||
import static org.kohsuke.github.Previews.SHADOW_CAT;
|
||||
|
||||
/**
|
||||
@@ -72,13 +72,6 @@ public class GHPullRequest extends GHIssue implements Refreshable {
|
||||
private GHUser[] requested_reviewers;
|
||||
private GHTeam[] requested_teams;
|
||||
|
||||
/**
|
||||
* GitHub doesn't return some properties of {@link GHIssue} when requesting the GET on the 'pulls' API route as
|
||||
* opposed to 'issues' API route. This flag remembers whether we made the GET call on the 'issues' route on this
|
||||
* object to fill in those missing details
|
||||
*/
|
||||
private transient boolean fetchedIssueDetails;
|
||||
|
||||
GHPullRequest wrapUp(GHRepository owner) {
|
||||
this.wrap(owner);
|
||||
return wrapUp(owner.root);
|
||||
@@ -177,12 +170,6 @@ public class GHPullRequest extends GHIssue implements Refreshable {
|
||||
return GitHubClient.parseDate(merged_at);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<GHLabel> getLabels() throws IOException {
|
||||
fetchIssue();
|
||||
return super.getLabels();
|
||||
}
|
||||
|
||||
@Override
|
||||
public GHUser getClosedBy() {
|
||||
return null;
|
||||
@@ -565,6 +552,41 @@ public class GHPullRequest extends GHIssue implements Refreshable {
|
||||
.send();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the base branch on the pull request
|
||||
*
|
||||
* @param newBaseBranch
|
||||
* the name of the new base branch
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
* @return the updated pull request
|
||||
*/
|
||||
public GHPullRequest setBaseBranch(String newBaseBranch) throws IOException {
|
||||
return root.createRequest()
|
||||
.method("PATCH")
|
||||
.with("base", newBaseBranch)
|
||||
.withUrlPath(getApiRoute())
|
||||
.fetch(GHPullRequest.class)
|
||||
.wrapUp(root);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the branch. The same as pressing the button in the web GUI.
|
||||
*
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public void updateBranch() throws IOException {
|
||||
root.createRequest()
|
||||
.withPreview(LYDIAN)
|
||||
.method("PUT")
|
||||
.with("expected_head_sha", head.getSha())
|
||||
.withUrlPath(getApiRoute() + "/update-branch")
|
||||
.send();
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge this pull request.
|
||||
* <p>
|
||||
@@ -626,10 +648,4 @@ public class GHPullRequest extends GHIssue implements Refreshable {
|
||||
MERGE, SQUASH, REBASE
|
||||
}
|
||||
|
||||
private void fetchIssue() throws IOException {
|
||||
if (!fetchedIssueDetails) {
|
||||
root.createRequest().withUrlPath(getIssuesApiRoute()).fetchInto(this);
|
||||
fetchedIssueDetails = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
86
src/main/java/org/kohsuke/github/GHPullRequestChanges.java
Normal file
86
src/main/java/org/kohsuke/github/GHPullRequestChanges.java
Normal file
@@ -0,0 +1,86 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
/**
|
||||
* Wrapper to define changed fields on pull_request action="edited"
|
||||
*
|
||||
* @see GHEventPayload.PullRequest
|
||||
*/
|
||||
@SuppressFBWarnings("UWF_UNWRITTEN_FIELD")
|
||||
public class GHPullRequestChanges {
|
||||
|
||||
private GHCommitPointer base;
|
||||
private GHFrom title;
|
||||
private GHFrom body;
|
||||
|
||||
/**
|
||||
* Old target branch for pull request.
|
||||
*
|
||||
* @return old target branch info (or null if not changed)
|
||||
*/
|
||||
public GHCommitPointer getBase() {
|
||||
return base;
|
||||
}
|
||||
|
||||
/**
|
||||
* Old pull request title.
|
||||
*
|
||||
* @return old pull request title (or null if not changed)
|
||||
*/
|
||||
public GHFrom getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Old pull request body.
|
||||
*
|
||||
* @return old pull request body (or null if not changed)
|
||||
*/
|
||||
public GHFrom getBody() {
|
||||
return body;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.kohsuke.github.GHCommitPointer
|
||||
*/
|
||||
public static class GHCommitPointer {
|
||||
private GHFrom ref;
|
||||
private GHFrom sha;
|
||||
|
||||
/**
|
||||
* Named ref to the commit. This (from value) appears to be a "short ref" that doesn't include "refs/heads/"
|
||||
* portion.
|
||||
*
|
||||
* @return the ref
|
||||
*/
|
||||
public GHFrom getRef() {
|
||||
return ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* SHA1 of the commit.
|
||||
*
|
||||
* @return sha
|
||||
*/
|
||||
public GHFrom getSha() {
|
||||
return sha;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for changed values.
|
||||
*/
|
||||
public static class GHFrom {
|
||||
private String from;
|
||||
|
||||
/**
|
||||
* Previous value that was changed.
|
||||
*
|
||||
* @return previous value
|
||||
*/
|
||||
public String getFrom() {
|
||||
return from;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,6 +46,7 @@ public class GHPullRequestReview extends GHObject {
|
||||
private String commit_id;
|
||||
private GHPullRequestReviewState state;
|
||||
private String submitted_at;
|
||||
private String html_url;
|
||||
|
||||
GHPullRequestReview wrapUp(GHPullRequest owner) {
|
||||
this.owner = owner;
|
||||
@@ -102,7 +103,7 @@ public class GHPullRequestReview extends GHObject {
|
||||
|
||||
@Override
|
||||
public URL getHtmlUrl() {
|
||||
return null;
|
||||
return GitHubClient.parseURL(html_url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,6 +15,7 @@ import static java.lang.String.*;
|
||||
* Release in a github repository.
|
||||
*
|
||||
* @see GHRepository#getReleases() GHRepository#getReleases()
|
||||
* @see GHRepository#listReleases() () GHRepository#listReleases()
|
||||
* @see GHRepository#createRelease(String) GHRepository#createRelease(String)
|
||||
*/
|
||||
public class GHRelease extends GHObject {
|
||||
@@ -23,6 +24,7 @@ public class GHRelease extends GHObject {
|
||||
|
||||
private String html_url;
|
||||
private String assets_url;
|
||||
private List<GHAsset> assets;
|
||||
private String upload_url;
|
||||
private String tag_name;
|
||||
private String target_commitish;
|
||||
@@ -249,18 +251,45 @@ public class GHRelease extends GHObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets assets.
|
||||
* Get the cached assets.
|
||||
*
|
||||
* @return the assets
|
||||
*
|
||||
* @deprecated This should be the default behavior of {@link #getAssets()} in a future release. This method is
|
||||
* introduced in addition to enable a transition to using cached asset information while keeping the
|
||||
* existing logic in place for backwards compatibility.
|
||||
*/
|
||||
@Deprecated
|
||||
@Preview
|
||||
public List<GHAsset> assets() {
|
||||
return assets;
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-fetch the assets of this release.
|
||||
*
|
||||
* @return the assets
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
* @deprecated The behavior of this method will change in a future release. It will then provide cached assets as
|
||||
* provided by {@link #assets()}. Use {@link #listAssets()} instead to fetch up-to-date information of
|
||||
* assets.
|
||||
*/
|
||||
@Deprecated
|
||||
public List<GHAsset> getAssets() throws IOException {
|
||||
return listAssets().toList();
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-fetch the assets of this release.
|
||||
*
|
||||
* @return the assets
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*/
|
||||
public List<GHAsset> getAssets() throws IOException {
|
||||
public PagedIterable<GHAsset> listAssets() throws IOException {
|
||||
Requester builder = owner.root.createRequest();
|
||||
|
||||
return builder.withUrlPath(getApiTailUrl("assets"))
|
||||
.toIterable(GHAsset[].class, item -> item.wrap(this))
|
||||
.toList();
|
||||
return builder.withUrlPath(getApiTailUrl("assets")).toIterable(GHAsset[].class, item -> item.wrap(this));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -46,6 +46,7 @@ import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
@@ -68,7 +69,9 @@ public class GHRepository extends GHObject {
|
||||
/* package almost final */ transient GitHub root;
|
||||
|
||||
private String nodeId, description, homepage, name, full_name;
|
||||
|
||||
private String html_url; // this is the UI
|
||||
|
||||
/*
|
||||
* The license information makes use of the preview API.
|
||||
*
|
||||
@@ -77,22 +80,30 @@ public class GHRepository extends GHObject {
|
||||
private GHLicense license;
|
||||
|
||||
private String git_url, ssh_url, clone_url, svn_url, mirror_url;
|
||||
|
||||
private GHUser owner; // not fully populated. beware.
|
||||
|
||||
private boolean has_issues, has_wiki, fork, has_downloads, has_pages, archived, has_projects;
|
||||
|
||||
private boolean allow_squash_merge;
|
||||
|
||||
private boolean allow_merge_commit;
|
||||
|
||||
private boolean allow_rebase_merge;
|
||||
|
||||
private boolean delete_branch_on_merge;
|
||||
|
||||
@JsonProperty("private")
|
||||
private boolean _private;
|
||||
|
||||
private int forks_count, stargazers_count, watchers_count, size, open_issues_count, subscribers_count;
|
||||
|
||||
private String pushed_at;
|
||||
|
||||
private Map<Integer, GHMilestone> milestones = new WeakHashMap<Integer, GHMilestone>();
|
||||
|
||||
private String default_branch, language;
|
||||
|
||||
private Map<String, GHCommit> commits = new WeakHashMap<String, GHCommit>();
|
||||
|
||||
@SkipFromToString
|
||||
@@ -100,6 +111,12 @@ public class GHRepository extends GHObject {
|
||||
|
||||
private GHRepository source, parent;
|
||||
|
||||
private Boolean isTemplate;
|
||||
|
||||
static GHRepository read(GitHub root, String owner, String name) throws IOException {
|
||||
return root.createRequest().withUrlPath("/repos/" + owner + '/' + name).fetch(GHRepository.class).wrap(root);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create deployment gh deployment builder.
|
||||
*
|
||||
@@ -681,6 +698,28 @@ public class GHRepository extends GHObject {
|
||||
return _private;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is template boolean.
|
||||
*
|
||||
* @return the boolean
|
||||
*/
|
||||
@Deprecated
|
||||
@Preview
|
||||
public boolean isTemplate() {
|
||||
// isTemplate is still in preview, we do not want to retrieve it unless needed.
|
||||
if (isTemplate == null) {
|
||||
try {
|
||||
populate();
|
||||
} catch (IOException e) {
|
||||
// Convert this to a runtime exception to avoid messy method signature
|
||||
throw new GHException("Could not populate the template setting of the repository", e);
|
||||
}
|
||||
// if this somehow is not populated, set it to false;
|
||||
isTemplate = Boolean.TRUE.equals(isTemplate);
|
||||
}
|
||||
return isTemplate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Has downloads boolean.
|
||||
*
|
||||
@@ -970,12 +1009,12 @@ public class GHRepository extends GHObject {
|
||||
@NonNull String method,
|
||||
@CheckForNull GHOrganization.Permission permission) throws IOException {
|
||||
Requester requester = root.createRequest().method(method);
|
||||
|
||||
if (permission != null) {
|
||||
requester = requester.with("permission", permission).inBody();
|
||||
}
|
||||
|
||||
for (GHUser user : users) {
|
||||
// Make sure that the users collection doesn't have any duplicates
|
||||
for (GHUser user : new LinkedHashSet<GHUser>(users)) {
|
||||
requester.withUrlPath(getApiTailUrl("collaborators/" + user.getLogin())).send();
|
||||
}
|
||||
}
|
||||
@@ -1002,8 +1041,9 @@ public class GHRepository extends GHObject {
|
||||
|
||||
private void edit(String key, String value) throws IOException {
|
||||
Requester requester = root.createRequest();
|
||||
if (!key.equals("name"))
|
||||
if (!key.equals("name")) {
|
||||
requester.with("name", name); // even when we don't change the name, we need to send it in
|
||||
}
|
||||
requester.with(key, value).method("PATCH").withUrlPath(getApiTailUrl("")).send();
|
||||
}
|
||||
|
||||
@@ -1248,8 +1288,9 @@ public class GHRepository extends GHObject {
|
||||
// this API is asynchronous. we need to wait for a bit
|
||||
for (int i = 0; i < 10; i++) {
|
||||
GHRepository r = root.getMyself().getRepository(name);
|
||||
if (r != null)
|
||||
if (r != null) {
|
||||
return r;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(3000);
|
||||
} catch (InterruptedException e) {
|
||||
@@ -1278,8 +1319,9 @@ public class GHRepository extends GHObject {
|
||||
// this API is asynchronous. we need to wait for a bit
|
||||
for (int i = 0; i < 10; i++) {
|
||||
GHRepository r = org.getRepository(name);
|
||||
if (r != null)
|
||||
if (r != null) {
|
||||
return r;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(3000);
|
||||
} catch (InterruptedException e) {
|
||||
@@ -1746,6 +1788,20 @@ public class GHRepository extends GHObject {
|
||||
.toIterable(GHCommitComment[].class, item -> item.wrap(this));
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all comments on a specific commit.
|
||||
*
|
||||
* @param commitSha
|
||||
* the hash of the commit
|
||||
*
|
||||
* @return the paged iterable
|
||||
*/
|
||||
public PagedIterable<GHCommitComment> listCommitComments(String commitSha) {
|
||||
return root.createRequest()
|
||||
.withUrlPath(String.format("/repos/%s/%s/commits/%s/comments", getOwnerName(), name, commitSha))
|
||||
.toIterable(GHCommitComment[].class, item -> item.wrap(this));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the basic license details for the repository.
|
||||
* <p>
|
||||
@@ -1902,6 +1958,19 @@ public class GHRepository extends GHObject {
|
||||
return new GHCheckRunBuilder(this, name, headSHA);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates an existing check run.
|
||||
*
|
||||
* @param checkId
|
||||
* the existing checkId
|
||||
* @return a builder which you should customize, then call {@link GHCheckRunBuilder#create}
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public @NonNull GHCheckRunBuilder updateCheckRun(long checkId) {
|
||||
return new GHCheckRunBuilder(this, checkId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists repository events.
|
||||
*
|
||||
@@ -2721,8 +2790,9 @@ public class GHRepository extends GHObject {
|
||||
}
|
||||
|
||||
String getApiTailUrl(String tail) {
|
||||
if (tail.length() > 0 && !tail.startsWith("/"))
|
||||
if (tail.length() > 0 && !tail.startsWith("/")) {
|
||||
tail = '/' + tail;
|
||||
}
|
||||
return "/repos/" + getOwnerName() + "/" + name + tail;
|
||||
}
|
||||
|
||||
@@ -2829,8 +2899,9 @@ public class GHRepository extends GHObject {
|
||||
* The IO exception
|
||||
*/
|
||||
void populate() throws IOException {
|
||||
if (root.isOffline())
|
||||
if (root.isOffline()) {
|
||||
return; // can't populate if the root is offline
|
||||
}
|
||||
|
||||
final URL url = Objects.requireNonNull(getUrl(), "Missing instance URL!");
|
||||
|
||||
@@ -2839,10 +2910,10 @@ public class GHRepository extends GHObject {
|
||||
// There is bug in Push event payloads that returns the wrong url.
|
||||
// All other occurrences of "url" take the form "https://api.github.com/...".
|
||||
// For Push event repository records, they take the form "https://github.com/{fullName}".
|
||||
root.createRequest().setRawUrlPath(url.toString()).fetchInto(this).wrap(root);
|
||||
root.createRequest().withPreview(BAPTISE).setRawUrlPath(url.toString()).fetchInto(this).wrap(root);
|
||||
} catch (HttpException e) {
|
||||
if (e.getCause() instanceof JsonParseException) {
|
||||
root.createRequest().withUrlPath("/repos/" + full_name).fetchInto(this).wrap(root);
|
||||
root.createRequest().withPreview(BAPTISE).withUrlPath("/repos/" + full_name).fetchInto(this).wrap(root);
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
|
||||
@@ -145,6 +145,22 @@ public class GHTeam extends GHObject implements Refreshable {
|
||||
return GHDiscussion.readAll(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* List members with specified role paged iterable.
|
||||
*
|
||||
* @param role
|
||||
* the role
|
||||
* @return the paged iterable
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*/
|
||||
public PagedIterable<GHUser> listMembers(String role) throws IOException {
|
||||
return root.createRequest()
|
||||
.withUrlPath(api("/members"))
|
||||
.with("role", role)
|
||||
.toIterable(GHUser[].class, item -> item.wrapUp(root));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a single discussion by ID.
|
||||
*
|
||||
@@ -171,7 +187,7 @@ public class GHTeam extends GHObject implements Refreshable {
|
||||
* the io exception
|
||||
*/
|
||||
public PagedIterable<GHUser> listMembers() throws IOException {
|
||||
return root.createRequest().withUrlPath(api("/members")).toIterable(GHUser[].class, item -> item.wrapUp(root));
|
||||
return listMembers("all");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -532,7 +532,7 @@ public class GitHub {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the repository object from 'user/reponame' string that GitHub calls as "repository name"
|
||||
* Gets the repository object from 'owner/repo' string that GitHub calls as "repository name"
|
||||
*
|
||||
* @param name
|
||||
* the name
|
||||
@@ -543,9 +543,10 @@ public class GitHub {
|
||||
*/
|
||||
public GHRepository getRepository(String name) throws IOException {
|
||||
String[] tokens = name.split("/");
|
||||
return createRequest().withUrlPath("/repos/" + tokens[0] + '/' + tokens[1])
|
||||
.fetch(GHRepository.class)
|
||||
.wrap(this);
|
||||
if (tokens.length < 2) {
|
||||
throw new IllegalArgumentException("Repository name must be in format owner/repo");
|
||||
}
|
||||
return GHRepository.read(this, tokens[0], tokens[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,15 +19,15 @@ import java.net.SocketException;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.Instant;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.Base64;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.TimeZone;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@@ -80,9 +80,8 @@ abstract class GitHubClient {
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
static final String GITHUB_URL = "https://api.github.com";
|
||||
|
||||
private static final String[] TIME_FORMATS = { "yyyy/MM/dd HH:mm:ss ZZZZ", "yyyy-MM-dd'T'HH:mm:ss'Z'",
|
||||
"yyyy-MM-dd'T'HH:mm:ss.S'Z'" // GitHub App endpoints return a different date format
|
||||
};
|
||||
private static final DateTimeFormatter DATE_TIME_PARSER_SLASHES = DateTimeFormatter
|
||||
.ofPattern("yyyy/MM/dd HH:mm:ss Z");
|
||||
|
||||
static {
|
||||
MAPPER.setVisibility(new VisibilityChecker.Std(NONE, NONE, NONE, NONE, ANY));
|
||||
@@ -406,7 +405,7 @@ abstract class GitHubClient {
|
||||
// Setting "Cache-Control" to "no-cache" stops the cache from supplying
|
||||
// "If-Modified-Since" or "If-None-Match" values.
|
||||
// This makes GitHub give us current data (not incorrectly cached data)
|
||||
request = request.toBuilder().withHeader("Cache-Control", "no-cache").build();
|
||||
request = request.toBuilder().setHeader("Cache-Control", "no-cache").build();
|
||||
continue;
|
||||
}
|
||||
if (!(isRateLimitResponse(responseInfo) || isAbuseLimitResponse(responseInfo))) {
|
||||
@@ -652,22 +651,24 @@ abstract class GitHubClient {
|
||||
static Date parseDate(String timestamp) {
|
||||
if (timestamp == null)
|
||||
return null;
|
||||
for (String f : TIME_FORMATS) {
|
||||
try {
|
||||
SimpleDateFormat df = new SimpleDateFormat(f);
|
||||
df.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||
return df.parse(timestamp);
|
||||
} catch (ParseException e) {
|
||||
// try next
|
||||
}
|
||||
|
||||
return Date.from(parseInstant(timestamp));
|
||||
}
|
||||
|
||||
static Instant parseInstant(String timestamp) {
|
||||
if (timestamp == null)
|
||||
return null;
|
||||
|
||||
if (timestamp.charAt(4) == '/') {
|
||||
// Unsure where this is used, but retained for compatibility.
|
||||
return Instant.from(DATE_TIME_PARSER_SLASHES.parse(timestamp));
|
||||
} else {
|
||||
return Instant.from(DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(timestamp));
|
||||
}
|
||||
throw new IllegalStateException("Unable to parse the timestamp: " + timestamp);
|
||||
}
|
||||
|
||||
static String printDate(Date dt) {
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
|
||||
df.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||
return df.format(dt);
|
||||
return DateTimeFormatter.ISO_INSTANT.format(Instant.ofEpochMilli(dt.getTime()).truncatedTo(ChronoUnit.SECONDS));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -384,9 +384,11 @@ class GitHubRequest {
|
||||
* the name
|
||||
* @param value
|
||||
* the value
|
||||
* @return the request builder
|
||||
*/
|
||||
public void setHeader(String name, String value) {
|
||||
public B setHeader(String name, String value) {
|
||||
headers.put(name, value);
|
||||
return (B) this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -399,8 +401,11 @@ class GitHubRequest {
|
||||
* @return the request builder
|
||||
*/
|
||||
public B withHeader(String name, String value) {
|
||||
setHeader(name, value);
|
||||
return (B) this;
|
||||
String oldValue = headers.get(name);
|
||||
if (!StringUtils.isBlank(oldValue)) {
|
||||
value = oldValue + ", " + value;
|
||||
}
|
||||
return setHeader(name, value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -671,13 +676,9 @@ class GitHubRequest {
|
||||
tailUrlPath += "/" + String.join("/", urlPathItems);
|
||||
}
|
||||
|
||||
if (this.urlPath.endsWith("/")) {
|
||||
tailUrlPath = StringUtils.stripStart(tailUrlPath, "/");
|
||||
} else {
|
||||
tailUrlPath = StringUtils.prependIfMissing(tailUrlPath, "/");
|
||||
}
|
||||
tailUrlPath = StringUtils.prependIfMissing(tailUrlPath, "/");
|
||||
|
||||
this.urlPath += urlPathEncode(tailUrlPath);
|
||||
this.urlPath = urlPathEncode(tailUrlPath);
|
||||
return (B) this;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,9 +78,14 @@ class GitHubResponse<T> {
|
||||
@CheckForNull
|
||||
static <T> T parseBody(ResponseInfo responseInfo, Class<T> type) throws IOException {
|
||||
|
||||
if (responseInfo.statusCode() == HttpURLConnection.HTTP_NO_CONTENT && type != null && type.isArray()) {
|
||||
// no content
|
||||
return type.cast(Array.newInstance(type.getComponentType(), 0));
|
||||
if (responseInfo.statusCode() == HttpURLConnection.HTTP_NO_CONTENT) {
|
||||
if (type != null && type.isArray()) {
|
||||
// no content for array should be empty array
|
||||
return type.cast(Array.newInstance(type.getComponentType(), 0));
|
||||
} else {
|
||||
// no content for object should be null
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
String data = responseInfo.getBodyAsString();
|
||||
|
||||
@@ -4,6 +4,8 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.annotation.CheckForNull;
|
||||
|
||||
/**
|
||||
* Represents a user in Git who authors/commits a commit.
|
||||
* <p>
|
||||
@@ -15,10 +17,10 @@ import java.util.Date;
|
||||
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
|
||||
justification = "JSON API")
|
||||
public class GitUser {
|
||||
private String name, email, date;
|
||||
private String name, email, date, username;
|
||||
|
||||
/**
|
||||
* Gets name.
|
||||
* Gets the git user name for an author or committer on a git commit.
|
||||
*
|
||||
* @return Human readable name of the user, such as "Kohsuke Kawaguchi"
|
||||
*/
|
||||
@@ -27,14 +29,26 @@ public class GitUser {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets email.
|
||||
* Gets the git email for an author or committer on a git commit.
|
||||
*
|
||||
* @return E -mail address, such as "foo@example.com"
|
||||
* @return E-mail address, such as "foo@example.com"
|
||||
*/
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets username. Note: it presents only in events.
|
||||
*
|
||||
* @return GitHub username
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
@CheckForNull
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets date.
|
||||
*
|
||||
|
||||
@@ -15,6 +15,14 @@ class Previews {
|
||||
*/
|
||||
static final String ANTIOPE = "application/vnd.github.antiope-preview+json";
|
||||
|
||||
/**
|
||||
* Create repository from template repository
|
||||
*
|
||||
* @see <a href="https://developer.github.com/v3/previews/#create-and-use-repository-templates">GitHub API
|
||||
* Previews</a>
|
||||
*/
|
||||
static final String BAPTISE = "application/vnd.github.baptiste-preview+json";
|
||||
|
||||
/**
|
||||
* Commit Search
|
||||
*
|
||||
@@ -29,6 +37,14 @@ class Previews {
|
||||
*/
|
||||
static final String GAMBIT = "application/vnd.github.gambit-preview+json";
|
||||
|
||||
/**
|
||||
* List branches or pull requests for a commit
|
||||
*
|
||||
* @see <a href="https://developer.github.com/v3/previews/#list-branches-or-pull-requests-for-a-commit">GitHub API
|
||||
* Previews</a>
|
||||
*/
|
||||
static final String GROOT = "application/vnd.github.groot-preview+json";
|
||||
|
||||
/**
|
||||
* Manage projects
|
||||
*
|
||||
@@ -36,6 +52,13 @@ class Previews {
|
||||
*/
|
||||
static final String INERTIA = "application/vnd.github.inertia-preview+json";
|
||||
|
||||
/**
|
||||
* Update a pull request branch
|
||||
*
|
||||
* @see <a href="https://developer.github.com/v3/previews/#update-a-pull-request-branch">GitHub API Previews</a>
|
||||
*/
|
||||
static final String LYDIAN = "application/vnd.github.lydian-preview+json";
|
||||
|
||||
/**
|
||||
* Require multiple approving reviews
|
||||
*
|
||||
@@ -58,6 +81,14 @@ class Previews {
|
||||
*/
|
||||
static final String MERCY = "application/vnd.github.mercy-preview+json";
|
||||
|
||||
/**
|
||||
* New visibility parameter for the Repositories API
|
||||
*
|
||||
* @see <a href="https://developer.github.com/v3/previews/#new-visibility-parameter-for-the-repositories-api">GitHub
|
||||
* API Previews</a>
|
||||
*/
|
||||
static final String NEBULA = "application/vnd.github.nebula-preview+json";
|
||||
|
||||
/**
|
||||
* Draft pull requests
|
||||
*
|
||||
@@ -78,4 +109,5 @@ class Previews {
|
||||
* @see <a href="https://developer.github.com/v3/previews/#require-signed-commits">GitHub API Previews</a>
|
||||
*/
|
||||
static final String ZZZAX = "application/vnd.github.zzzax-preview+json";
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import io.jsonwebtoken.Jwts;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.security.KeyFactory;
|
||||
import java.security.PrivateKey;
|
||||
import java.security.spec.PKCS8EncodedKeySpec;
|
||||
import java.time.Instant;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.Base64;
|
||||
import java.util.Date;
|
||||
|
||||
public class AbstractGHAppInstallationTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
private static String TEST_APP_ID_1 = "82994";
|
||||
private static String TEST_APP_ID_2 = "83009";
|
||||
private static String TEST_APP_ID_3 = "89368";
|
||||
private static String PRIVATE_KEY_FILE_APP_1 = "/ghapi-test-app-1.private-key.pem";
|
||||
private static String PRIVATE_KEY_FILE_APP_2 = "/ghapi-test-app-2.private-key.pem";
|
||||
private static String PRIVATE_KEY_FILE_APP_3 = "/ghapi-test-app-3.private-key.pem";
|
||||
|
||||
private String createJwtToken(String keyFileResouceName, String appId) {
|
||||
try {
|
||||
String keyPEM = IOUtils.toString(this.getClass().getResource(keyFileResouceName), "US-ASCII")
|
||||
.replaceAll("(?m)^--.*", "") // remove comments from PEM to allow decoding
|
||||
.replaceAll("\\s", "");
|
||||
|
||||
PKCS8EncodedKeySpec keySpecPKCS8 = new PKCS8EncodedKeySpec(Base64.getDecoder().decode(keyPEM));
|
||||
PrivateKey privateKey = KeyFactory.getInstance("RSA").generatePrivate(keySpecPKCS8);
|
||||
|
||||
return Jwts.builder()
|
||||
.setIssuedAt(Date.from(Instant.now()))
|
||||
.setExpiration(Date.from(Instant.now().plus(5, ChronoUnit.MINUTES)))
|
||||
.setIssuer(appId)
|
||||
.signWith(privateKey)
|
||||
.compact();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Error creating JWT token.", e);
|
||||
}
|
||||
}
|
||||
|
||||
private GHAppInstallation getAppInstallationWithToken(String jwtToken) throws IOException {
|
||||
GitHub gitHub = getGitHubBuilder().withJwtToken(jwtToken)
|
||||
.withEndpoint(mockGitHub.apiServer().baseUrl())
|
||||
.build();
|
||||
|
||||
GHAppInstallation appInstallation = gitHub.getApp()
|
||||
.listInstallations()
|
||||
.toList()
|
||||
.stream()
|
||||
.filter(it -> it.getAccount().login.equals("hub4j-test-org"))
|
||||
.findFirst()
|
||||
.get();
|
||||
|
||||
appInstallation
|
||||
.setRoot(getGitHubBuilder().withAppInstallationToken(appInstallation.createToken().create().getToken())
|
||||
.withEndpoint(mockGitHub.apiServer().baseUrl())
|
||||
.build());
|
||||
|
||||
return appInstallation;
|
||||
}
|
||||
|
||||
protected GHAppInstallation getAppInstallationWithTokenApp1() throws IOException {
|
||||
return getAppInstallationWithToken(createJwtToken(PRIVATE_KEY_FILE_APP_1, TEST_APP_ID_1));
|
||||
}
|
||||
|
||||
protected GHAppInstallation getAppInstallationWithTokenApp2() throws IOException {
|
||||
return getAppInstallationWithToken(createJwtToken(PRIVATE_KEY_FILE_APP_2, TEST_APP_ID_2));
|
||||
}
|
||||
|
||||
protected GHAppInstallation getAppInstallationWithTokenApp3() throws IOException {
|
||||
return getAppInstallationWithToken(createJwtToken(PRIVATE_KEY_FILE_APP_3, TEST_APP_ID_3));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,6 +4,8 @@ import com.google.common.collect.Iterables;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Kohsuke Kawaguchi
|
||||
@@ -25,6 +27,83 @@ public class CommitTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listPullRequestsOfNotIncludedCommit() throws Exception {
|
||||
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
|
||||
|
||||
GHCommit commit = repo.getCommit("f66f7ca691ace6f4a9230292efb932b49214d72c");
|
||||
|
||||
assertThat("The commit is supposed to be not part of any pull request",
|
||||
commit.listPullRequests().toList().isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listPullRequests() throws Exception {
|
||||
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
|
||||
Integer prNumber = 2;
|
||||
|
||||
GHCommit commit = repo.getCommit("6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc");
|
||||
|
||||
List<GHPullRequest> listedPrs = commit.listPullRequests().toList();
|
||||
|
||||
assertEquals(listedPrs.size(), 1);
|
||||
|
||||
assertThat("Pull request " + prNumber + " not found by searching from commit.",
|
||||
listedPrs.stream().findFirst().filter(it -> it.getNumber() == prNumber).isPresent());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listPullRequestsOfCommitWith2PullRequests() throws Exception {
|
||||
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
|
||||
Integer[] expectedPrs = new Integer[]{ 1, 2 };
|
||||
|
||||
GHCommit commit = repo.getCommit("442aa213f924a5984856f16e52a18153aaf41ad3");
|
||||
|
||||
List<GHPullRequest> listedPrs = commit.listPullRequests().toList();
|
||||
|
||||
assertEquals(listedPrs.size(), 2);
|
||||
|
||||
listedPrs.stream()
|
||||
.forEach(pr -> assertThat("PR#" + pr.getNumber() + " not expected to be matched.",
|
||||
Arrays.stream(expectedPrs).anyMatch(prNumber -> prNumber.equals(pr.getNumber()))));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listBranchesWhereHead() throws Exception {
|
||||
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
|
||||
|
||||
GHCommit commit = repo.getCommit("ab92e13c0fc844fd51a379a48a3ad0b18231215c");
|
||||
|
||||
assertThat("Commit which was supposed to be HEAD in the \"master\" branch was not found.",
|
||||
commit.listBranchesWhereHead()
|
||||
.toList()
|
||||
.stream()
|
||||
.findFirst()
|
||||
.filter(it -> it.getName().equals("master"))
|
||||
.isPresent());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listBranchesWhereHead2Heads() throws Exception {
|
||||
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
|
||||
|
||||
GHCommit commit = repo.getCommit("ab92e13c0fc844fd51a379a48a3ad0b18231215c");
|
||||
|
||||
assertEquals("Commit which was supposed to be HEAD in 2 branches was not found as such.",
|
||||
2,
|
||||
commit.listBranchesWhereHead().toList().size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listBranchesWhereHeadOfCommitWithHeadNowhere() throws Exception {
|
||||
GHRepository repo = gitHub.getOrganization("hub4j-test-org").getRepository("listPrsListHeads");
|
||||
|
||||
GHCommit commit = repo.getCommit("7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e");
|
||||
|
||||
assertThat("Commit which was not supposed to be HEAD in any branch was found as HEAD.",
|
||||
commit.listBranchesWhereHead().toList().isEmpty());
|
||||
}
|
||||
|
||||
@Test // issue 737
|
||||
public void commitSignatureVerification() throws Exception {
|
||||
GHRepository repo = gitHub.getRepository("stapler/stapler");
|
||||
|
||||
29
src/test/java/org/kohsuke/github/GHAppInstallationTest.java
Normal file
29
src/test/java/org/kohsuke/github/GHAppInstallationTest.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
public class GHAppInstallationTest extends AbstractGHAppInstallationTest {
|
||||
|
||||
@Test
|
||||
public void testListRepositoriesTwoRepos() throws IOException {
|
||||
GHAppInstallation appInstallation = getAppInstallationWithTokenApp1();
|
||||
|
||||
List<GHRepository> repositories = appInstallation.listRepositories().toList();
|
||||
|
||||
assertEquals(2, repositories.size());
|
||||
assertTrue(repositories.stream().anyMatch(it -> it.getName().equals("empty")));
|
||||
assertTrue(repositories.stream().anyMatch(it -> it.getName().equals("test-readme")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testListRepositoriesNoPermissions() throws IOException {
|
||||
GHAppInstallation appInstallation = getAppInstallationWithTokenApp2();
|
||||
|
||||
assertTrue("App does not have permissions and should have 0 repositories",
|
||||
appInstallation.listRepositories().toList().isEmpty());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,6 +6,8 @@ import org.kohsuke.github.GHBranchProtection.EnforceAdmins;
|
||||
import org.kohsuke.github.GHBranchProtection.RequiredReviews;
|
||||
import org.kohsuke.github.GHBranchProtection.RequiredStatusChecks;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
|
||||
public class GHBranchProtectionTest extends AbstractGitHubWireMockTest {
|
||||
private static final String BRANCH = "master";
|
||||
private static final String BRANCH_REF = "heads/" + BRANCH;
|
||||
@@ -32,6 +34,14 @@ public class GHBranchProtectionTest extends AbstractGitHubWireMockTest {
|
||||
.includeAdmins()
|
||||
.enable();
|
||||
|
||||
verifyBranchProtection(protection);
|
||||
|
||||
// Get goes through a different code path. Make sure it also gets the correct data.
|
||||
protection = branch.getProtection();
|
||||
verifyBranchProtection(protection);
|
||||
}
|
||||
|
||||
private void verifyBranchProtection(GHBranchProtection protection) {
|
||||
RequiredStatusChecks statusChecks = protection.getRequiredStatusChecks();
|
||||
assertNotNull(statusChecks);
|
||||
assertTrue(statusChecks.isRequiresBranchUpToDate());
|
||||
@@ -66,7 +76,20 @@ public class GHBranchProtectionTest extends AbstractGitHubWireMockTest {
|
||||
public void testEnableRequireReviewsOnly() throws Exception {
|
||||
GHBranchProtection protection = branch.enableProtection().requireReviews().enable();
|
||||
|
||||
RequiredReviews requiredReviews = protection.getRequiredReviews();
|
||||
assertNotNull(protection.getRequiredReviews());
|
||||
assertFalse(requiredReviews.isDismissStaleReviews());
|
||||
assertFalse(requiredReviews.isRequireCodeOwnerReviews());
|
||||
assertThat(protection.getRequiredReviews().getRequiredReviewers(), equalTo(1));
|
||||
|
||||
// Get goes through a different code path. Make sure it also gets the correct data.
|
||||
protection = branch.getProtection();
|
||||
requiredReviews = protection.getRequiredReviews();
|
||||
|
||||
assertNotNull(protection.getRequiredReviews());
|
||||
assertFalse(requiredReviews.isDismissStaleReviews());
|
||||
assertFalse(requiredReviews.isRequireCodeOwnerReviews());
|
||||
assertThat(protection.getRequiredReviews().getRequiredReviewers(), equalTo(1));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
47
src/test/java/org/kohsuke/github/GHBranchTest.java
Normal file
47
src/test/java/org/kohsuke/github/GHBranchTest.java
Normal file
@@ -0,0 +1,47 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import static org.hamcrest.Matchers.*;
|
||||
|
||||
public class GHBranchTest extends AbstractGitHubWireMockTest {
|
||||
private static final String BRANCH_1 = "testBranch1";
|
||||
private static final String BRANCH_2 = "testBranch2";
|
||||
|
||||
private GHRepository repository;
|
||||
|
||||
@Test
|
||||
public void testMergeBranch() throws Exception {
|
||||
repository = getTempRepository();
|
||||
|
||||
String masterHead = repository.getRef("heads/master").getObject().getSha();
|
||||
createRefAndPostContent(BRANCH_1, masterHead);
|
||||
createRefAndPostContent(BRANCH_2, masterHead);
|
||||
|
||||
GHBranch otherBranch = repository.getBranch(BRANCH_2);
|
||||
String commitMessage = "merging " + BRANCH_2;
|
||||
GHCommit mergeCommit = repository.getBranch(BRANCH_1).merge(otherBranch, commitMessage);
|
||||
assertThat(mergeCommit, notNullValue());
|
||||
assertThat(mergeCommit.getCommitShortInfo().getMessage(), equalTo(commitMessage));
|
||||
|
||||
// Merging commit sha should work
|
||||
commitMessage = "merging from " + mergeCommit.getSHA1();
|
||||
GHBranch master = repository.getBranch("master");
|
||||
mergeCommit = master.merge(mergeCommit.getSHA1(), commitMessage);
|
||||
|
||||
assertThat(mergeCommit, notNullValue());
|
||||
assertThat(mergeCommit.getCommitShortInfo().getMessage(), equalTo(commitMessage));
|
||||
|
||||
mergeCommit = master.merge(mergeCommit.getSHA1(), commitMessage);
|
||||
// Should be null since all changes already merged
|
||||
assertThat(mergeCommit, nullValue());
|
||||
}
|
||||
|
||||
private void createRefAndPostContent(String branchName, String sha) throws IOException {
|
||||
String refName = "refs/heads/" + branchName;
|
||||
repository.createRef(refName, sha);
|
||||
repository.createContent().content(branchName).message(branchName).path(branchName).branch(branchName).commit();
|
||||
}
|
||||
}
|
||||
@@ -26,17 +26,22 @@ package org.kohsuke.github;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Date;
|
||||
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
|
||||
@SuppressWarnings("deprecation") // preview
|
||||
public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
|
||||
public class GHCheckRunBuilderTest extends AbstractGHAppInstallationTest {
|
||||
|
||||
protected GitHub getInstallationGithub() throws IOException {
|
||||
return getAppInstallationWithTokenApp3().getRoot();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createCheckRun() throws Exception {
|
||||
GHCheckRun checkRun = gitHub.getRepository("jglick/github-api-test")
|
||||
.createCheckRun("foo", "4a929d464a2fae7ee899ce603250f7dab304bc4b")
|
||||
GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
|
||||
.createCheckRun("foo", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
|
||||
.withStatus(GHCheckRun.Status.COMPLETED)
|
||||
.withConclusion(GHCheckRun.Conclusion.SUCCESS)
|
||||
.withDetailsURL("http://nowhere.net/stuff")
|
||||
@@ -55,7 +60,7 @@ public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
|
||||
.create();
|
||||
assertEquals("completed", checkRun.getStatus());
|
||||
assertEquals(1, checkRun.getOutput().getAnnotationsCount());
|
||||
assertEquals(546384586, checkRun.getId());
|
||||
assertEquals(1424883286, checkRun.getId());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -65,8 +70,8 @@ public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
|
||||
output.add(
|
||||
new GHCheckRunBuilder.Annotation("stuff.txt", 1, GHCheckRun.AnnotationLevel.NOTICE, "hello #" + i));
|
||||
}
|
||||
GHCheckRun checkRun = gitHub.getRepository("jglick/github-api-test")
|
||||
.createCheckRun("big", "4a929d464a2fae7ee899ce603250f7dab304bc4b")
|
||||
GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
|
||||
.createCheckRun("big", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
|
||||
.withConclusion(GHCheckRun.Conclusion.SUCCESS)
|
||||
.add(output)
|
||||
.create();
|
||||
@@ -74,37 +79,37 @@ public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
|
||||
assertEquals("Big Run", checkRun.getOutput().getTitle());
|
||||
assertEquals("Lots of stuff here »", checkRun.getOutput().getSummary());
|
||||
assertEquals(101, checkRun.getOutput().getAnnotationsCount());
|
||||
assertEquals(546384622, checkRun.getId());
|
||||
assertEquals(1424883599, checkRun.getId());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createCheckRunNoAnnotations() throws Exception {
|
||||
GHCheckRun checkRun = gitHub.getRepository("jglick/github-api-test")
|
||||
.createCheckRun("quick", "4a929d464a2fae7ee899ce603250f7dab304bc4b")
|
||||
GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
|
||||
.createCheckRun("quick", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
|
||||
.withConclusion(GHCheckRun.Conclusion.NEUTRAL)
|
||||
.add(new GHCheckRunBuilder.Output("Quick note", "nothing more to see here"))
|
||||
.create();
|
||||
assertEquals("completed", checkRun.getStatus());
|
||||
assertEquals(0, checkRun.getOutput().getAnnotationsCount());
|
||||
assertEquals(546384705, checkRun.getId());
|
||||
assertEquals(1424883957, checkRun.getId());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createPendingCheckRun() throws Exception {
|
||||
GHCheckRun checkRun = gitHub.getRepository("jglick/github-api-test")
|
||||
.createCheckRun("outstanding", "4a929d464a2fae7ee899ce603250f7dab304bc4b")
|
||||
GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
|
||||
.createCheckRun("outstanding", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
|
||||
.withStatus(GHCheckRun.Status.IN_PROGRESS)
|
||||
.create();
|
||||
assertEquals("in_progress", checkRun.getStatus());
|
||||
assertNull(checkRun.getConclusion());
|
||||
assertEquals(546469053, checkRun.getId());
|
||||
assertEquals(1424883451, checkRun.getId());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createCheckRunErrMissingConclusion() throws Exception {
|
||||
try {
|
||||
gitHub.getRepository("jglick/github-api-test")
|
||||
.createCheckRun("outstanding", "4a929d464a2fae7ee899ce603250f7dab304bc4b")
|
||||
getInstallationGithub().getRepository("hub4j-test-org/test-checks")
|
||||
.createCheckRun("outstanding", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
|
||||
.withStatus(GHCheckRun.Status.COMPLETED)
|
||||
.create();
|
||||
fail("should have been rejected");
|
||||
@@ -114,4 +119,26 @@ public class GHCheckRunBuilderTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateCheckRun() throws Exception {
|
||||
GHCheckRun checkRun = getInstallationGithub().getRepository("hub4j-test-org/test-checks")
|
||||
.createCheckRun("foo", "89a9ae301e35e667756034fdc933b1fc94f63fc1")
|
||||
.withStatus(GHCheckRun.Status.IN_PROGRESS)
|
||||
.withStartedAt(new Date(999_999_000))
|
||||
.add(new GHCheckRunBuilder.Output("Some Title", "what happened…")
|
||||
.add(new GHCheckRunBuilder.Annotation("stuff.txt",
|
||||
1,
|
||||
GHCheckRun.AnnotationLevel.NOTICE,
|
||||
"hello to you too").withTitle("Look here")))
|
||||
.create();
|
||||
GHCheckRun updated = checkRun.update()
|
||||
.withStatus(GHCheckRun.Status.COMPLETED)
|
||||
.withConclusion(GHCheckRun.Conclusion.SUCCESS)
|
||||
.withCompletedAt(new Date(999_999_999))
|
||||
.create();
|
||||
assertEquals(updated.getStartedAt(), new Date(999_999_000));
|
||||
assertEquals(updated.getName(), "foo");
|
||||
assertEquals(1, checkRun.getOutput().getAnnotationsCount());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@ package org.kohsuke.github;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Martin van Zijl
|
||||
@@ -10,17 +12,42 @@ import java.io.IOException;
|
||||
public class GHDeploymentTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
public void testGetDeploymentById() throws IOException {
|
||||
GHRepository repo = getRepository();
|
||||
GHDeployment deployment = repo.getDeployment(178653229);
|
||||
public void testGetDeploymentByIdStringPayload() throws IOException {
|
||||
final GHRepository repo = getRepository();
|
||||
final GHDeployment deployment = repo.getDeployment(178653229);
|
||||
assertNotNull(deployment);
|
||||
assertEquals(178653229, deployment.getId());
|
||||
assertEquals("production", deployment.getEnvironment());
|
||||
assertEquals("custom", deployment.getPayload());
|
||||
assertEquals("custom", deployment.getPayloadObject());
|
||||
assertEquals("master", deployment.getRef());
|
||||
assertEquals("3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", deployment.getSha());
|
||||
assertEquals("deploy", deployment.getTask());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetDeploymentByIdObjectPayload() throws IOException {
|
||||
final GHRepository repo = getRepository();
|
||||
final GHDeployment deployment = repo.getDeployment(178653229);
|
||||
assertNotNull(deployment);
|
||||
assertEquals(178653229, deployment.getId());
|
||||
assertEquals("production", deployment.getEnvironment());
|
||||
assertEquals("master", deployment.getRef());
|
||||
assertEquals("3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", deployment.getSha());
|
||||
assertEquals("deploy", deployment.getTask());
|
||||
final Map<String, Object> payload = deployment.getPayloadMap();
|
||||
assertEquals(4, payload.size());
|
||||
assertEquals(1, payload.get("custom1"));
|
||||
assertEquals("two", payload.get("custom2"));
|
||||
assertEquals(Arrays.asList("3", 3, "three"), payload.get("custom3"));
|
||||
assertNull(payload.get("custom4"));
|
||||
}
|
||||
|
||||
protected GHRepository getRepository() throws IOException {
|
||||
return getRepository(gitHub);
|
||||
}
|
||||
|
||||
private GHRepository getRepository(GitHub gitHub) throws IOException {
|
||||
private GHRepository getRepository(final GitHub gitHub) throws IOException {
|
||||
return gitHub.getOrganization("hub4j-test-org").getRepository("github-api");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,10 +3,12 @@ package org.kohsuke.github;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Collections;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import static java.lang.Boolean.TRUE;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
|
||||
public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
@@ -159,6 +161,16 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
// @Test
|
||||
// public void page_build() throws Exception {}
|
||||
|
||||
@Test
|
||||
public void ping() throws Exception {
|
||||
GHEventPayload.Ping event = GitHub.offline().parseEventPayload(payload.asReader(), GHEventPayload.Ping.class);
|
||||
|
||||
assertThat(event.getAction(), nullValue());
|
||||
assertThat(event.getSender().getLogin(), is("seregamorph"));
|
||||
assertThat(event.getRepository().getName(), is("acme-project-project"));
|
||||
assertThat(event.getOrganization(), nullValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
@Payload("public")
|
||||
public void public_() throws Exception {
|
||||
@@ -202,6 +214,75 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(event.getSender().getLogin(), is("baxterthehacker"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void pull_request_edited_base() throws Exception {
|
||||
GHEventPayload.PullRequest event = GitHub.offline()
|
||||
.parseEventPayload(payload.asReader(), GHEventPayload.PullRequest.class);
|
||||
|
||||
assertThat(event.getAction(), is("edited"));
|
||||
assertThat(event.getChanges().getTitle(), nullValue());
|
||||
assertThat(event.getPullRequest().getTitle(), is("REST-276 - easy-random"));
|
||||
assertThat(event.getChanges().getBase().getRef().getFrom(), is("develop"));
|
||||
assertThat(event.getChanges().getBase().getSha().getFrom(), is("4b0f3b9fd582b071652ccfccd10bfc8c143cff96"));
|
||||
assertThat(event.getPullRequest().getBase().getRef(), is("4.3"));
|
||||
assertThat(event.getPullRequest().getBody(), startsWith("**JIRA Ticket URL:**"));
|
||||
assertThat(event.getChanges().getBody(), nullValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void pull_request_edited_title() throws Exception {
|
||||
GHEventPayload.PullRequest event = GitHub.offline()
|
||||
.parseEventPayload(payload.asReader(), GHEventPayload.PullRequest.class);
|
||||
|
||||
assertThat(event.getAction(), is("edited"));
|
||||
assertThat(event.getChanges().getTitle().getFrom(), is("REST-276 - easy-random"));
|
||||
assertThat(event.getPullRequest().getTitle(), is("REST-276 - easy-random 4.3.0"));
|
||||
assertThat(event.getChanges().getBase(), nullValue());
|
||||
assertThat(event.getPullRequest().getBase().getRef(), is("4.3"));
|
||||
assertThat(event.getPullRequest().getBody(), startsWith("**JIRA Ticket URL:**"));
|
||||
assertThat(event.getChanges().getBody(), nullValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void pull_request_labeled() throws Exception {
|
||||
GHEventPayload.PullRequest event = GitHub.offline()
|
||||
.parseEventPayload(payload.asReader(), GHEventPayload.PullRequest.class);
|
||||
assertThat(event.getAction(), is("labeled"));
|
||||
assertThat(event.getNumber(), is(79));
|
||||
assertThat(event.getPullRequest().getNumber(), is(79));
|
||||
assertThat(event.getPullRequest().getTitle(), is("Base POJO test enhancement"));
|
||||
assertThat(event.getPullRequest().getBody(),
|
||||
is("This is a pretty simple change that we need to pull into develop."));
|
||||
assertThat(event.getPullRequest().getUser().getLogin(), is("seregamorph"));
|
||||
assertThat(event.getPullRequest().getHead().getUser().getLogin(), is("trilogy-group"));
|
||||
assertThat(event.getPullRequest().getHead().getRef(), is("changes"));
|
||||
assertThat(event.getPullRequest().getHead().getLabel(), is("trilogy-group:changes"));
|
||||
assertThat(event.getPullRequest().getHead().getSha(), is("4b91e3a970fb967fb7be4d52e0969f8e3fb063d0"));
|
||||
assertThat(event.getPullRequest().getBase().getUser().getLogin(), is("trilogy-group"));
|
||||
assertThat(event.getPullRequest().getBase().getRef(), is("3.10"));
|
||||
assertThat(event.getPullRequest().getBase().getLabel(), is("trilogy-group:3.10"));
|
||||
assertThat(event.getPullRequest().getBase().getSha(), is("7a735f17d686c6a1fc7df5b9d395e5863868f364"));
|
||||
assertThat(event.getPullRequest().isMerged(), is(false));
|
||||
assertThat(event.getPullRequest().getMergeable(), is(TRUE));
|
||||
assertThat(event.getPullRequest().getMergeableState(), is("draft"));
|
||||
assertThat(event.getPullRequest().getMergedBy(), nullValue());
|
||||
assertThat(event.getPullRequest().getCommentsCount(), is(1));
|
||||
assertThat(event.getPullRequest().getReviewComments(), is(14));
|
||||
assertThat(event.getPullRequest().getAdditions(), is(137));
|
||||
assertThat(event.getPullRequest().getDeletions(), is(81));
|
||||
assertThat(event.getPullRequest().getChangedFiles(), is(22));
|
||||
assertThat(event.getPullRequest().getLabels().iterator().next().getName(), is("Ready for Review"));
|
||||
assertThat(event.getRepository().getName(), is("trilogy-rest-api-framework"));
|
||||
assertThat(event.getRepository().getOwner().getLogin(), is("trilogy-group"));
|
||||
assertThat(event.getSender().getLogin(), is("schernov-xo"));
|
||||
assertThat(event.getLabel().getUrl(),
|
||||
is("https://api.github.com/repos/trilogy-group/trilogy-rest-api-framework/labels/rest%20api"));
|
||||
assertThat(event.getLabel().getName(), is("rest api"));
|
||||
assertThat(event.getLabel().getColor(), is("fef2c0"));
|
||||
assertThat(event.getLabel().getDescription(), is("REST API pull request"));
|
||||
assertThat(event.getOrganization().getLogin(), is("trilogy-group"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void pull_request_review() throws Exception {
|
||||
GHEventPayload.PullRequestReview event = GitHub.offline()
|
||||
@@ -215,6 +296,8 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(event.getPullRequest().getNumber(), is(8));
|
||||
assertThat(event.getPullRequest().getTitle(), is("Add a README description"));
|
||||
assertThat(event.getPullRequest().getBody(), is("Just a few more details"));
|
||||
assertThat(event.getReview().getHtmlUrl(),
|
||||
hasToString("https://github.com/baxterthehacker/public-repo/pull/8#pullrequestreview-2626884"));
|
||||
assertThat(event.getPullRequest().getUser().getLogin(), is("skalnik"));
|
||||
assertThat(event.getPullRequest().getHead().getUser().getLogin(), is("skalnik"));
|
||||
assertThat(event.getPullRequest().getHead().getRef(), is("patch-2"));
|
||||
@@ -271,7 +354,9 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(event.getCommits().size(), is(1));
|
||||
assertThat(event.getCommits().get(0).getSha(), is("0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c"));
|
||||
assertThat(event.getCommits().get(0).getAuthor().getEmail(), is("baxterthehacker@users.noreply.github.com"));
|
||||
assertThat(event.getCommits().get(0).getAuthor().getUsername(), is("baxterthehacker"));
|
||||
assertThat(event.getCommits().get(0).getCommitter().getEmail(), is("baxterthehacker@users.noreply.github.com"));
|
||||
assertThat(event.getCommits().get(0).getCommitter().getUsername(), is("baxterthehacker"));
|
||||
assertThat(event.getCommits().get(0).getAdded().size(), is(0));
|
||||
assertThat(event.getCommits().get(0).getRemoved().size(), is(0));
|
||||
assertThat(event.getCommits().get(0).getModified().size(), is(1));
|
||||
@@ -283,6 +368,8 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(event.getPusher().getName(), is("baxterthehacker"));
|
||||
assertThat(event.getPusher().getEmail(), is("baxterthehacker@users.noreply.github.com"));
|
||||
assertThat(event.getSender().getLogin(), is("baxterthehacker"));
|
||||
assertThat(event.getCompare(),
|
||||
is("https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -349,9 +436,20 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
}
|
||||
|
||||
// TODO implement support classes and write test
|
||||
// @Test
|
||||
// public void release() throws Exception {}
|
||||
@Test
|
||||
public void release_published() throws Exception {
|
||||
GHEventPayload.Release event = GitHub.offline()
|
||||
.parseEventPayload(payload.asReader(), GHEventPayload.Release.class);
|
||||
|
||||
assertThat(event.getAction(), is("published"));
|
||||
assertThat(event.getSender().getLogin(), is("seregamorph"));
|
||||
assertThat(event.getRepository().getName(), is("company-rest-api-framework"));
|
||||
assertThat(event.getOrganization().getLogin(), is("company-group"));
|
||||
assertThat(event.getInstallation(), nullValue());
|
||||
assertThat(event.getRelease().getName(), is("4.2"));
|
||||
assertThat(event.getRelease().getTagName(), is("rest-api-framework-4.2"));
|
||||
assertThat(event.getRelease().getBody(), is("REST-269 - unique test executions (#86) Sergey Chernov"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void repository() throws Exception {
|
||||
@@ -387,7 +485,25 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
@Payload("check-run")
|
||||
public void checkRunEvent() throws Exception {
|
||||
GHEventPayload.CheckRun event = GitHub.offline()
|
||||
.parseEventPayload(payload.asReader(), GHEventPayload.CheckRun.class);
|
||||
.parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub), GHEventPayload.CheckRun.class);
|
||||
GHCheckRun checkRun = verifyBasicCheckRunEvent(event);
|
||||
assertThat("pull body not populated offline", checkRun.getPullRequests().get(0).getBody(), nullValue());
|
||||
assertThat("using offline github", mockGitHub.getRequestCount(), equalTo(0));
|
||||
|
||||
gitHub = getGitHubBuilder().withEndpoint(mockGitHub.apiServer().baseUrl()).build();
|
||||
event = gitHub.parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub), GHEventPayload.CheckRun.class);
|
||||
checkRun = verifyBasicCheckRunEvent(event);
|
||||
|
||||
int expectedRequestCount = mockGitHub.isUseProxy() ? 3 : 2;
|
||||
assertThat("pull body should be populated",
|
||||
checkRun.getPullRequests().get(0).getBody(),
|
||||
equalTo("This is a pretty simple change that we need to pull into master."));
|
||||
assertThat("multiple getPullRequests() calls are made, the pull is populated only once",
|
||||
mockGitHub.getRequestCount(),
|
||||
equalTo(expectedRequestCount));
|
||||
}
|
||||
|
||||
private GHCheckRun verifyBasicCheckRunEvent(GHEventPayload.CheckRun event) throws IOException {
|
||||
assertThat(event.getRepository().getName(), is("Hello-World"));
|
||||
assertThat(event.getRepository().getOwner().getLogin(), is("Codertocat"));
|
||||
assertThat(event.getAction(), is("created"));
|
||||
@@ -406,9 +522,9 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(formatter.format(checkRun.getCompletedAt()), is("2019-05-15T20:22:22Z"));
|
||||
|
||||
assertThat(checkRun.getConclusion(), is("success"));
|
||||
assertThat(checkRun.getUrl().toString(),
|
||||
is("https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228"));
|
||||
assertThat(checkRun.getHtmlUrl().toString(), is("https://github.com/Codertocat/Hello-World/runs/128620228"));
|
||||
assertThat(checkRun.getUrl().toString(), endsWith("/repos/Codertocat/Hello-World/check-runs/128620228"));
|
||||
assertThat(checkRun.getHtmlUrl().toString(),
|
||||
endsWith("https://github.com/Codertocat/Hello-World/runs/128620228"));
|
||||
assertThat(checkRun.getDetailsUrl().toString(), is("https://octocoders.io"));
|
||||
assertThat(checkRun.getApp().getId(), is(29310L));
|
||||
assertThat(checkRun.getCheckSuite().getId(), is(118578147L));
|
||||
@@ -417,18 +533,41 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(checkRun.getOutput().getText(), nullValue());
|
||||
assertThat(checkRun.getOutput().getAnnotationsCount(), is(0));
|
||||
assertThat(checkRun.getOutput().getAnnotationsUrl().toString(),
|
||||
is("https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations"));
|
||||
endsWith("/repos/Codertocat/Hello-World/check-runs/128620228/annotations"));
|
||||
|
||||
// Checks the deserialization of sender
|
||||
assertThat(event.getSender().getId(), is(21031067L));
|
||||
|
||||
assertThat(checkRun.getPullRequests(), notNullValue());
|
||||
assertThat(checkRun.getPullRequests().size(), equalTo(1));
|
||||
assertThat(checkRun.getPullRequests().get(0).getNumber(), equalTo(2));
|
||||
return checkRun;
|
||||
}
|
||||
|
||||
@Test
|
||||
@Payload("check-suite")
|
||||
public void checkSuiteEvent() throws Exception {
|
||||
GHEventPayload.CheckSuite event = GitHub.offline()
|
||||
.parseEventPayload(payload.asReader(), GHEventPayload.CheckSuite.class);
|
||||
.parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub), GHEventPayload.CheckSuite.class);
|
||||
GHCheckSuite checkSuite = verifyBasicCheckSuiteEvent(event);
|
||||
assertThat("pull body not populated offline", checkSuite.getPullRequests().get(0).getBody(), nullValue());
|
||||
assertThat("using offline github", mockGitHub.getRequestCount(), equalTo(0));
|
||||
|
||||
gitHub = getGitHubBuilder().withEndpoint(mockGitHub.apiServer().baseUrl()).build();
|
||||
event = gitHub.parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub),
|
||||
GHEventPayload.CheckSuite.class);
|
||||
checkSuite = verifyBasicCheckSuiteEvent(event);
|
||||
|
||||
int expectedRequestCount = mockGitHub.isUseProxy() ? 3 : 2;
|
||||
assertThat("pull body should be populated",
|
||||
checkSuite.getPullRequests().get(0).getBody(),
|
||||
equalTo("This is a pretty simple change that we need to pull into master."));
|
||||
assertThat("multiple getPullRequests() calls are made, the pull is populated only once",
|
||||
mockGitHub.getRequestCount(),
|
||||
lessThanOrEqualTo(expectedRequestCount));
|
||||
}
|
||||
|
||||
private GHCheckSuite verifyBasicCheckSuiteEvent(GHEventPayload.CheckSuite event) throws IOException {
|
||||
assertThat(event.getRepository().getName(), is("Hello-World"));
|
||||
assertThat(event.getRepository().getOwner().getLogin(), is("Codertocat"));
|
||||
assertThat(event.getAction(), is("completed"));
|
||||
@@ -445,7 +584,7 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(checkSuite.getAfter(), is("ec26c3e57ca3a959ca5aad62de7213c562f8c821"));
|
||||
assertThat(checkSuite.getLatestCheckRunsCount(), is(1));
|
||||
assertThat(checkSuite.getCheckRunsUrl().toString(),
|
||||
is("https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs"));
|
||||
endsWith("/repos/Codertocat/Hello-World/check-suites/118578147/check-runs"));
|
||||
assertThat(checkSuite.getHeadCommit().getMessage(), is("Update README.md"));
|
||||
assertThat(checkSuite.getHeadCommit().getId(), is("ec26c3e57ca3a959ca5aad62de7213c562f8c821"));
|
||||
assertThat(checkSuite.getHeadCommit().getTreeId(), is("31b122c26a97cf9af023e9ddab94a82c6e77b0ea"));
|
||||
@@ -457,6 +596,11 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(formatter.format(checkSuite.getHeadCommit().getTimestamp()), is("2019-05-15T15:20:30Z"));
|
||||
|
||||
assertThat(checkSuite.getApp().getId(), is(29310L));
|
||||
|
||||
assertThat(checkSuite.getPullRequests(), notNullValue());
|
||||
assertThat(checkSuite.getPullRequests().size(), equalTo(1));
|
||||
assertThat(checkSuite.getPullRequests().get(0).getNumber(), equalTo(2));
|
||||
return checkSuite;
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -70,6 +70,26 @@ public class GHMilestoneTest extends AbstractGitHubWireMockTest {
|
||||
assertEquals(null, issue.getMilestone());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsetMilestoneFromPullRequest() throws IOException {
|
||||
GHRepository repo = getRepository();
|
||||
GHMilestone milestone = repo.createMilestone("Unset Test Milestone", "For testUnsetMilestone");
|
||||
GHPullRequest p = repo.createPullRequest("testUnsetMilestoneFromPullRequest",
|
||||
"test/stable",
|
||||
"master",
|
||||
"## test pull request");
|
||||
|
||||
// set the milestone
|
||||
p.setMilestone(milestone);
|
||||
p = repo.getPullRequest(p.getNumber()); // force reload
|
||||
assertEquals(milestone.getNumber(), p.getMilestone().getNumber());
|
||||
|
||||
// remove the milestone
|
||||
p.setMilestone(null);
|
||||
p = repo.getPullRequest(p.getNumber()); // force reload
|
||||
assertNull(p.getMilestone());
|
||||
}
|
||||
|
||||
protected GHRepository getRepository() throws IOException {
|
||||
return getRepository(gitHub);
|
||||
}
|
||||
|
||||
@@ -9,9 +9,12 @@ import org.kohsuke.github.GHOrganization.Permission;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import static org.hamcrest.Matchers.*;
|
||||
|
||||
public class GHOrganizationTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
public static final String GITHUB_API_TEST = "github-api-test";
|
||||
public static final String GITHUB_API_TEMPLATE_TEST = "github-api-template-test";
|
||||
public static final String TEAM_NAME_CREATE = "create-team-test";
|
||||
|
||||
@Before
|
||||
@@ -56,6 +59,58 @@ public class GHOrganizationTest extends AbstractGitHubWireMockTest {
|
||||
Assert.assertNotNull(repository.getReadme());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateRepositoryWithParameterIsTemplate() throws IOException {
|
||||
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEMPLATE_TEST);
|
||||
|
||||
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
GHTeam team = org.getTeamByName("Core Developers");
|
||||
|
||||
int requestCount = mockGitHub.getRequestCount();
|
||||
GHRepository repository = org.createRepository(GITHUB_API_TEMPLATE_TEST)
|
||||
.description("a test template repository used to test kohsuke's github-api")
|
||||
.homepage("http://github-api.kohsuke.org/")
|
||||
.team(team)
|
||||
.autoInit(true)
|
||||
.templateRepository(true)
|
||||
.create();
|
||||
Assert.assertNotNull(repository);
|
||||
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 1));
|
||||
|
||||
Assert.assertNotNull(repository.getReadme());
|
||||
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 2));
|
||||
|
||||
// isTemplate() does not call populate() from create
|
||||
assertThat(repository.isTemplate(), equalTo(true));
|
||||
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 2));
|
||||
|
||||
repository = org.getRepository(GITHUB_API_TEMPLATE_TEST);
|
||||
|
||||
// first isTemplate() calls populate()
|
||||
assertThat(repository.isTemplate(), equalTo(true));
|
||||
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 4));
|
||||
|
||||
// second isTemplate() does not call populate()
|
||||
assertThat(repository.isTemplate(), equalTo(true));
|
||||
assertThat(mockGitHub.getRequestCount(), equalTo(requestCount + 4));
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateRepositoryWithTemplate() throws IOException {
|
||||
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEST);
|
||||
|
||||
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
GHRepository repository = org.createRepository(GITHUB_API_TEST)
|
||||
.fromTemplateRepository(GITHUB_API_TEST_ORG, GITHUB_API_TEMPLATE_TEST)
|
||||
.owner(GITHUB_API_TEST_ORG)
|
||||
.create();
|
||||
|
||||
Assert.assertNotNull(repository);
|
||||
Assert.assertNotNull(repository.getReadme());
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInviteUser() throws IOException {
|
||||
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
|
||||
@@ -211,6 +211,106 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
|
||||
fail();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setBaseBranch() throws Exception {
|
||||
String prName = "testSetBaseBranch";
|
||||
String originalBaseBranch = "master";
|
||||
String newBaseBranch = "gh-pages";
|
||||
|
||||
GHPullRequest pullRequest = getRepository().createPullRequest(prName, "test/stable", "master", "## test");
|
||||
|
||||
assertEquals("Pull request base branch is supposed to be " + originalBaseBranch,
|
||||
originalBaseBranch,
|
||||
pullRequest.getBase().getRef());
|
||||
|
||||
GHPullRequest responsePullRequest = pullRequest.setBaseBranch(newBaseBranch);
|
||||
|
||||
assertEquals("Pull request base branch is supposed to be " + newBaseBranch,
|
||||
newBaseBranch,
|
||||
responsePullRequest.getBase().getRef());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setBaseBranchNonExisting() throws Exception {
|
||||
String prName = "testSetBaseBranchNonExisting";
|
||||
String originalBaseBranch = "master";
|
||||
String newBaseBranch = "non-existing";
|
||||
|
||||
GHPullRequest pullRequest = getRepository().createPullRequest(prName, "test/stable", "master", "## test");
|
||||
|
||||
assertEquals("Pull request base branch is supposed to be " + originalBaseBranch,
|
||||
originalBaseBranch,
|
||||
pullRequest.getBase().getRef());
|
||||
|
||||
try {
|
||||
pullRequest.setBaseBranch(newBaseBranch);
|
||||
} catch (HttpException e) {
|
||||
assertThat(e, instanceOf(HttpException.class));
|
||||
assertThat(e.toString(), containsString("Proposed base branch 'non-existing' was not found"));
|
||||
}
|
||||
|
||||
pullRequest.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateOutdatedBranchesUnexpectedHead() throws Exception {
|
||||
String prName = "testUpdateOutdatedBranches";
|
||||
String outdatedRefName = "refs/heads/outdated";
|
||||
GHRepository repository = gitHub.getOrganization("hub4j-test-org").getRepository("updateOutdatedBranches");
|
||||
|
||||
GHRef outdatedRef = repository.getRef(outdatedRefName);
|
||||
outdatedRef.updateTo("6440189369f9f33b2366556a94dbc26f2cfdd969", true);
|
||||
|
||||
GHPullRequest outdatedPullRequest = repository.createPullRequest(prName, "outdated", "master", "## test");
|
||||
|
||||
do {
|
||||
Thread.sleep(5000);
|
||||
outdatedPullRequest.refresh();
|
||||
} while (outdatedPullRequest.getMergeableState().equalsIgnoreCase("unknown"));
|
||||
|
||||
assertEquals("Pull request is supposed to be not up to date",
|
||||
"behind",
|
||||
outdatedPullRequest.getMergeableState());
|
||||
|
||||
outdatedRef.updateTo("f567328eb81270487864963b7d7446953353f2b5", true);
|
||||
|
||||
try {
|
||||
outdatedPullRequest.updateBranch();
|
||||
} catch (HttpException e) {
|
||||
assertThat(e, instanceOf(HttpException.class));
|
||||
assertThat(e.toString(), containsString("expected head sha didn’t match current head ref."));
|
||||
}
|
||||
|
||||
outdatedPullRequest.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateOutdatedBranches() throws Exception {
|
||||
String prName = "testUpdateOutdatedBranches";
|
||||
String outdatedRefName = "refs/heads/outdated";
|
||||
GHRepository repository = gitHub.getOrganization("hub4j-test-org").getRepository("updateOutdatedBranches");
|
||||
|
||||
repository.getRef(outdatedRefName).updateTo("6440189369f9f33b2366556a94dbc26f2cfdd969", true);
|
||||
|
||||
GHPullRequest outdatedPullRequest = repository.createPullRequest(prName, "outdated", "master", "## test");
|
||||
|
||||
do {
|
||||
Thread.sleep(5000);
|
||||
outdatedPullRequest.refresh();
|
||||
} while (outdatedPullRequest.getMergeableState().equalsIgnoreCase("unknown"));
|
||||
|
||||
assertEquals("Pull request is supposed to be not up to date",
|
||||
"behind",
|
||||
outdatedPullRequest.getMergeableState());
|
||||
|
||||
outdatedPullRequest.updateBranch();
|
||||
outdatedPullRequest.refresh();
|
||||
|
||||
assertNotEquals("Pull request is supposed to be up to date", "behind", outdatedPullRequest.getMergeableState());
|
||||
|
||||
outdatedPullRequest.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void squashMerge() throws Exception {
|
||||
String name = "squashMerge";
|
||||
|
||||
@@ -13,6 +13,7 @@ import java.util.Set;
|
||||
|
||||
import static org.hamcrest.Matchers.*;
|
||||
import static org.hamcrest.core.IsInstanceOf.instanceOf;
|
||||
import static org.kohsuke.github.GHVerification.Reason.*;
|
||||
|
||||
/**
|
||||
* @author Liam Newman
|
||||
@@ -75,6 +76,40 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(branch.getName(), is("test/#UrlEncode"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createSignedCommitVerifyError() throws IOException {
|
||||
GHRepository repository = getRepository();
|
||||
|
||||
GHTree ghTree = new GHTreeBuilder(repository).textEntry("a", "", false).create();
|
||||
|
||||
GHVerification verification = repository.createCommit()
|
||||
.message("test signing")
|
||||
.withSignature("-----BEGIN PGP SIGNATURE-----\ninvalid\n-----END PGP SIGNATURE-----")
|
||||
.tree(ghTree.getSha())
|
||||
.create()
|
||||
.getCommitShortInfo()
|
||||
.getVerification();
|
||||
|
||||
assertEquals(GPGVERIFY_ERROR, verification.getReason());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createSignedCommitUnknownSignatureType() throws IOException {
|
||||
GHRepository repository = getRepository();
|
||||
|
||||
GHTree ghTree = new GHTreeBuilder(repository).textEntry("a", "", false).create();
|
||||
|
||||
GHVerification verification = repository.createCommit()
|
||||
.message("test signing")
|
||||
.withSignature("unknown")
|
||||
.tree(ghTree.getSha())
|
||||
.create()
|
||||
.getCommitShortInfo()
|
||||
.getVerification();
|
||||
|
||||
assertEquals(UNKNOWN_SIGNATURE_TYPE, verification.getReason());
|
||||
}
|
||||
|
||||
// Issue #607
|
||||
@Test
|
||||
public void getBranchNonExistentBut200Status() throws Exception {
|
||||
@@ -191,6 +226,7 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
List<GHUser> users = new ArrayList<GHUser>();
|
||||
|
||||
users.add(user);
|
||||
users.add(gitHub.getUser("jimmysombrero2"));
|
||||
repo.addCollaborators(users, GHOrganization.Permission.PUSH);
|
||||
|
||||
GHPersonSet<GHUser> collabs = repo.getCollaborators();
|
||||
@@ -250,6 +286,26 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
assertTrue(r.listLanguages().containsKey(mainLanguage));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listCommitCommentsNoComments() throws IOException {
|
||||
List<GHCommitComment> commitComments = getRepository()
|
||||
.listCommitComments("c413fc1e3057332b93850ea48202627d29a37de5")
|
||||
.toList();
|
||||
|
||||
assertThat("Commit has no comments", commitComments.isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listCommitCommentsSomeComments() throws IOException {
|
||||
List<GHCommitComment> commitComments = getRepository()
|
||||
.listCommitComments("499d91f9f846b0087b2a20cf3648b49dc9c2eeef")
|
||||
.toList();
|
||||
|
||||
assertThat("Two comments present", commitComments.size() == 2);
|
||||
assertThat("Comment text found", commitComments.stream().anyMatch(it -> it.body.equals("comment 1")));
|
||||
assertThat("Comment text found", commitComments.stream().anyMatch(it -> it.body.equals("comment 2")));
|
||||
}
|
||||
|
||||
@Test // Issue #261
|
||||
public void listEmptyContributors() throws IOException {
|
||||
for (GHRepository.Contributor c : gitHub.getRepository(GITHUB_API_TEST_ORG + "/empty").listContributors()) {
|
||||
|
||||
@@ -4,6 +4,7 @@ import org.junit.Test;
|
||||
import org.kohsuke.github.GHTeam.Privacy;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
@@ -34,6 +35,31 @@ public class GHTeamTest extends AbstractGitHubWireMockTest {
|
||||
assertEquals(description, team.getDescription());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testlistMembersAdmin() throws IOException {
|
||||
String teamSlug = "dummy-team";
|
||||
|
||||
GHTeam team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
|
||||
|
||||
List<GHUser> admins = team.listMembers("admin").asList();
|
||||
|
||||
assertNotNull(admins);
|
||||
assertThat("One admin in dummy team", admins.size() == 1);
|
||||
assertThat("Specific user in admin team",
|
||||
admins.stream().anyMatch(ghUser -> ghUser.getLogin().equals("bitwiseman")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testlistMembersNoMatch() throws IOException {
|
||||
String teamSlug = "dummy-team";
|
||||
|
||||
GHTeam team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug);
|
||||
|
||||
List<GHUser> justMembers = team.listMembers("member").asList();
|
||||
|
||||
assertThat("No regular members in team", justMembers.isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetPrivacy() throws IOException {
|
||||
String teamSlug = "dummy-team";
|
||||
|
||||
@@ -4,6 +4,7 @@ import org.junit.Test;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.Instant;
|
||||
import java.time.format.DateTimeParseException;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.Date;
|
||||
import java.util.TimeZone;
|
||||
@@ -20,25 +21,38 @@ public class GitHubStaticTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
public void timeRoundTrip() throws Exception {
|
||||
Instant instantNow = Instant.now();
|
||||
final long stableInstantEpochMilli = 1533721222255L;
|
||||
Instant instantNow = Instant.ofEpochMilli(stableInstantEpochMilli);
|
||||
|
||||
Date instantSeconds = Date.from(instantNow.truncatedTo(ChronoUnit.SECONDS));
|
||||
Date instantMillis = Date.from(instantNow.truncatedTo(ChronoUnit.MILLIS));
|
||||
|
||||
// if we happen to land exactly on zero milliseconds, add 1 milli
|
||||
if (instantSeconds.equals(instantMillis)) {
|
||||
instantMillis = Date.from(instantNow.plusMillis(1).truncatedTo(ChronoUnit.MILLIS));
|
||||
}
|
||||
String instantFormatSlash = formatZonedDate(instantMillis, "yyyy/MM/dd HH:mm:ss ZZZZ", "PST");
|
||||
assertThat(instantFormatSlash, equalTo("2018/08/08 02:40:22 -0700"));
|
||||
|
||||
// TODO: other formats
|
||||
String instantFormatSlash = formatDate(instantMillis, "yyyy/MM/dd HH:mm:ss ZZZZ");
|
||||
String instantFormatDash = formatDate(instantMillis, "yyyy-MM-dd'T'HH:mm:ss'Z'");
|
||||
assertThat(instantFormatDash, equalTo("2018-08-08T09:40:22Z"));
|
||||
|
||||
String instantFormatMillis = formatDate(instantMillis, "yyyy-MM-dd'T'HH:mm:ss.S'Z'");
|
||||
assertThat(instantFormatMillis, equalTo("2018-08-08T09:40:22.255Z"));
|
||||
|
||||
String instantFormatMillisZoned = formatZonedDate(instantMillis, "yyyy-MM-dd'T'HH:mm:ss.SXXX", "PST");
|
||||
assertThat(instantFormatMillisZoned, equalTo("2018-08-08T02:40:22.255-07:00"));
|
||||
|
||||
String instantSecondsFormatMillis = formatDate(instantSeconds, "yyyy-MM-dd'T'HH:mm:ss.S'Z'");
|
||||
assertThat(instantSecondsFormatMillis, equalTo("2018-08-08T09:40:22.0Z"));
|
||||
|
||||
String instantSecondsFormatMillisZoned = formatZonedDate(instantSeconds, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", "PST");
|
||||
assertThat(instantSecondsFormatMillisZoned, equalTo("2018-08-08T02:40:22.000-07:00"));
|
||||
|
||||
String instantBadFormat = formatDate(instantMillis, "yy-MM-dd'T'HH:mm'Z'");
|
||||
assertThat(instantBadFormat, equalTo("18-08-08T09:40Z"));
|
||||
|
||||
assertThat(GitHubClient.parseDate(GitHubClient.printDate(instantSeconds)),
|
||||
equalTo(GitHubClient.parseDate(GitHubClient.printDate(instantMillis))));
|
||||
assertThat(GitHubClient.printDate(instantSeconds), equalTo("2018-08-08T09:40:22Z"));
|
||||
assertThat(GitHubClient.printDate(GitHubClient.parseDate(instantFormatMillisZoned)),
|
||||
equalTo("2018-08-08T09:40:22Z"));
|
||||
|
||||
assertThat(instantSeconds, equalTo(GitHubClient.parseDate(GitHubClient.printDate(instantSeconds))));
|
||||
|
||||
@@ -51,14 +65,16 @@ public class GitHubStaticTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
// This parser does not truncate to the nearest second, so it will be equal
|
||||
assertThat(instantMillis, equalTo(GitHubClient.parseDate(instantFormatMillis)));
|
||||
assertThat(instantMillis, equalTo(GitHubClient.parseDate(instantFormatMillisZoned)));
|
||||
|
||||
assertThat(instantSeconds, equalTo(GitHubClient.parseDate(instantSecondsFormatMillis)));
|
||||
assertThat(instantSeconds, equalTo(GitHubClient.parseDate(instantSecondsFormatMillisZoned)));
|
||||
|
||||
try {
|
||||
GitHubClient.parseDate(instantBadFormat);
|
||||
fail("Bad time format should throw.");
|
||||
} catch (IllegalStateException e) {
|
||||
assertThat(e.getMessage(), equalTo("Unable to parse the timestamp: " + instantBadFormat));
|
||||
} catch (DateTimeParseException e) {
|
||||
assertThat(e.getMessage(), equalTo("Text '" + instantBadFormat + "' could not be parsed at index 0"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,8 +242,12 @@ public class GitHubStaticTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
|
||||
static String formatDate(Date dt, String format) {
|
||||
return formatZonedDate(dt, format, "GMT");
|
||||
}
|
||||
|
||||
static String formatZonedDate(Date dt, String format, String timeZone) {
|
||||
SimpleDateFormat df = new SimpleDateFormat(format);
|
||||
df.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||
df.setTimeZone(TimeZone.getTimeZone(timeZone));
|
||||
return df.format(dt);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,8 @@ public class LifecycleTest extends AbstractGitHubWireMockTest {
|
||||
private GHAsset uploadAsset(GHRelease release) throws IOException {
|
||||
GHAsset asset = release.uploadAsset(new File("LICENSE.txt"), "application/text");
|
||||
assertNotNull(asset);
|
||||
List<GHAsset> cachedAssets = release.assets();
|
||||
assertEquals(0, cachedAssets.size());
|
||||
List<GHAsset> assets = release.getAssets();
|
||||
assertEquals(1, assets.size());
|
||||
assertEquals("LICENSE.txt", assets.get(0).getName());
|
||||
|
||||
@@ -125,7 +125,7 @@ public class WireMockStatusReporterTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(e, Matchers.<Exception>instanceOf(GHFileNotFoundException.class));
|
||||
assertThat(e.getMessage(),
|
||||
containsString(
|
||||
"{\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/v3/repos/#get\"}"));
|
||||
"{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#get-a-repository\"}"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
28
src/test/resources/ghapi-test-app-1.private-key.pem
Normal file
28
src/test/resources/ghapi-test-app-1.private-key.pem
Normal file
@@ -0,0 +1,28 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDG98AU2pNVCCp/
|
||||
THwEqlDUZ8GRKY9TO52x+3FPTnx69D63f4k44N0DOCEk4q1mKQ0QYy6rgQcyWtwd
|
||||
GYRpgP/KU5Q3ozEnHUJ82d5HgOCMcYdpqaOb9wJRmj0s9cibDd7TmGBv0DTx5KZi
|
||||
ilqv1mYFbeIC/eVv/id0aG6PMef1+fJeGplQQ1mfdvQP/6ftxsVBHyIhYvZLLGLL
|
||||
FrcONmKTJ9Iy4F4M64PE7YkNVIEMu2cVpIxkHiZuTamr3DPgm4nRp2qe3EA2bLRA
|
||||
Zp4Q+WJmJsVgaDRqJYe8U2IVO72eHdWjoG/lV9HOfc+eH4ns8ZnRNtTnH67DnocT
|
||||
+GAbZp0NAgMBAAECggEARlWIGhcWI+XqF+vynzeRsTQoUedOGg8l9Ke861sEV/aF
|
||||
QRqdaHTcy+mIleBniYiTbKqS8d9/qsZBryu5Cg6m3V/kMjLHClumiDoAAGjHd/4d
|
||||
7zUfd9++exg57e3Ihz9E+KmR1ZTVUnkQdB8SZbw1fk/UqFgWRhui2Nyd0JLEu8eK
|
||||
QTE7MMs3w8Iv8FtC7BJBrEW2uc0h/f5gV4XrS2PR+YFKlFDN566+TILS2Q3h1h6p
|
||||
yqriZygLTQc/z0nqB098KgRcNr3LtCTlaSBBKfFEwG5Glj9QybfEuP6PihrYOFN1
|
||||
SeDCI+/b/WNDsspBheks/AYy6zVSPsWxWoHXhLxSQQKBgQD2Q4FtH6n8gqFMmFX3
|
||||
74Suvoi1YKKbeFjloQ4Pu3rPdEKuza5lgfw+YlO/nMDnQF0b+mogRD2Xs23CIub5
|
||||
RS3TZuhxkdz7VhPRwKHuYs7D5oa3BGAgRyEjG0JIZePNHO1kUSkIRrF4FXFgGpQ8
|
||||
ghdDtodXbrMjZNak8bIq6X/zkQKBgQDO1Y0ifMv3rAu0PEbfnaqXrl09c892cpjP
|
||||
A57T7e53x2WKaNwQbYixNdAbDtGEKXjIHRaV9csG1XSQh+OchT7BSOpgIDxFtK5l
|
||||
aRuov+tcMInjojZjwMv87Pet0QrZhLIZU1883q+LiM/HtHPtgsem0AzovcLoY8mH
|
||||
RuR37oebvQKBgA54ewN5h9iRqH7CuNJ/3ZETGx9lVUjDcp3Tr+rWvmmwUDbLWUMX
|
||||
t0XHK1qoEGHGU3JQbaoFuITQg1OUD3R4TzAL7P63bn/KWBHMOveyEKpMQoBAnpFm
|
||||
/Jh+go+UhSVJXN23My0MUmNXBzl5dlpz3oAZGqzVkWs0ArTgivKgk+cxAoGAGp7r
|
||||
ulubmPYAz6LOcGuHkFw1zfoA4rrfJg3OPHKsNahpTkYuxMKETGKjtUfT+ZGo5QCx
|
||||
bn2jMu74QL3ssrGHoTL0T4j2mPYnWBAOKksBTO1GYhD3tSEUYCpTuoBkSBjHH3FW
|
||||
mawDpg7mx0pXfWNOtQ6kCrSZyHVHc+zQ7Qq7U3UCgYBAZEnFW3MIwAizcioEmc53
|
||||
TJuWSvdvRsfJRNqFSpPxj5xfY9HfgpPceRlh4+jwG1bRWzt4MQKh4DyFvi06NhD7
|
||||
MnYhTX+P1jIyzV5SU8GUud/r6TFwhOWpW3zqaTCep5+VIS5W2rR322NQAZmD2u1+
|
||||
h+U8DZTYFDiNzmsHem2tNA==
|
||||
-----END PRIVATE KEY-----
|
||||
28
src/test/resources/ghapi-test-app-2.private-key.pem
Normal file
28
src/test/resources/ghapi-test-app-2.private-key.pem
Normal file
@@ -0,0 +1,28 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDYm8i4enZxXwQR
|
||||
rfyBkKIroJIMGw3JSG+JPaxvcxpp6GpGOqmGsEQwzEOeuxX705CeTjpZ6/5xOCYV
|
||||
kNLmwTBG/wGpsjGLY1kV6FAC1jHkFIBWSxkmQaZRsK+MhQtREd81uMa1wA/2j3II
|
||||
AUNd0aVWLRlGte2RlDq16mvnqlgzfKB40TgC0Rww2OdoEYsVJ0tph9JvpVgGSMJD
|
||||
Irr3ZVn5hwpJBliC+obst8lIJw1JfEoYT8jU6QvfgViMzRhKNNPy22fCazfxsk1m
|
||||
+uh7c3tM0I8jnaNFkHgRXPzuXFrcgyixXczHThEP+bifWtsBRPYSVy5/RAGDIzXO
|
||||
e3npKTS1AgMBAAECggEBAMXhs4IMpm21zsLT/ozi87QFccbLZFHQ8cwf4orCTYwZ
|
||||
PhVAfCTGnNUzlkbJRTEUutZUQuxpMr59/BTRhEo4jQEe74b2elqLfRQNciLVSSjD
|
||||
Lecnnicb7HROhGFMHeWG/TJXxni9qBeoPhVgCgoIfxH2C1RU2V6YWvZb3Q37ya3l
|
||||
6kCoRfHkSBTkAySdlZDEfYCmIyx6KPIzLFX3VI/T1CAcSuTJnHe+7gdiX4ngq4Ee
|
||||
ZPppHLo76kyQjd05reGTtLq40utIfzHkSgh5nLHMnU+O3xNyyPZbZE1Gp8czgaBe
|
||||
AoAMCPfwY7l1fBy4RQ1TE2FT9sRksNO6VuV+AT4fwzUCgYEA/dVvhT8hVVldLwgn
|
||||
EObgyU35NLyHWba3AanhETI+bCERq1sUXd5LMVPCRJoT/i+zNRMhELmMeVxMYEqW
|
||||
hzBF9XoE6ONqJ7pdRh9brysfKOye0goOXWr2XKZL8mO8utWsV6ehYiKLvgrAjEDR
|
||||
rToknzp8jIQqPaiheWZZIjFvdCMCgYEA2nUFQGss5Iy3FyNLQITwNRgzu75XAYML
|
||||
wM69iW5eF5dNF5p/6kcu12pgSW2mMI9rSVPiMqJqig2F5sIsqvBxIKS1yWuWn1CO
|
||||
wdP3O7GVHiDXpdra0j8z8PBhJ0jRHED5q259dXC0BvqqU8U8cOFxlgr96ZZP+TS3
|
||||
2Tw/RRzkdUcCgYBpcjXuu4gEZahBNnjMG6070wl4b+0mRrIFneWieCXYU3B8p8xx
|
||||
JjxEVJA6YWt2x6gBn124DeyeKcqMoc+gf1xAmpzZhkd+E3xV+gbjYN2D6bAcfxLy
|
||||
mdGYMXkRS3+GeecrTrbLBqDYpKzSVscD2EiIYQqGcQz/KkNSJENY4gJz0wKBgQCX
|
||||
6eR7BYy0an4v4uVDuq5n3aqsFhLfBEg6DgqT9WINObPshA4L1vBl8J2AsnVtM27C
|
||||
EUktOPCpi/nfnIv/WzDwKFoZ9W1K4HRFqac1paoyx1fvCCA/MKBoHmERNnvkD/MP
|
||||
Gci40GUArXOgyXncbYnVc1NbCqIWhGiM8m51G0BrpQKBgAffan4sPiNnWeQlvbAj
|
||||
kW1GkGCIOqMHVgjOxVlDGri/GLwAt1zOxHT7i9nQb6wpE0fAb05ydjPOuA7iIeG4
|
||||
jZdQWfY6QIhlYkDq7JiRCkcQ3auMzplSV17rDSiBL+ttOY8tLdX5fJVmeGdq7Gs1
|
||||
YPW1uoYsHNTFWew5Ae31KaLn
|
||||
-----END PRIVATE KEY-----
|
||||
28
src/test/resources/ghapi-test-app-3.private-key.pem
Normal file
28
src/test/resources/ghapi-test-app-3.private-key.pem
Normal file
@@ -0,0 +1,28 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC4vG2q4zLRcQGe
|
||||
5Z4seo8LY2hROKkdy4LmA96TeCxwDd/bnFIIQGmWMZHVZkyruuLLArTt50/mJ4yC
|
||||
ggedRiw8CmH8s6iQmZQyRu+6gKVqm5KozQ2omniGAJU6KqZTbUUpvytpmmcWcoLU
|
||||
eMoLCJTScRK2rofbiSCFy1WwlyVe1b+nBNf2b9VG9bE461K47kgk1cI1/TqZ3QeI
|
||||
jc/0jV+w7qdTdCqD5A2FyFZa5mU6jj83bVyC0O0AlZlEnwHN58vvN3j7uljF6Mh0
|
||||
sx+0xtRjmTncl7puUhpQBJrH/pIfjuY5MAefMaOAhXMZM3lZyh75URlO3vh1KKwQ
|
||||
EJcdCi+FAgMBAAECggEARDIDBf+DJf/iikbXgjHoFlsnCjyxaXdUJhctliDZvq/Q
|
||||
gKCPQ86La892t2FhUk/WIv0nz18BhsP4wcDAkNVzxOJMU936jw6yv3CiVKXi6pzt
|
||||
ofS4YxJLBaS3cdaGuetvib6xhvVhss6o70h7xWDwl1L4homdS3SuldV/F4ZkXEJI
|
||||
v5uyh0TFy44dSS01muJQfZHXGF7Pvqx18CY8p/NSOKTYJRghSI3GiLOD7S12GHi1
|
||||
dBVp3D9roXCFUG0zijIIntcWnQGoCr71GwQHlwg0hPz3v/lOQZBB814+j5tUKw78
|
||||
zrXAAIb9yQbsNkmY5rVm69kg+ixG0uq9JVqJmkBvrQKBgQDrmJGuQrfuzE5PoYJC
|
||||
SYNOzjjTgTc3mCW6mqBTmngOUV/DEX5aLVzMxaHCIuslNjB1Ila6Hg4Am2SFFiUj
|
||||
OSVZPBe/A+EGU6itxwCzTj7M4jQtVfWRsq8IjaLm0A222RhDp9D/Zc5/T6563obW
|
||||
n4GT/HOM95CvoYvjdcULPOqWVwKBgQDIvDylKw3dRQm3q2IX34JjFMrJM+wzDXAv
|
||||
lIsURQFI/jezos95CGS0ArgG0gNn0117ul++N1Tt44YFDOqbG9kzS9ccYukRIe+v
|
||||
knVkogtXPwLoWR8amOyK2SP7P2DSkrZsE3HRRWhzNARs8RTfa5stp9eKKyrYyXAF
|
||||
28RC7agngwKBgQDEKCWzd615T/Yr6wdvdZG0fZNm1oFI8o8HTVMMCOLI2QvoeJpB
|
||||
Lt/DRxGleDlcpD+4ZzzafceezcLl5EhLiXsFTzleOzaSc/lPpw94Oz+iivxyes2Z
|
||||
37JIZtUpZDTm9t5zBjjHTNafvZJCjyCpdekHc/wpdL6s3M6CNj43WyLexQKBgCDL
|
||||
eBD39rzmsY67RjxmPLQZSoQSoo04rdJoL0yxdWNKfSkw+Tpp36H1K8GZgArvYj97
|
||||
lHbMLWjsGhIrKQ0MQLD7u/ocQr2U0MbbY6h8POQVHFF/dfBveX25ugIrOZNNetYv
|
||||
WxH4h/cCUZLG1EUoHGMaH8GoCcj/J/kdDXRtxWInAoGAQbJ/6Ry5+cLGYgt6e/7Z
|
||||
33wvwVjRmeZxAiE+msdKqXljGmxHKvat3l4eURh1CSqJ5tw0+J/LzXF2WrK8ncQj
|
||||
d3S4tPQW7yMBxXhJuFNczowmB8QiXFQCAdFe9sMRYyRe7EHJSNYEFjPuPDEVIfwO
|
||||
nqEDUjQ6neGvMei09uX1eVk=
|
||||
-----END PRIVATE KEY-----
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/hub4j-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"description": "Hub4j Test Org Description (this could be null or blank too)",
|
||||
"name": "Hub4j Test Org Name (this could be null or blank too)",
|
||||
"company": null,
|
||||
"blog": "https://hub4j.url.io/could/be/null",
|
||||
"location": "Hub4j Test Org Location (this could be null or blank too)",
|
||||
"email": "hub4jtestorgemail@could.be.null.com",
|
||||
"twitter_username": null,
|
||||
"is_verified": false,
|
||||
"has_organization_projects": true,
|
||||
"has_repository_projects": true,
|
||||
"public_repos": 13,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"created_at": "2014-05-10T19:39:11Z",
|
||||
"updated_at": "2020-06-04T05:56:10Z",
|
||||
"type": "Organization",
|
||||
"total_private_repos": 1,
|
||||
"owned_private_repos": 1,
|
||||
"private_gists": 0,
|
||||
"disk_usage": 149,
|
||||
"collaborators": 0,
|
||||
"billing_email": "kk@kohsuke.org",
|
||||
"default_repository_permission": "none",
|
||||
"members_can_create_repositories": false,
|
||||
"two_factor_requirement_enabled": false,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"private_repos": 10000,
|
||||
"filled_seats": 18,
|
||||
"seats": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "AOXG3USV2CAWD4FHBELB7RS7KFIGU",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 7
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOmFiOTJlMTNjMGZjODQ0ZmQ1MWEzNzlhNDhhM2FkMGIxODIzMTIxNWM=",
|
||||
"commit": {
|
||||
"author": {
|
||||
"name": "Tadas Giniotis",
|
||||
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
|
||||
"date": "2020-09-03T19:52:44Z"
|
||||
},
|
||||
"committer": {
|
||||
"name": "GitHub",
|
||||
"email": "noreply@github.com",
|
||||
"date": "2020-09-03T19:52:44Z"
|
||||
},
|
||||
"message": "Initial commit",
|
||||
"tree": {
|
||||
"sha": "aef4c126549f4900bec20cd8ea5a6546f9d72342",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/aef4c126549f4900bec20cd8ea5a6546f9d72342"
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"comment_count": 0,
|
||||
"verification": {
|
||||
"verified": true,
|
||||
"reason": "valid",
|
||||
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUUmMCRBK7hj4Ov3rIwAAdHIIAANckXa7twOvglP8Ro+QhRXJ\nQ68XvpHa/tP+Q1wn/ATZcaNMfwLzVD4EUksmct5PfpBiqSGIsoCDmVsNcEd88hum\nYjDSWBGlD3pOedlGXJtW+y//yUIZRmfaZP69sehrkN7JTOfhdEDFlsfhoJDgsrYh\n5KoD4/pmWMiG4NvCMZ265BeMXHw7KSFLAD4vSlBVo/kBJe2IQyW1GvGemZa5fwbk\nBS77fQcxZlv6w7EC9NvWlPc7nxHfS4C5shbB1Cm6nMPaz73PcrH3cWLz2A7esdrU\nhxaCiZ9uF+iqQUQVbzQ8s5r3Hiz1cWsFH2qND/RAaqpLlkLzH43/SyVyiwCmqlM=\n=649h\n-----END PGP SIGNATURE-----\n",
|
||||
"payload": "tree aef4c126549f4900bec20cd8ea5a6546f9d72342\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599162764 +0300\ncommitter GitHub <noreply@github.com> 1599162764 +0300\n\nInitial commit"
|
||||
}
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c/comments",
|
||||
"author": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"committer": {
|
||||
"login": "web-flow",
|
||||
"id": 19864447,
|
||||
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/web-flow",
|
||||
"html_url": "https://github.com/web-flow",
|
||||
"followers_url": "https://api.github.com/users/web-flow/followers",
|
||||
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/web-flow/orgs",
|
||||
"repos_url": "https://api.github.com/users/web-flow/repos",
|
||||
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/web-flow/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"parents": [],
|
||||
"stats": {
|
||||
"total": 1,
|
||||
"additions": 1,
|
||||
"deletions": 0
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"sha": "c0fa81448132f7f9eb303a93d9047fe5fafbfcd9",
|
||||
"filename": "README.md",
|
||||
"status": "added",
|
||||
"additions": 1,
|
||||
"deletions": 0,
|
||||
"changes": 1,
|
||||
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/ab92e13c0fc844fd51a379a48a3ad0b18231215c/README.md",
|
||||
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/ab92e13c0fc844fd51a379a48a3ad0b18231215c/README.md",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/README.md?ref=ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"patch": "@@ -0,0 +1 @@\n+# listPrsListHeads\n\\ No newline at end of file"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"name": "master",
|
||||
"commit": {
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
|
||||
},
|
||||
"protected": false
|
||||
},
|
||||
{
|
||||
"name": "secondHead",
|
||||
"commit": {
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
|
||||
},
|
||||
"protected": false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "56e319b6-29d0-4813-98b5-e4fafad7d29d",
|
||||
"name": "orgs_hub4j-test-org",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org-1.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:17:02 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
|
||||
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4946",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "54",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4DC:2C9E:141122AB:184D2941:5F514F3E"
|
||||
}
|
||||
},
|
||||
"uuid": "56e319b6-29d0-4813-98b5-e4fafad7d29d",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "194934af-a877-4e0a-8fa8-0e0de487e0cf",
|
||||
"name": "repos_hub4j-test-org_listprslistheads",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:17:02 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"69a5845ef0ffc8391df2ef254dd25f79\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4945",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "55",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4DC:2C9E:14112357:184D29C2:5F514F3E"
|
||||
}
|
||||
},
|
||||
"uuid": "194934af-a877-4e0a-8fa8-0e0de487e0cf",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "614b7f95-2bc6-49df-92d0-9b094469c339",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c-3.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:17:03 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"290934ae7ccd3931f79ff23d81407114\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:52:44 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4944",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "56",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4DC:2C9E:14112444:184D2ADE:5F514F3E"
|
||||
}
|
||||
},
|
||||
"uuid": "614b7f95-2bc6-49df-92d0-9b094469c339",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "fba03664-02be-4198-8659-9c6cd9a29bf4",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c_branches-where-head",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c/branches-where-head",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.groot-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c_branches-where-head-4.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:17:03 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"6f6a81bc3ae02760f8875b30cf4e2eec\"",
|
||||
"X-GitHub-Media-Type": "github.groot-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4943",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "57",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4DC:2C9E:141124ED:184D2B9B:5F514F3F"
|
||||
}
|
||||
},
|
||||
"uuid": "fba03664-02be-4198-8659-9c6cd9a29bf4",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/hub4j-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"description": "Hub4j Test Org Description (this could be null or blank too)",
|
||||
"name": "Hub4j Test Org Name (this could be null or blank too)",
|
||||
"company": null,
|
||||
"blog": "https://hub4j.url.io/could/be/null",
|
||||
"location": "Hub4j Test Org Location (this could be null or blank too)",
|
||||
"email": "hub4jtestorgemail@could.be.null.com",
|
||||
"twitter_username": null,
|
||||
"is_verified": false,
|
||||
"has_organization_projects": true,
|
||||
"has_repository_projects": true,
|
||||
"public_repos": 13,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"created_at": "2014-05-10T19:39:11Z",
|
||||
"updated_at": "2020-06-04T05:56:10Z",
|
||||
"type": "Organization",
|
||||
"total_private_repos": 1,
|
||||
"owned_private_repos": 1,
|
||||
"private_gists": 0,
|
||||
"disk_usage": 149,
|
||||
"collaborators": 0,
|
||||
"billing_email": "kk@kohsuke.org",
|
||||
"default_repository_permission": "none",
|
||||
"members_can_create_repositories": false,
|
||||
"two_factor_requirement_enabled": false,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"private_repos": 10000,
|
||||
"filled_seats": 18,
|
||||
"seats": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "AOXG3UQBFQLK2I7WKI43SAK7KFIGE",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 7
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOmFiOTJlMTNjMGZjODQ0ZmQ1MWEzNzlhNDhhM2FkMGIxODIzMTIxNWM=",
|
||||
"commit": {
|
||||
"author": {
|
||||
"name": "Tadas Giniotis",
|
||||
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
|
||||
"date": "2020-09-03T19:52:44Z"
|
||||
},
|
||||
"committer": {
|
||||
"name": "GitHub",
|
||||
"email": "noreply@github.com",
|
||||
"date": "2020-09-03T19:52:44Z"
|
||||
},
|
||||
"message": "Initial commit",
|
||||
"tree": {
|
||||
"sha": "aef4c126549f4900bec20cd8ea5a6546f9d72342",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/aef4c126549f4900bec20cd8ea5a6546f9d72342"
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"comment_count": 0,
|
||||
"verification": {
|
||||
"verified": true,
|
||||
"reason": "valid",
|
||||
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUUmMCRBK7hj4Ov3rIwAAdHIIAANckXa7twOvglP8Ro+QhRXJ\nQ68XvpHa/tP+Q1wn/ATZcaNMfwLzVD4EUksmct5PfpBiqSGIsoCDmVsNcEd88hum\nYjDSWBGlD3pOedlGXJtW+y//yUIZRmfaZP69sehrkN7JTOfhdEDFlsfhoJDgsrYh\n5KoD4/pmWMiG4NvCMZ265BeMXHw7KSFLAD4vSlBVo/kBJe2IQyW1GvGemZa5fwbk\nBS77fQcxZlv6w7EC9NvWlPc7nxHfS4C5shbB1Cm6nMPaz73PcrH3cWLz2A7esdrU\nhxaCiZ9uF+iqQUQVbzQ8s5r3Hiz1cWsFH2qND/RAaqpLlkLzH43/SyVyiwCmqlM=\n=649h\n-----END PGP SIGNATURE-----\n",
|
||||
"payload": "tree aef4c126549f4900bec20cd8ea5a6546f9d72342\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599162764 +0300\ncommitter GitHub <noreply@github.com> 1599162764 +0300\n\nInitial commit"
|
||||
}
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c/comments",
|
||||
"author": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"committer": {
|
||||
"login": "web-flow",
|
||||
"id": 19864447,
|
||||
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/web-flow",
|
||||
"html_url": "https://github.com/web-flow",
|
||||
"followers_url": "https://api.github.com/users/web-flow/followers",
|
||||
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/web-flow/orgs",
|
||||
"repos_url": "https://api.github.com/users/web-flow/repos",
|
||||
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/web-flow/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"parents": [],
|
||||
"stats": {
|
||||
"total": 1,
|
||||
"additions": 1,
|
||||
"deletions": 0
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"sha": "c0fa81448132f7f9eb303a93d9047fe5fafbfcd9",
|
||||
"filename": "README.md",
|
||||
"status": "added",
|
||||
"additions": 1,
|
||||
"deletions": 0,
|
||||
"changes": 1,
|
||||
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/ab92e13c0fc844fd51a379a48a3ad0b18231215c/README.md",
|
||||
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/ab92e13c0fc844fd51a379a48a3ad0b18231215c/README.md",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/README.md?ref=ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"patch": "@@ -0,0 +1 @@\n+# listPrsListHeads\n\\ No newline at end of file"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"name": "master",
|
||||
"commit": {
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
|
||||
},
|
||||
"protected": false
|
||||
},
|
||||
{
|
||||
"name": "secondHead",
|
||||
"commit": {
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
|
||||
},
|
||||
"protected": false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "f7bb3a61-b47e-4403-aa76-b0e76f550645",
|
||||
"name": "orgs_hub4j-test-org",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org-1.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:53 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
|
||||
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4966",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "34",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4C6:DA25:1594933A:1A26D3B7:5F514F35"
|
||||
}
|
||||
},
|
||||
"uuid": "f7bb3a61-b47e-4403-aa76-b0e76f550645",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "d9a742ee-0c30-48ff-9671-859dec573e4e",
|
||||
"name": "repos_hub4j-test-org_listprslistheads",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:54 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"2b94bdb622f978bd84a5dc272e79d717\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4965",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "35",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4C6:DA25:15949418:1A26D428:5F514F35"
|
||||
}
|
||||
},
|
||||
"uuid": "d9a742ee-0c30-48ff-9671-859dec573e4e",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "3aa83e8c-ac77-4bf7-91dd-cb88ae0055d4",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c-3.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:54 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"290934ae7ccd3931f79ff23d81407114\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:52:44 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4964",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "36",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4C6:DA25:15949488:1A26D51F:5F514F36"
|
||||
}
|
||||
},
|
||||
"uuid": "3aa83e8c-ac77-4bf7-91dd-cb88ae0055d4",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "90802902-122b-4c2e-9236-8578f603326c",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c_branches-where-head",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c/branches-where-head",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.groot-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_ab92e13c0fc844fd51a379a48a3ad0b18231215c_branches-where-head-4.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:55 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"6f6a81bc3ae02760f8875b30cf4e2eec\"",
|
||||
"X-GitHub-Media-Type": "github.groot-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4963",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "37",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4C6:DA25:15949516:1A26D5C6:5F514F36"
|
||||
}
|
||||
},
|
||||
"uuid": "90802902-122b-4c2e-9236-8578f603326c",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/hub4j-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"description": "Hub4j Test Org Description (this could be null or blank too)",
|
||||
"name": "Hub4j Test Org Name (this could be null or blank too)",
|
||||
"company": null,
|
||||
"blog": "https://hub4j.url.io/could/be/null",
|
||||
"location": "Hub4j Test Org Location (this could be null or blank too)",
|
||||
"email": "hub4jtestorgemail@could.be.null.com",
|
||||
"twitter_username": null,
|
||||
"is_verified": false,
|
||||
"has_organization_projects": true,
|
||||
"has_repository_projects": true,
|
||||
"public_repos": 13,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"created_at": "2014-05-10T19:39:11Z",
|
||||
"updated_at": "2020-06-04T05:56:10Z",
|
||||
"type": "Organization",
|
||||
"total_private_repos": 1,
|
||||
"owned_private_repos": 1,
|
||||
"private_gists": 0,
|
||||
"disk_usage": 149,
|
||||
"collaborators": 0,
|
||||
"billing_email": "kk@kohsuke.org",
|
||||
"default_repository_permission": "none",
|
||||
"members_can_create_repositories": false,
|
||||
"two_factor_requirement_enabled": false,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"private_repos": 10000,
|
||||
"filled_seats": 18,
|
||||
"seats": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "AOXG3USIKELUIJ56L57BZ7K7KFIGK",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 7
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"sha": "7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOjc0NjA5MTZiZmI4ZTk5NjZkNmI5ZDNlOGFlMzc4YzgyYzZiOGU0M2U=",
|
||||
"commit": {
|
||||
"author": {
|
||||
"name": "Tadas Giniotis",
|
||||
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
|
||||
"date": "2020-09-03T20:08:55Z"
|
||||
},
|
||||
"committer": {
|
||||
"name": "GitHub",
|
||||
"email": "noreply@github.com",
|
||||
"date": "2020-09-03T20:08:55Z"
|
||||
},
|
||||
"message": "Create 3",
|
||||
"tree": {
|
||||
"sha": "f6de816da0313f4aa5076a767543cead4306c407",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/f6de816da0313f4aa5076a767543cead4306c407"
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"comment_count": 0,
|
||||
"verification": {
|
||||
"verified": true,
|
||||
"reason": "valid",
|
||||
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUU1XCRBK7hj4Ov3rIwAAdHIIAJyE1uW45qdn/bQfnROgDQDu\ndbI6Vbv7PvQah66cLnM9mkbF5W6hu2PulE8G7bnkeUyovluwbQHfwv2l2BdmRgC7\nrMTmN/285vxc9whSY5WI0rfuxkc6x75eH3kuN4ZTRkpRfyQ1/M2G2aizpRZ+g/ky\nnNd63ZuCx6eAkfDHu20+yFhLIELYXb82zoLimnfdSOHBUmfHYQ39REQsDb7+uvUS\nglHhiSGYXVQNLir7coHam1v1Xd2Le8sOZ6ACEtyfa/J0OEmWylQC84spidYJqJXR\nPtEzoB2eKRmwj7OoMtX/tYMP2y2beUQV+FUWimpgx/4dCMe/kaNr4OoUQCwUdz8=\n=ZjBh\n-----END PGP SIGNATURE-----\n",
|
||||
"payload": "tree f6de816da0313f4aa5076a767543cead4306c407\nparent 6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599163735 +0300\ncommitter GitHub <noreply@github.com> 1599163735 +0300\n\nCreate 3"
|
||||
}
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e/comments",
|
||||
"author": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"committer": {
|
||||
"login": "web-flow",
|
||||
"id": 19864447,
|
||||
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/web-flow",
|
||||
"html_url": "https://github.com/web-flow",
|
||||
"followers_url": "https://api.github.com/users/web-flow/followers",
|
||||
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/web-flow/orgs",
|
||||
"repos_url": "https://api.github.com/users/web-flow/repos",
|
||||
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/web-flow/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"parents": [
|
||||
{
|
||||
"sha": "6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc"
|
||||
}
|
||||
],
|
||||
"stats": {
|
||||
"total": 1,
|
||||
"additions": 1,
|
||||
"deletions": 0
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"sha": "00750edc07d6415dcc07ae0351e9397b0222b7ba",
|
||||
"filename": "3",
|
||||
"status": "added",
|
||||
"additions": 1,
|
||||
"deletions": 0,
|
||||
"changes": 1,
|
||||
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e/3",
|
||||
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e/3",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/3?ref=7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"patch": "@@ -0,0 +1 @@\n+3"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"id": "e95bdd52-5649-401e-a978-4ca6b8adf191",
|
||||
"name": "repos_jglick_github-api-test",
|
||||
"id": "466a8cc6-9929-4670-98f8-b14e84977ea9",
|
||||
"name": "orgs_hub4j-test-org",
|
||||
"request": {
|
||||
"url": "/repos/jglick/github-api-test",
|
||||
"url": "/orgs/hub4j-test-org",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
@@ -12,33 +12,35 @@
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_jglick_github-api-test-1.json",
|
||||
"bodyFileName": "orgs_hub4j-test-org-1.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Mon, 30 Mar 2020 19:00:33 GMT",
|
||||
"Date": "Thu, 03 Sep 2020 20:16:57 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4989",
|
||||
"X-RateLimit-Reset": "1585596209",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"c31ebce1d9b6ef50784ae33967251c4f\"",
|
||||
"Last-Modified": "Wed, 25 Mar 2020 22:26:13 GMT",
|
||||
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
|
||||
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4958",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "42",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "BE04:665C:6EB6E0:11A912E:5E8241D1"
|
||||
"X-GitHub-Request-Id": "B4D0:59C5:B791ED0:DDDB920:5F514F39"
|
||||
}
|
||||
},
|
||||
"uuid": "e95bdd52-5649-401e-a978-4ca6b8adf191",
|
||||
"uuid": "466a8cc6-9929-4670-98f8-b14e84977ea9",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "4af92eb6-2de5-4bfa-989b-b1b9f026a731",
|
||||
"name": "repos_hub4j-test-org_listprslistheads",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:57 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"66a89ba688bce54b7315c889cf935290\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4957",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "43",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D0:59C5:B791F14:DDDB959:5F514F39"
|
||||
}
|
||||
},
|
||||
"uuid": "4af92eb6-2de5-4bfa-989b-b1b9f026a731",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "a239ee35-c210-4a58-880a-a01e1f29e0e2",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e-3.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:58 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"4ac6625fabe6147c68b33b6cc3f2ea2b\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 20:08:55 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4956",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "44",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D0:59C5:B791F54:DDDB9B2:5F514F39"
|
||||
}
|
||||
},
|
||||
"uuid": "a239ee35-c210-4a58-880a-a01e1f29e0e2",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "d391dfba-43a5-4c07-ae13-ac94badbaf42",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e_branches-where-head",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e/branches-where-head",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.groot-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"body": "[]",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:58 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "\"64f4770525bcc22cc6d2500a957a939c\"",
|
||||
"X-GitHub-Media-Type": "github.groot-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4955",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "45",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D0:59C5:B791FA1:DDDBA08:5F514F3A"
|
||||
}
|
||||
},
|
||||
"uuid": "d391dfba-43a5-4c07-ae13-ac94badbaf42",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/hub4j-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"description": "Hub4j Test Org Description (this could be null or blank too)",
|
||||
"name": "Hub4j Test Org Name (this could be null or blank too)",
|
||||
"company": null,
|
||||
"blog": "https://hub4j.url.io/could/be/null",
|
||||
"location": "Hub4j Test Org Location (this could be null or blank too)",
|
||||
"email": "hub4jtestorgemail@could.be.null.com",
|
||||
"twitter_username": null,
|
||||
"is_verified": false,
|
||||
"has_organization_projects": true,
|
||||
"has_repository_projects": true,
|
||||
"public_repos": 13,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"created_at": "2014-05-10T19:39:11Z",
|
||||
"updated_at": "2020-06-04T05:56:10Z",
|
||||
"type": "Organization",
|
||||
"total_private_repos": 1,
|
||||
"owned_private_repos": 1,
|
||||
"private_gists": 0,
|
||||
"disk_usage": 149,
|
||||
"collaborators": 0,
|
||||
"billing_email": "kk@kohsuke.org",
|
||||
"default_repository_permission": "none",
|
||||
"members_can_create_repositories": false,
|
||||
"two_factor_requirement_enabled": false,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"private_repos": 10000,
|
||||
"filled_seats": 18,
|
||||
"seats": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "AOXG3UR2N5LALQHFBRGS2QS7KFIGI",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 7
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"sha": "6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOjZiOTk1NmZlOGMzZDAzMGRiYzQ5YzlkNGM0MTY2YjBjZWI0MTk4ZmM=",
|
||||
"commit": {
|
||||
"author": {
|
||||
"name": "Tadas Giniotis",
|
||||
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
|
||||
"date": "2020-09-03T19:54:04Z"
|
||||
},
|
||||
"committer": {
|
||||
"name": "GitHub",
|
||||
"email": "noreply@github.com",
|
||||
"date": "2020-09-03T19:54:04Z"
|
||||
},
|
||||
"message": "Create 2",
|
||||
"tree": {
|
||||
"sha": "59e3fbf6f38da4938f3c90c4fec1e1cb397ded42",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/59e3fbf6f38da4938f3c90c4fec1e1cb397ded42"
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"comment_count": 0,
|
||||
"verification": {
|
||||
"verified": true,
|
||||
"reason": "valid",
|
||||
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUUncCRBK7hj4Ov3rIwAAdHIIAEiqYewcNcWqJw9k9BxLD5pf\nubussb8deFFLuK/GO3B3D1f/6SE5JnpNH3Jooz1It8ECw+p6RiohpeuS4s0mHQHY\nS7HUJ5ZudtwJVR8Ip/SgW5/qz1fSUAi/RuaXXi+Utv3o4yPVNxZujBuOiKCV8Zjt\n2YjS1YNJbl+/82W5wScFn9SNeyXt689986Ktuqy3qOx5Y+zr0ck6+0fai/meO3+n\nXp4fOrNZmla9Yk2rgqrpOrskuCO5uS44noJeT+ATHfrAedlQHBDCeLeqqIDr6iee\naKMpXUW+qlXZUpuh4DD0AseZn1hFvG+imO3vfKUi5TTFJ/zga9ymM4ORO/yhR4I=\n=25zj\n-----END PGP SIGNATURE-----\n",
|
||||
"payload": "tree 59e3fbf6f38da4938f3c90c4fec1e1cb397ded42\nparent 442aa213f924a5984856f16e52a18153aaf41ad3\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599162844 +0300\ncommitter GitHub <noreply@github.com> 1599162844 +0300\n\nCreate 2"
|
||||
}
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc/comments",
|
||||
"author": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"committer": {
|
||||
"login": "web-flow",
|
||||
"id": 19864447,
|
||||
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/web-flow",
|
||||
"html_url": "https://github.com/web-flow",
|
||||
"followers_url": "https://api.github.com/users/web-flow/followers",
|
||||
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/web-flow/orgs",
|
||||
"repos_url": "https://api.github.com/users/web-flow/repos",
|
||||
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/web-flow/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"parents": [
|
||||
{
|
||||
"sha": "442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/442aa213f924a5984856f16e52a18153aaf41ad3"
|
||||
}
|
||||
],
|
||||
"stats": {
|
||||
"total": 1,
|
||||
"additions": 1,
|
||||
"deletions": 0
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"sha": "8b137891791fe96927ad78e64b0aad7bded08bdc",
|
||||
"filename": "2",
|
||||
"status": "added",
|
||||
"additions": 1,
|
||||
"deletions": 0,
|
||||
"changes": 1,
|
||||
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc/2",
|
||||
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc/2",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/2?ref=6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"patch": "@@ -0,0 +1 @@\n+"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,319 @@
|
||||
[
|
||||
{
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2",
|
||||
"id": 478885771,
|
||||
"node_id": "MDExOlB1bGxSZXF1ZXN0NDc4ODg1Nzcx",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2",
|
||||
"diff_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2.diff",
|
||||
"patch_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2.patch",
|
||||
"issue_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2",
|
||||
"number": 2,
|
||||
"state": "open",
|
||||
"locked": false,
|
||||
"title": "Pr2",
|
||||
"user": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"body": "",
|
||||
"created_at": "2020-09-03T19:54:15Z",
|
||||
"updated_at": "2020-09-03T19:54:15Z",
|
||||
"closed_at": null,
|
||||
"merged_at": null,
|
||||
"merge_commit_sha": "f2b856a74b6f9d99e5fdf22c64f2c39cc8970ae4",
|
||||
"assignee": null,
|
||||
"assignees": [],
|
||||
"requested_reviewers": [],
|
||||
"requested_teams": [],
|
||||
"labels": [],
|
||||
"milestone": null,
|
||||
"draft": false,
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/commits",
|
||||
"review_comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/comments",
|
||||
"review_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2/comments",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"head": {
|
||||
"label": "hub4j-test-org:pr2",
|
||||
"ref": "pr2",
|
||||
"sha": "6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"user": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
}
|
||||
},
|
||||
"base": {
|
||||
"label": "hub4j-test-org:master",
|
||||
"ref": "master",
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"user": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
}
|
||||
},
|
||||
"_links": {
|
||||
"self": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2"
|
||||
},
|
||||
"issue": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2/comments"
|
||||
},
|
||||
"review_comments": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/comments"
|
||||
},
|
||||
"review_comment": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/commits"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc"
|
||||
}
|
||||
},
|
||||
"author_association": "CONTRIBUTOR",
|
||||
"active_lock_reason": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "cc18d270-a304-4633-a877-9615f03705ab",
|
||||
"name": "orgs_hub4j-test-org",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org-1.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:55 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
|
||||
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4962",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "38",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4CC:3477:BA2CF45:E1369E3:5F514F37"
|
||||
}
|
||||
},
|
||||
"uuid": "cc18d270-a304-4633-a877-9615f03705ab",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "6b7b2754-6d35-4e4a-9274-e5c65f60fd30",
|
||||
"name": "repos_hub4j-test-org_listprslistheads",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:56 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"8d00817d5562804493388ffec764d4e8\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4961",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "39",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4CC:3477:BA2CF96:E136A22:5F514F37"
|
||||
}
|
||||
},
|
||||
"uuid": "6b7b2754-6d35-4e4a-9274-e5c65f60fd30",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "ab1e8aaf-d0fb-46eb-a68b-4511f395741f",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc-3.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:56 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"4ef2c6742a344affbb38a292aa7c88fe\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:54:04 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4960",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "40",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4CC:3477:BA2CFD8:E136A73:5F514F38"
|
||||
}
|
||||
},
|
||||
"uuid": "ab1e8aaf-d0fb-46eb-a68b-4511f395741f",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "0c5d3d7b-9693-45dc-8f2d-92ea166ec263",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc_pulls",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc/pulls",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.groot-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc_pulls-4.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:57 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"3c70e2feffb2d161feff979b9726e01e\"",
|
||||
"X-GitHub-Media-Type": "github.groot-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4959",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "41",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4CC:3477:BA2D00B:E136AC2:5F514F38"
|
||||
}
|
||||
},
|
||||
"uuid": "0c5d3d7b-9693-45dc-8f2d-92ea166ec263",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/hub4j-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"description": "Hub4j Test Org Description (this could be null or blank too)",
|
||||
"name": "Hub4j Test Org Name (this could be null or blank too)",
|
||||
"company": null,
|
||||
"blog": "https://hub4j.url.io/could/be/null",
|
||||
"location": "Hub4j Test Org Location (this could be null or blank too)",
|
||||
"email": "hub4jtestorgemail@could.be.null.com",
|
||||
"twitter_username": null,
|
||||
"is_verified": false,
|
||||
"has_organization_projects": true,
|
||||
"has_repository_projects": true,
|
||||
"public_repos": 13,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"created_at": "2014-05-10T19:39:11Z",
|
||||
"updated_at": "2020-06-04T05:56:10Z",
|
||||
"type": "Organization",
|
||||
"total_private_repos": 1,
|
||||
"owned_private_repos": 1,
|
||||
"private_gists": 0,
|
||||
"disk_usage": 149,
|
||||
"collaborators": 0,
|
||||
"billing_email": "kk@kohsuke.org",
|
||||
"default_repository_permission": "none",
|
||||
"members_can_create_repositories": false,
|
||||
"two_factor_requirement_enabled": false,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"private_repos": 10000,
|
||||
"filled_seats": 18,
|
||||
"seats": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "AOXG3USUU2SCOPVPSMHSQWC7KFIGQ",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 7
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"sha": "442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOjQ0MmFhMjEzZjkyNGE1OTg0ODU2ZjE2ZTUyYTE4MTUzYWFmNDFhZDM=",
|
||||
"commit": {
|
||||
"author": {
|
||||
"name": "Tadas Giniotis",
|
||||
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
|
||||
"date": "2020-09-03T19:53:37Z"
|
||||
},
|
||||
"committer": {
|
||||
"name": "GitHub",
|
||||
"email": "noreply@github.com",
|
||||
"date": "2020-09-03T19:53:37Z"
|
||||
},
|
||||
"message": "Create 1",
|
||||
"tree": {
|
||||
"sha": "9614c99a129b6454f3d0e16dda68ac81248c434d",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/9614c99a129b6454f3d0e16dda68ac81248c434d"
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"comment_count": 0,
|
||||
"verification": {
|
||||
"verified": true,
|
||||
"reason": "valid",
|
||||
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUUnBCRBK7hj4Ov3rIwAAdHIIAGSLA0yW8nGdXPI44ykapcDm\nDPkPwEf7E8pkjKwrYB22Hfk+BmapK+hu/Myv2jSh9Kf8hSPXNakATYGgHzTtNgdr\nn80GtxlbiIvbVU6EeqGWVLqprUZjGdDxV8hNr0YKI9CFJ3JO17VWfxpgZAmHC/Ef\nQs8vcU1J1/dujXSjp1SJU0t+Srj3+0klWojdagMiiCqC71tkfOqZuAQvIusj4jUR\nM2v15ZepdAFoC5KFeax1xdAm5nYxkOlYHfA5OpAYJUnIi0pSxU8h7g76Iw/CDgsy\ntoqPnGY7UrRW5XCIwltzueFPkVxxFats0zhkt6eTNERAakpe1QB+bpvZEhYw2m4=\n=unuo\n-----END PGP SIGNATURE-----\n",
|
||||
"payload": "tree 9614c99a129b6454f3d0e16dda68ac81248c434d\nparent ab92e13c0fc844fd51a379a48a3ad0b18231215c\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599162817 +0300\ncommitter GitHub <noreply@github.com> 1599162817 +0300\n\nCreate 1"
|
||||
}
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3/comments",
|
||||
"author": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"committer": {
|
||||
"login": "web-flow",
|
||||
"id": 19864447,
|
||||
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/web-flow",
|
||||
"html_url": "https://github.com/web-flow",
|
||||
"followers_url": "https://api.github.com/users/web-flow/followers",
|
||||
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/web-flow/orgs",
|
||||
"repos_url": "https://api.github.com/users/web-flow/repos",
|
||||
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/web-flow/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"parents": [
|
||||
{
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/ab92e13c0fc844fd51a379a48a3ad0b18231215c"
|
||||
}
|
||||
],
|
||||
"stats": {
|
||||
"total": 1,
|
||||
"additions": 1,
|
||||
"deletions": 0
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"sha": "d00491fd7e5bb6fa28c517a0bb32b8b506539d4d",
|
||||
"filename": "1",
|
||||
"status": "added",
|
||||
"additions": 1,
|
||||
"deletions": 0,
|
||||
"changes": 1,
|
||||
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/442aa213f924a5984856f16e52a18153aaf41ad3/1",
|
||||
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/442aa213f924a5984856f16e52a18153aaf41ad3/1",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/1?ref=442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"patch": "@@ -0,0 +1 @@\n+1"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,636 @@
|
||||
[
|
||||
{
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1",
|
||||
"id": 478885248,
|
||||
"node_id": "MDExOlB1bGxSZXF1ZXN0NDc4ODg1MjQ4",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/1",
|
||||
"diff_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/1.diff",
|
||||
"patch_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/1.patch",
|
||||
"issue_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/1",
|
||||
"number": 1,
|
||||
"state": "open",
|
||||
"locked": false,
|
||||
"title": "Create 1",
|
||||
"user": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"body": "",
|
||||
"created_at": "2020-09-03T19:53:43Z",
|
||||
"updated_at": "2020-09-03T19:53:43Z",
|
||||
"closed_at": null,
|
||||
"merged_at": null,
|
||||
"merge_commit_sha": "0a11e2c33374f90c78e246b50c61990de0f0f6e2",
|
||||
"assignee": null,
|
||||
"assignees": [],
|
||||
"requested_reviewers": [],
|
||||
"requested_teams": [],
|
||||
"labels": [],
|
||||
"milestone": null,
|
||||
"draft": false,
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1/commits",
|
||||
"review_comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1/comments",
|
||||
"review_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/1/comments",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"head": {
|
||||
"label": "hub4j-test-org:pr1",
|
||||
"ref": "pr1",
|
||||
"sha": "442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"user": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
}
|
||||
},
|
||||
"base": {
|
||||
"label": "hub4j-test-org:master",
|
||||
"ref": "master",
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"user": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
}
|
||||
},
|
||||
"_links": {
|
||||
"self": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://github.com/hub4j-test-org/listPrsListHeads/pull/1"
|
||||
},
|
||||
"issue": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/1"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/1/comments"
|
||||
},
|
||||
"review_comments": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1/comments"
|
||||
},
|
||||
"review_comment": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/1/commits"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/442aa213f924a5984856f16e52a18153aaf41ad3"
|
||||
}
|
||||
},
|
||||
"author_association": "CONTRIBUTOR",
|
||||
"active_lock_reason": null
|
||||
},
|
||||
{
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2",
|
||||
"id": 478885771,
|
||||
"node_id": "MDExOlB1bGxSZXF1ZXN0NDc4ODg1Nzcx",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2",
|
||||
"diff_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2.diff",
|
||||
"patch_url": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2.patch",
|
||||
"issue_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2",
|
||||
"number": 2,
|
||||
"state": "open",
|
||||
"locked": false,
|
||||
"title": "Pr2",
|
||||
"user": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"body": "",
|
||||
"created_at": "2020-09-03T19:54:15Z",
|
||||
"updated_at": "2020-09-03T19:54:15Z",
|
||||
"closed_at": null,
|
||||
"merged_at": null,
|
||||
"merge_commit_sha": "f2b856a74b6f9d99e5fdf22c64f2c39cc8970ae4",
|
||||
"assignee": null,
|
||||
"assignees": [],
|
||||
"requested_reviewers": [],
|
||||
"requested_teams": [],
|
||||
"labels": [],
|
||||
"milestone": null,
|
||||
"draft": false,
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/commits",
|
||||
"review_comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/comments",
|
||||
"review_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2/comments",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"head": {
|
||||
"label": "hub4j-test-org:pr2",
|
||||
"ref": "pr2",
|
||||
"sha": "6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc",
|
||||
"user": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
}
|
||||
},
|
||||
"base": {
|
||||
"label": "hub4j-test-org:master",
|
||||
"ref": "master",
|
||||
"sha": "ab92e13c0fc844fd51a379a48a3ad0b18231215c",
|
||||
"user": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
}
|
||||
},
|
||||
"_links": {
|
||||
"self": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://github.com/hub4j-test-org/listPrsListHeads/pull/2"
|
||||
},
|
||||
"issue": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/2/comments"
|
||||
},
|
||||
"review_comments": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/comments"
|
||||
},
|
||||
"review_comment": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/comments{/number}"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls/2/commits"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/6b9956fe8c3d030dbc49c9d4c4166b0ceb4198fc"
|
||||
}
|
||||
},
|
||||
"author_association": "CONTRIBUTOR",
|
||||
"active_lock_reason": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "250fec7a-d0ba-457b-a0e5-eae44f4cac29",
|
||||
"name": "orgs_hub4j-test-org",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org-1.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:17:00 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
|
||||
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4950",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "50",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D8:7A59:BA701F9:E1ACC1B:5F514F3C"
|
||||
}
|
||||
},
|
||||
"uuid": "250fec7a-d0ba-457b-a0e5-eae44f4cac29",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "6d003fb4-376d-48a6-8522-4ac6a23a36ec",
|
||||
"name": "repos_hub4j-test-org_listprslistheads",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:17:01 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"04d5c9c3e946c3ff62a1e036800d9144\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4949",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "51",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D8:7A59:BA70290:E1ACCB7:5F514F3C"
|
||||
}
|
||||
},
|
||||
"uuid": "6d003fb4-376d-48a6-8522-4ac6a23a36ec",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "43f529fe-c1ab-4946-addc-106f59bcad97",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_442aa213f924a5984856f16e52a18153aaf41ad3-3.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:17:01 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"4a2ff94721fedc49860bf66638fd7a24\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:53:37 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4948",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "52",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D8:7A59:BA70300:E1ACD32:5F514F3D"
|
||||
}
|
||||
},
|
||||
"uuid": "43f529fe-c1ab-4946-addc-106f59bcad97",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "c38a451a-2ad8-45cc-974d-ef084b48e2f6",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_442aa213f924a5984856f16e52a18153aaf41ad3_pulls",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/442aa213f924a5984856f16e52a18153aaf41ad3/pulls",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.groot-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_442aa213f924a5984856f16e52a18153aaf41ad3_pulls-4.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:17:01 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"4c9c94f264ad10618d9a843d65ae5a1f\"",
|
||||
"X-GitHub-Media-Type": "github.groot-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4947",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "53",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D8:7A59:BA7035C:E1ACDB3:5F514F3D"
|
||||
}
|
||||
},
|
||||
"uuid": "c38a451a-2ad8-45cc-974d-ef084b48e2f6",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/hub4j-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"description": "Hub4j Test Org Description (this could be null or blank too)",
|
||||
"name": "Hub4j Test Org Name (this could be null or blank too)",
|
||||
"company": null,
|
||||
"blog": "https://hub4j.url.io/could/be/null",
|
||||
"location": "Hub4j Test Org Location (this could be null or blank too)",
|
||||
"email": "hub4jtestorgemail@could.be.null.com",
|
||||
"twitter_username": null,
|
||||
"is_verified": false,
|
||||
"has_organization_projects": true,
|
||||
"has_repository_projects": true,
|
||||
"public_repos": 13,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"created_at": "2014-05-10T19:39:11Z",
|
||||
"updated_at": "2020-06-04T05:56:10Z",
|
||||
"type": "Organization",
|
||||
"total_private_repos": 1,
|
||||
"owned_private_repos": 1,
|
||||
"private_gists": 0,
|
||||
"disk_usage": 149,
|
||||
"collaborators": 0,
|
||||
"billing_email": "kk@kohsuke.org",
|
||||
"default_repository_permission": "none",
|
||||
"members_can_create_repositories": false,
|
||||
"two_factor_requirement_enabled": false,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"private_repos": 10000,
|
||||
"filled_seats": 18,
|
||||
"seats": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"id": 292666372,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTI2NjYzNzI=",
|
||||
"name": "listPrsListHeads",
|
||||
"full_name": "hub4j-test-org/listPrsListHeads",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/deployments",
|
||||
"created_at": "2020-09-03T19:52:43Z",
|
||||
"updated_at": "2020-09-03T19:52:47Z",
|
||||
"pushed_at": "2020-09-03T20:10:17Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/listPrsListHeads.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/listPrsListHeads.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/listPrsListHeads",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "AOXG3UXYKSE73OSGSATLXM27KFIGO",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 7
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"sha": "f66f7ca691ace6f4a9230292efb932b49214d72c",
|
||||
"node_id": "MDY6Q29tbWl0MjkyNjY2MzcyOmY2NmY3Y2E2OTFhY2U2ZjRhOTIzMDI5MmVmYjkzMmI0OTIxNGQ3MmM=",
|
||||
"commit": {
|
||||
"author": {
|
||||
"name": "Tadas Giniotis",
|
||||
"email": "61763026+tginiotis-at-work@users.noreply.github.com",
|
||||
"date": "2020-09-03T20:09:33Z"
|
||||
},
|
||||
"committer": {
|
||||
"name": "GitHub",
|
||||
"email": "noreply@github.com",
|
||||
"date": "2020-09-03T20:09:33Z"
|
||||
},
|
||||
"message": "Create 4",
|
||||
"tree": {
|
||||
"sha": "9160cdbc2c3e3139ff6fa8164ab3be5c8f044de1",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/trees/9160cdbc2c3e3139ff6fa8164ab3be5c8f044de1"
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/git/commits/f66f7ca691ace6f4a9230292efb932b49214d72c",
|
||||
"comment_count": 0,
|
||||
"verification": {
|
||||
"verified": true,
|
||||
"reason": "valid",
|
||||
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfUU19CRBK7hj4Ov3rIwAAdHIIAHeTmIluHd0dglveUbUEir0Z\nEgwz8hNiFEX/kCllKIOIZzTZgSOL+gwkUo0Cq5ucX2KhHvPCXRAOU02kNzLRY7U5\ngvzerZXVViQAJuuBvbkVW9FxoSdNsEsvTwNwvZOZYHrMdZVfc4aOajpu2T3SI5UO\nTChvb8a89fjykWe9//ArpJSipG4Kf99kTabPKsctwZVfK4Ayho9jeSIE/0TjkBB5\nBirllrdMnJVjqNNH6oi1f3zJrzoawi7esiT/Zl4WjJnFLBNWqvCZ7pyzST44BiuM\nNZjKH07e9h14IkUKFn8iCa7RoaaWaut7NI2erIr4GliHwICF0jsiAp3BAGBw2SQ=\n=t1l7\n-----END PGP SIGNATURE-----\n",
|
||||
"payload": "tree 9160cdbc2c3e3139ff6fa8164ab3be5c8f044de1\nparent 7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e\nauthor Tadas Giniotis <61763026+tginiotis-at-work@users.noreply.github.com> 1599163773 +0300\ncommitter GitHub <noreply@github.com> 1599163773 +0300\n\nCreate 4"
|
||||
}
|
||||
},
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/f66f7ca691ace6f4a9230292efb932b49214d72c",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/f66f7ca691ace6f4a9230292efb932b49214d72c",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/f66f7ca691ace6f4a9230292efb932b49214d72c/comments",
|
||||
"author": {
|
||||
"login": "tginiotis-at-work",
|
||||
"id": 61763026,
|
||||
"node_id": "MDQ6VXNlcjYxNzYzMDI2",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/61763026?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/tginiotis-at-work",
|
||||
"html_url": "https://github.com/tginiotis-at-work",
|
||||
"followers_url": "https://api.github.com/users/tginiotis-at-work/followers",
|
||||
"following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs",
|
||||
"repos_url": "https://api.github.com/users/tginiotis-at-work/repos",
|
||||
"events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"committer": {
|
||||
"login": "web-flow",
|
||||
"id": 19864447,
|
||||
"node_id": "MDQ6VXNlcjE5ODY0NDQ3",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/web-flow",
|
||||
"html_url": "https://github.com/web-flow",
|
||||
"followers_url": "https://api.github.com/users/web-flow/followers",
|
||||
"following_url": "https://api.github.com/users/web-flow/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/web-flow/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/web-flow/orgs",
|
||||
"repos_url": "https://api.github.com/users/web-flow/repos",
|
||||
"events_url": "https://api.github.com/users/web-flow/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/web-flow/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"parents": [
|
||||
{
|
||||
"sha": "7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/commits/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e",
|
||||
"html_url": "https://github.com/hub4j-test-org/listPrsListHeads/commit/7460916bfb8e9966d6b9d3e8ae378c82c6b8e43e"
|
||||
}
|
||||
],
|
||||
"stats": {
|
||||
"total": 1,
|
||||
"additions": 1,
|
||||
"deletions": 0
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"sha": "b8626c4cff2849624fb67f87cd0ad72b163671ad",
|
||||
"filename": "4",
|
||||
"status": "added",
|
||||
"additions": 1,
|
||||
"deletions": 0,
|
||||
"changes": 1,
|
||||
"blob_url": "https://github.com/hub4j-test-org/listPrsListHeads/blob/f66f7ca691ace6f4a9230292efb932b49214d72c/4",
|
||||
"raw_url": "https://github.com/hub4j-test-org/listPrsListHeads/raw/f66f7ca691ace6f4a9230292efb932b49214d72c/4",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/listPrsListHeads/contents/4?ref=f66f7ca691ace6f4a9230292efb932b49214d72c",
|
||||
"patch": "@@ -0,0 +1 @@\n+4"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "e5ad4333-f123-4a8a-998f-0eae483789e5",
|
||||
"name": "orgs_hub4j-test-org",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org-1.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:58 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"7445c740dec9798d5d204bef66278a8a\"",
|
||||
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4954",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "46",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D4:B3A0:7815A00:91548B6:5F514F3A"
|
||||
}
|
||||
},
|
||||
"uuid": "e5ad4333-f123-4a8a-998f-0eae483789e5",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "7dd518db-9632-44f9-9e07-9046537660be",
|
||||
"name": "repos_hub4j-test-org_listprslistheads",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads-2.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:59 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"04f7be82a8d9568b1557b91210c32db7\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 19:52:47 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4953",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "47",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D4:B3A0:7815A30:91548DB:5F514F3A"
|
||||
}
|
||||
},
|
||||
"uuid": "7dd518db-9632-44f9-9e07-9046537660be",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "8fa76b15-f88e-47b8-bf58-993e96f1e11b",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_f66f7ca691ace6f4a9230292efb932b49214d72c",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/f66f7ca691ace6f4a9230292efb932b49214d72c",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_listprslistheads_commits_f66f7ca691ace6f4a9230292efb932b49214d72c-3.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:59 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"f51f649ab36a67271fe56e3ed51198b2\"",
|
||||
"Last-Modified": "Thu, 03 Sep 2020 20:09:33 GMT",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4952",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "48",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D4:B3A0:7815A65:915492D:5F514F3B"
|
||||
}
|
||||
},
|
||||
"uuid": "8fa76b15-f88e-47b8-bf58-993e96f1e11b",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "3c4d06a1-1dbb-4c63-84b2-518cc326350a",
|
||||
"name": "repos_hub4j-test-org_listprslistheads_commits_f66f7ca691ace6f4a9230292efb932b49214d72c_pulls",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/listPrsListHeads/commits/f66f7ca691ace6f4a9230292efb932b49214d72c/pulls",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.groot-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"body": "[]",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Sep 2020 20:16:59 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "\"64f4770525bcc22cc6d2500a957a939c\"",
|
||||
"X-GitHub-Media-Type": "github.groot-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4951",
|
||||
"X-RateLimit-Reset": "1599165440",
|
||||
"X-RateLimit-Used": "49",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B4D4:B3A0:7815AA2:9154967:5F514F3B"
|
||||
}
|
||||
},
|
||||
"uuid": "3c4d06a1-1dbb-4c63-84b2-518cc326350a",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"id": 83009,
|
||||
"slug": "ghapi-test-app-2",
|
||||
"node_id": "MDM6QXBwODMwMDk=",
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"name": "GHApi Test app 2",
|
||||
"description": "",
|
||||
"external_url": "https://localhost",
|
||||
"html_url": "https://github.com/apps/ghapi-test-app-2",
|
||||
"created_at": "2020-09-30T15:02:20Z",
|
||||
"updated_at": "2020-09-30T15:02:20Z",
|
||||
"permissions": {},
|
||||
"events": [],
|
||||
"installations_count": 1
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"id": 12131496,
|
||||
"account": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"repository_selection": "selected",
|
||||
"access_tokens_url": "https://api.github.com/app/installations/12131496/access_tokens",
|
||||
"repositories_url": "https://api.github.com/installation/repositories",
|
||||
"html_url": "https://github.com/organizations/hub4j-test-org/settings/installations/12131496",
|
||||
"app_id": 83009,
|
||||
"app_slug": "ghapi-test-app-2",
|
||||
"target_id": 7544739,
|
||||
"target_type": "Organization",
|
||||
"permissions": {},
|
||||
"events": [],
|
||||
"created_at": "2020-09-30T15:05:32.000Z",
|
||||
"updated_at": "2020-09-30T15:05:32.000Z",
|
||||
"single_file_name": null,
|
||||
"has_multiple_single_files": false,
|
||||
"single_file_paths": [],
|
||||
"suspended_by": null,
|
||||
"suspended_at": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"id": "bb7cf5bb-fba2-45b3-afd8-939b2c24787a",
|
||||
"name": "app",
|
||||
"request": {
|
||||
"url": "/app",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.machine-man-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "app-1.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 05 Nov 2020 20:42:31 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "public, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"b3d319dbb4dba93fbda071208d874e5ab566d827e1ad1d7dc59f26d68694dc48\"",
|
||||
"X-GitHub-Media-Type": "github.v3; param=machine-man-preview; format=json",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "9294:AE05:BDAC761:DB35838:5FA463B6"
|
||||
}
|
||||
},
|
||||
"uuid": "bb7cf5bb-fba2-45b3-afd8-939b2c24787a",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user