mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Add support for repository visibility
This commit is contained in:
committed by
Nathan Vahrenberg
parent
83aa9d04ef
commit
73d2e1db5c
2
pom.xml
2
pom.xml
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.kohsuke</groupId>
|
||||
<artifactId>github-api</artifactId>
|
||||
<version>1.127-SNAPSHOT</version>
|
||||
<version>1.127-VISIBILITY-SNAPSHOT</version>
|
||||
<name>GitHub API for Java</name>
|
||||
<url>https://github-api.kohsuke.org/</url>
|
||||
<description>GitHub API for Java</description>
|
||||
|
||||
@@ -104,6 +104,8 @@ public class GHRepository extends GHObject {
|
||||
@JsonProperty("private")
|
||||
private boolean _private;
|
||||
|
||||
private GHVisibility visibility;
|
||||
|
||||
private int forks_count, stargazers_count, watchers_count, size, open_issues_count, subscribers_count;
|
||||
|
||||
private String pushed_at;
|
||||
@@ -710,6 +712,32 @@ public class GHRepository extends GHObject {
|
||||
return _private;
|
||||
}
|
||||
|
||||
/**
|
||||
* Visibility of a repository
|
||||
*/
|
||||
public enum GHVisibility {
|
||||
PUBLIC, INTERNAL, PRIVATE
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the visibility of the repository.
|
||||
*
|
||||
* @return the visibility
|
||||
*/
|
||||
@Deprecated
|
||||
@Preview(NEBULA)
|
||||
public GHVisibility getVisibility() {
|
||||
if (visibility == null) {
|
||||
try {
|
||||
populate();
|
||||
} catch (final IOException e) {
|
||||
// Convert this to a runtime exception to avoid messy method signature
|
||||
throw new GHException("Could not populate the visibility of the repository", e);
|
||||
}
|
||||
}
|
||||
return visibility;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is template boolean.
|
||||
*
|
||||
@@ -1202,6 +1230,26 @@ public class GHRepository extends GHObject {
|
||||
set().private_(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets visibility.
|
||||
*
|
||||
* @param value
|
||||
* the value
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*/
|
||||
@Deprecated
|
||||
@Preview(NEBULA)
|
||||
public void setVisibility(final GHVisibility value) throws IOException {
|
||||
root.createRequest()
|
||||
.method("PATCH")
|
||||
.withPreview(NEBULA)
|
||||
.with("name", name)
|
||||
.with("visibility", value)
|
||||
.withUrlPath(getApiTailUrl(""))
|
||||
.send();
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow squash merge.
|
||||
*
|
||||
@@ -3122,11 +3170,17 @@ 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().withPreview(BAPTISTE).setRawUrlPath(url.toString()).fetchInto(this).wrap(root);
|
||||
root.createRequest()
|
||||
.withPreview(BAPTISTE)
|
||||
.withPreview(NEBULA)
|
||||
.setRawUrlPath(url.toString())
|
||||
.fetchInto(this)
|
||||
.wrap(root);
|
||||
} catch (HttpException e) {
|
||||
if (e.getCause() instanceof JsonParseException) {
|
||||
root.createRequest()
|
||||
.withPreview(BAPTISTE)
|
||||
.withPreview(NEBULA)
|
||||
.withUrlPath("/repos/" + full_name)
|
||||
.fetchInto(this)
|
||||
.wrap(root);
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import org.kohsuke.github.GHRepository.GHVisibility;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import static org.kohsuke.github.internal.Previews.BAPTISTE;
|
||||
import static org.kohsuke.github.internal.Previews.NEBULA;
|
||||
|
||||
abstract class GHRepositoryBuilder<S> extends AbstractBuilder<GHRepository, S> {
|
||||
|
||||
@@ -146,6 +149,20 @@ abstract class GHRepositoryBuilder<S> extends AbstractBuilder<GHRepository, S> {
|
||||
return with("private", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the repository visibility
|
||||
*
|
||||
* @param visibility
|
||||
* visibility of repository
|
||||
* @return a builder to continue with building
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S visibility(final GHVisibility visibility) throws IOException {
|
||||
requester.withPreview(NEBULA);
|
||||
return with("visibility", visibility);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables issue tracker
|
||||
*
|
||||
|
||||
@@ -249,6 +249,23 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(redux.getDescription(), equalTo(updatedDescription));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetRepositoryWithVisibility() throws IOException {
|
||||
kohsuke();
|
||||
final GHUser myself = gitHub.getMyself();
|
||||
final String repoName = "test-repo-visibility";
|
||||
final GHRepository repo = gitHub.createRepository(repoName)
|
||||
.visibility(GHRepository.GHVisibility.PUBLIC)
|
||||
.create();
|
||||
try {
|
||||
assertEquals(GHRepository.GHVisibility.PUBLIC, repo.getVisibility());
|
||||
repo.setVisibility(GHRepository.GHVisibility.PRIVATE);
|
||||
assertEquals(GHRepository.GHVisibility.PRIVATE, myself.getRepository(repoName).getVisibility());
|
||||
} finally {
|
||||
repo.delete();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listContributors() throws IOException {
|
||||
GHRepository r = gitHub.getOrganization("hub4j").getRepository("github-api");
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"id": 353724658,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzNTM3MjQ2NTg=",
|
||||
"name": "test-repo-visibility",
|
||||
"full_name": "nvahren/test-repo-visibility",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "nvahren",
|
||||
"id": 8679583,
|
||||
"node_id": "MDQ6VXNlcjg2Nzk1ODM=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/8679583?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nvahren",
|
||||
"html_url": "https://github.com/nvahren",
|
||||
"followers_url": "https://api.github.com/users/nvahren/followers",
|
||||
"following_url": "https://api.github.com/users/nvahren/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nvahren/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nvahren/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nvahren/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nvahren/orgs",
|
||||
"repos_url": "https://api.github.com/users/nvahren/repos",
|
||||
"events_url": "https://api.github.com/users/nvahren/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nvahren/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/nvahren/test-repo-visibility",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/nvahren/test-repo-visibility",
|
||||
"forks_url": "https://api.github.com/repos/nvahren/test-repo-visibility/forks",
|
||||
"keys_url": "https://api.github.com/repos/nvahren/test-repo-visibility/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/nvahren/test-repo-visibility/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/nvahren/test-repo-visibility/teams",
|
||||
"hooks_url": "https://api.github.com/repos/nvahren/test-repo-visibility/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/nvahren/test-repo-visibility/events",
|
||||
"assignees_url": "https://api.github.com/repos/nvahren/test-repo-visibility/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/nvahren/test-repo-visibility/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/nvahren/test-repo-visibility/tags",
|
||||
"blobs_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/nvahren/test-repo-visibility/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/nvahren/test-repo-visibility/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/nvahren/test-repo-visibility/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/nvahren/test-repo-visibility/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/nvahren/test-repo-visibility/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/nvahren/test-repo-visibility/subscription",
|
||||
"commits_url": "https://api.github.com/repos/nvahren/test-repo-visibility/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/nvahren/test-repo-visibility/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/nvahren/test-repo-visibility/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/nvahren/test-repo-visibility/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/nvahren/test-repo-visibility/merges",
|
||||
"archive_url": "https://api.github.com/repos/nvahren/test-repo-visibility/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/nvahren/test-repo-visibility/downloads",
|
||||
"issues_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/nvahren/test-repo-visibility/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/nvahren/test-repo-visibility/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/nvahren/test-repo-visibility/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/nvahren/test-repo-visibility/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/nvahren/test-repo-visibility/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/nvahren/test-repo-visibility/deployments",
|
||||
"created_at": "2021-04-01T14:20:18Z",
|
||||
"updated_at": "2021-04-01T14:20:19Z",
|
||||
"pushed_at": "2021-04-01T14:20:19Z",
|
||||
"git_url": "git://github.com/nvahren/test-repo-visibility.git",
|
||||
"ssh_url": "git@github.com:nvahren/test-repo-visibility.git",
|
||||
"clone_url": "https://github.com/nvahren/test-repo-visibility.git",
|
||||
"svn_url": "https://github.com/nvahren/test-repo-visibility",
|
||||
"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": 0,
|
||||
"license": null,
|
||||
"visibility": "private",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"id": 353724658,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzNTM3MjQ2NTg=",
|
||||
"name": "test-repo-visibility",
|
||||
"full_name": "nvahren/test-repo-visibility",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "nvahren",
|
||||
"id": 8679583,
|
||||
"node_id": "MDQ6VXNlcjg2Nzk1ODM=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/8679583?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nvahren",
|
||||
"html_url": "https://github.com/nvahren",
|
||||
"followers_url": "https://api.github.com/users/nvahren/followers",
|
||||
"following_url": "https://api.github.com/users/nvahren/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nvahren/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nvahren/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nvahren/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nvahren/orgs",
|
||||
"repos_url": "https://api.github.com/users/nvahren/repos",
|
||||
"events_url": "https://api.github.com/users/nvahren/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nvahren/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/nvahren/test-repo-visibility",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/nvahren/test-repo-visibility",
|
||||
"forks_url": "https://api.github.com/repos/nvahren/test-repo-visibility/forks",
|
||||
"keys_url": "https://api.github.com/repos/nvahren/test-repo-visibility/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/nvahren/test-repo-visibility/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/nvahren/test-repo-visibility/teams",
|
||||
"hooks_url": "https://api.github.com/repos/nvahren/test-repo-visibility/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/nvahren/test-repo-visibility/events",
|
||||
"assignees_url": "https://api.github.com/repos/nvahren/test-repo-visibility/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/nvahren/test-repo-visibility/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/nvahren/test-repo-visibility/tags",
|
||||
"blobs_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/nvahren/test-repo-visibility/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/nvahren/test-repo-visibility/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/nvahren/test-repo-visibility/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/nvahren/test-repo-visibility/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/nvahren/test-repo-visibility/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/nvahren/test-repo-visibility/subscription",
|
||||
"commits_url": "https://api.github.com/repos/nvahren/test-repo-visibility/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/nvahren/test-repo-visibility/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/nvahren/test-repo-visibility/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/nvahren/test-repo-visibility/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/nvahren/test-repo-visibility/merges",
|
||||
"archive_url": "https://api.github.com/repos/nvahren/test-repo-visibility/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/nvahren/test-repo-visibility/downloads",
|
||||
"issues_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/nvahren/test-repo-visibility/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/nvahren/test-repo-visibility/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/nvahren/test-repo-visibility/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/nvahren/test-repo-visibility/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/nvahren/test-repo-visibility/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/nvahren/test-repo-visibility/deployments",
|
||||
"created_at": "2021-04-01T14:20:18Z",
|
||||
"updated_at": "2021-04-01T14:20:19Z",
|
||||
"pushed_at": "2021-04-01T14:20:19Z",
|
||||
"git_url": "git://github.com/nvahren/test-repo-visibility.git",
|
||||
"ssh_url": "git@github.com:nvahren/test-repo-visibility.git",
|
||||
"clone_url": "https://github.com/nvahren/test-repo-visibility.git",
|
||||
"svn_url": "https://github.com/nvahren/test-repo-visibility",
|
||||
"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": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "ACCHBH3NKBO4HPYLKKIJMLTAMXL5A",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"id": 353724658,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzNTM3MjQ2NTg=",
|
||||
"name": "test-repo-visibility",
|
||||
"full_name": "nvahren/test-repo-visibility",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "nvahren",
|
||||
"id": 8679583,
|
||||
"node_id": "MDQ6VXNlcjg2Nzk1ODM=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/8679583?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nvahren",
|
||||
"html_url": "https://github.com/nvahren",
|
||||
"followers_url": "https://api.github.com/users/nvahren/followers",
|
||||
"following_url": "https://api.github.com/users/nvahren/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nvahren/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nvahren/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nvahren/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nvahren/orgs",
|
||||
"repos_url": "https://api.github.com/users/nvahren/repos",
|
||||
"events_url": "https://api.github.com/users/nvahren/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nvahren/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/nvahren/test-repo-visibility",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/nvahren/test-repo-visibility",
|
||||
"forks_url": "https://api.github.com/repos/nvahren/test-repo-visibility/forks",
|
||||
"keys_url": "https://api.github.com/repos/nvahren/test-repo-visibility/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/nvahren/test-repo-visibility/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/nvahren/test-repo-visibility/teams",
|
||||
"hooks_url": "https://api.github.com/repos/nvahren/test-repo-visibility/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/nvahren/test-repo-visibility/events",
|
||||
"assignees_url": "https://api.github.com/repos/nvahren/test-repo-visibility/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/nvahren/test-repo-visibility/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/nvahren/test-repo-visibility/tags",
|
||||
"blobs_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/nvahren/test-repo-visibility/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/nvahren/test-repo-visibility/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/nvahren/test-repo-visibility/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/nvahren/test-repo-visibility/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/nvahren/test-repo-visibility/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/nvahren/test-repo-visibility/subscription",
|
||||
"commits_url": "https://api.github.com/repos/nvahren/test-repo-visibility/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/nvahren/test-repo-visibility/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/nvahren/test-repo-visibility/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/nvahren/test-repo-visibility/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/nvahren/test-repo-visibility/merges",
|
||||
"archive_url": "https://api.github.com/repos/nvahren/test-repo-visibility/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/nvahren/test-repo-visibility/downloads",
|
||||
"issues_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/nvahren/test-repo-visibility/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/nvahren/test-repo-visibility/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/nvahren/test-repo-visibility/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/nvahren/test-repo-visibility/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/nvahren/test-repo-visibility/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/nvahren/test-repo-visibility/deployments",
|
||||
"created_at": "2021-04-01T14:20:18Z",
|
||||
"updated_at": "2021-04-01T14:20:20Z",
|
||||
"pushed_at": "2021-04-01T14:20:19Z",
|
||||
"git_url": "git://github.com/nvahren/test-repo-visibility.git",
|
||||
"ssh_url": "git@github.com:nvahren/test-repo-visibility.git",
|
||||
"clone_url": "https://github.com/nvahren/test-repo-visibility.git",
|
||||
"svn_url": "https://github.com/nvahren/test-repo-visibility",
|
||||
"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": 0,
|
||||
"license": null,
|
||||
"is_template": false,
|
||||
"visibility": "private",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "ACCHBH3NKBO4HPYLKKIJMLTAMXL5A",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"login": "nvahren",
|
||||
"id": 8679583,
|
||||
"node_id": "MDQ6VXNlcjg2Nzk1ODM=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/8679583?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nvahren",
|
||||
"html_url": "https://github.com/nvahren",
|
||||
"followers_url": "https://api.github.com/users/nvahren/followers",
|
||||
"following_url": "https://api.github.com/users/nvahren/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nvahren/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nvahren/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nvahren/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nvahren/orgs",
|
||||
"repos_url": "https://api.github.com/users/nvahren/repos",
|
||||
"events_url": "https://api.github.com/users/nvahren/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nvahren/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false,
|
||||
"name": null,
|
||||
"company": null,
|
||||
"blog": "",
|
||||
"location": null,
|
||||
"email": null,
|
||||
"hireable": null,
|
||||
"bio": null,
|
||||
"twitter_username": null,
|
||||
"public_repos": 5,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"created_at": "2014-09-06T16:40:29Z",
|
||||
"updated_at": "2021-04-01T13:32:30Z"
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"id": 353724101,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzNTM3MjQxMDE=",
|
||||
"name": "test-repo-public",
|
||||
"full_name": "nvahren/test-repo-public",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "nvahren",
|
||||
"id": 8679583,
|
||||
"node_id": "MDQ6VXNlcjg2Nzk1ODM=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/8679583?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nvahren",
|
||||
"html_url": "https://github.com/nvahren",
|
||||
"followers_url": "https://api.github.com/users/nvahren/followers",
|
||||
"following_url": "https://api.github.com/users/nvahren/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nvahren/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nvahren/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nvahren/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nvahren/orgs",
|
||||
"repos_url": "https://api.github.com/users/nvahren/repos",
|
||||
"events_url": "https://api.github.com/users/nvahren/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nvahren/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/nvahren/test-repo-public",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/nvahren/test-repo-public",
|
||||
"forks_url": "https://api.github.com/repos/nvahren/test-repo-public/forks",
|
||||
"keys_url": "https://api.github.com/repos/nvahren/test-repo-public/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/nvahren/test-repo-public/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/nvahren/test-repo-public/teams",
|
||||
"hooks_url": "https://api.github.com/repos/nvahren/test-repo-public/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/nvahren/test-repo-public/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/nvahren/test-repo-public/events",
|
||||
"assignees_url": "https://api.github.com/repos/nvahren/test-repo-public/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/nvahren/test-repo-public/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/nvahren/test-repo-public/tags",
|
||||
"blobs_url": "https://api.github.com/repos/nvahren/test-repo-public/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/nvahren/test-repo-public/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/nvahren/test-repo-public/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/nvahren/test-repo-public/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/nvahren/test-repo-public/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/nvahren/test-repo-public/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/nvahren/test-repo-public/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/nvahren/test-repo-public/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/nvahren/test-repo-public/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/nvahren/test-repo-public/subscription",
|
||||
"commits_url": "https://api.github.com/repos/nvahren/test-repo-public/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/nvahren/test-repo-public/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/nvahren/test-repo-public/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/nvahren/test-repo-public/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/nvahren/test-repo-public/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/nvahren/test-repo-public/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/nvahren/test-repo-public/merges",
|
||||
"archive_url": "https://api.github.com/repos/nvahren/test-repo-public/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/nvahren/test-repo-public/downloads",
|
||||
"issues_url": "https://api.github.com/repos/nvahren/test-repo-public/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/nvahren/test-repo-public/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/nvahren/test-repo-public/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/nvahren/test-repo-public/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/nvahren/test-repo-public/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/nvahren/test-repo-public/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/nvahren/test-repo-public/deployments",
|
||||
"created_at": "2021-04-01T14:18:29Z",
|
||||
"updated_at": "2021-04-01T14:18:29Z",
|
||||
"pushed_at": "2021-04-01T14:18:30Z",
|
||||
"git_url": "git://github.com/nvahren/test-repo-public.git",
|
||||
"ssh_url": "git@github.com:nvahren/test-repo-public.git",
|
||||
"clone_url": "https://github.com/nvahren/test-repo-public.git",
|
||||
"svn_url": "https://github.com/nvahren/test-repo-public",
|
||||
"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": 0,
|
||||
"license": null,
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"id": 353724658,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzNTM3MjQ2NTg=",
|
||||
"name": "test-repo-visibility",
|
||||
"full_name": "nvahren/test-repo-visibility",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "nvahren",
|
||||
"id": 8679583,
|
||||
"node_id": "MDQ6VXNlcjg2Nzk1ODM=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/8679583?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/nvahren",
|
||||
"html_url": "https://github.com/nvahren",
|
||||
"followers_url": "https://api.github.com/users/nvahren/followers",
|
||||
"following_url": "https://api.github.com/users/nvahren/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/nvahren/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/nvahren/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/nvahren/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/nvahren/orgs",
|
||||
"repos_url": "https://api.github.com/users/nvahren/repos",
|
||||
"events_url": "https://api.github.com/users/nvahren/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/nvahren/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/nvahren/test-repo-visibility",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/nvahren/test-repo-visibility",
|
||||
"forks_url": "https://api.github.com/repos/nvahren/test-repo-visibility/forks",
|
||||
"keys_url": "https://api.github.com/repos/nvahren/test-repo-visibility/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/nvahren/test-repo-visibility/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/nvahren/test-repo-visibility/teams",
|
||||
"hooks_url": "https://api.github.com/repos/nvahren/test-repo-visibility/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/nvahren/test-repo-visibility/events",
|
||||
"assignees_url": "https://api.github.com/repos/nvahren/test-repo-visibility/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/nvahren/test-repo-visibility/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/nvahren/test-repo-visibility/tags",
|
||||
"blobs_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/nvahren/test-repo-visibility/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/nvahren/test-repo-visibility/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/nvahren/test-repo-visibility/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/nvahren/test-repo-visibility/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/nvahren/test-repo-visibility/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/nvahren/test-repo-visibility/subscription",
|
||||
"commits_url": "https://api.github.com/repos/nvahren/test-repo-visibility/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/nvahren/test-repo-visibility/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/nvahren/test-repo-visibility/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/nvahren/test-repo-visibility/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/nvahren/test-repo-visibility/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/nvahren/test-repo-visibility/merges",
|
||||
"archive_url": "https://api.github.com/repos/nvahren/test-repo-visibility/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/nvahren/test-repo-visibility/downloads",
|
||||
"issues_url": "https://api.github.com/repos/nvahren/test-repo-visibility/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/nvahren/test-repo-visibility/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/nvahren/test-repo-visibility/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/nvahren/test-repo-visibility/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/nvahren/test-repo-visibility/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/nvahren/test-repo-visibility/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/nvahren/test-repo-visibility/deployments",
|
||||
"created_at": "2021-04-01T14:20:18Z",
|
||||
"updated_at": "2021-04-01T14:20:18Z",
|
||||
"pushed_at": "2021-04-01T14:20:19Z",
|
||||
"git_url": "git://github.com/nvahren/test-repo-visibility.git",
|
||||
"ssh_url": "git@github.com:nvahren/test-repo-visibility.git",
|
||||
"clone_url": "https://github.com/nvahren/test-repo-visibility.git",
|
||||
"svn_url": "https://github.com/nvahren/test-repo-visibility",
|
||||
"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": 0,
|
||||
"license": null,
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "af275499-c784-4294-8ee3-5403180edae5",
|
||||
"name": "repos_nvahren_test-repo-public",
|
||||
"request": {
|
||||
"url": "/repos/nvahren/test-repo-public",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.nebula-preview+json"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"visibility\":\"private\",\"name\":\"test-repo-public\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 404,
|
||||
"body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#update-a-repository\"}",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:18:30 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "github.nebula-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4980",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "20",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"Vary": "Accept-Encoding, Accept, X-Requested-With",
|
||||
"X-GitHub-Request-Id": "8F68:6930:21F2D5:53AB25:6065D636"
|
||||
}
|
||||
},
|
||||
"uuid": "af275499-c784-4294-8ee3-5403180edae5",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"id": "05a2b170-1523-40c8-9aee-756d287cea66",
|
||||
"name": "repos_nvahren_test-repo-public",
|
||||
"request": {
|
||||
"url": "/repos/nvahren/test-repo-public",
|
||||
"method": "DELETE",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 404,
|
||||
"body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#delete-a-repository\"}",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:18:30 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4979",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "21",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"Vary": "Accept-Encoding, Accept, X-Requested-With",
|
||||
"X-GitHub-Request-Id": "8F68:6930:21F2E1:53AB3F:6065D636"
|
||||
}
|
||||
},
|
||||
"uuid": "05a2b170-1523-40c8-9aee-756d287cea66",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"id": "2d225318-9fc1-46ba-b3bc-b9be70e7b743",
|
||||
"name": "repos_nvahren_test-repo-visibility",
|
||||
"request": {
|
||||
"url": "/repos/nvahren/test-repo-visibility",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.nebula-preview+json"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"visibility\":\"private\",\"name\":\"test-repo-visibility\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_nvahren_test-repo-visibility-6.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:20:20 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"8ececa9802879d416a770fe817eb688ea6b725e7fc0b754b1d5af5b54430b380\"",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "github.nebula-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4976",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "24",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B797:6262:65D2E:197F46:6065D6A3"
|
||||
}
|
||||
},
|
||||
"uuid": "2d225318-9fc1-46ba-b3bc-b9be70e7b743",
|
||||
"persistent": true,
|
||||
"insertionIndex": 6
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "d8b0aea5-1cae-4951-8dec-eef4ce748c57",
|
||||
"name": "repos_nvahren_test-repo-visibility",
|
||||
"request": {
|
||||
"url": "/repos/nvahren/test-repo-visibility",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_nvahren_test-repo-visibility-7.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:20:20 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"8faf24807b9ba877ff6eebed150b9ecb1c220ae8eb4f149d0f785168bf6364d1\"",
|
||||
"Last-Modified": "Thu, 01 Apr 2021 14:20:19 GMT",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4975",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "25",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B797:6262:65D3D:197F7B:6065D6A4"
|
||||
}
|
||||
},
|
||||
"uuid": "d8b0aea5-1cae-4951-8dec-eef4ce748c57",
|
||||
"persistent": true,
|
||||
"insertionIndex": 7
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "b6ac3809-8046-423e-87f0-e815d2c86f4b",
|
||||
"name": "repos_nvahren_test-repo-visibility",
|
||||
"request": {
|
||||
"url": "/repos/nvahren/test-repo-visibility",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.baptiste-preview+json, application/vnd.github.nebula-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_nvahren_test-repo-visibility-8.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:20:20 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"bb898ca809fcbbeac520143ab46296e4c9e68fb1e9082f0c389b5d4b8f2f9b5a\"",
|
||||
"Last-Modified": "Thu, 01 Apr 2021 14:20:20 GMT",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "github.baptiste-preview; format=json, github.nebula-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4974",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "26",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B797:6262:65D44:197F83:6065D6A4"
|
||||
}
|
||||
},
|
||||
"uuid": "b6ac3809-8046-423e-87f0-e815d2c86f4b",
|
||||
"persistent": true,
|
||||
"insertionIndex": 8
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"id": "1e274db4-a019-4d06-9a8d-5652851f2a0f",
|
||||
"name": "repos_nvahren_test-repo-visibility",
|
||||
"request": {
|
||||
"url": "/repos/nvahren/test-repo-visibility",
|
||||
"method": "DELETE",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 204,
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:20:20 GMT",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4973",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "27",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"Vary": "Accept-Encoding, Accept, X-Requested-With",
|
||||
"X-GitHub-Request-Id": "B797:6262:65D4A:197F89:6065D6A4"
|
||||
}
|
||||
},
|
||||
"uuid": "1e274db4-a019-4d06-9a8d-5652851f2a0f",
|
||||
"persistent": true,
|
||||
"insertionIndex": 9
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"id": "1586aaf8-b38e-41e6-9b60-6be94582c62f",
|
||||
"name": "user",
|
||||
"request": {
|
||||
"url": "/user",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "user-1.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:18:28 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"881979f7b4614537298fdff264b2596361d8feb62d3d261b538e4ce6a7857e2b\"",
|
||||
"Last-Modified": "Thu, 01 Apr 2021 13:32:30 GMT",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4983",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "17",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "8F68:6930:21F21A:53A924:6065D634"
|
||||
}
|
||||
},
|
||||
"uuid": "1586aaf8-b38e-41e6-9b60-6be94582c62f",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "9f6ce684-c9a4-4308-b28f-45ebe468724f",
|
||||
"name": "user_repos",
|
||||
"request": {
|
||||
"url": "/user/repos",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.nebula-preview+json"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"visibility\":\"PUBLIC\",\"name\":\"test-repo-public\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 201,
|
||||
"bodyFileName": "user_repos-2.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:18:30 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "\"f0f1f2246438523cd8de06673ae469d080afb30d6a4a88150dc95fa11d238ab3\"",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "public_repo, repo",
|
||||
"X-GitHub-Media-Type": "github.nebula-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4981",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "19",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "8F68:6930:21F278:53AA09:6065D635",
|
||||
"Location": "https://api.github.com/repos/nvahren/test-repo-public"
|
||||
}
|
||||
},
|
||||
"uuid": "9f6ce684-c9a4-4308-b28f-45ebe468724f",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "55127029-0292-4169-9bc6-4e8a8a612cdc",
|
||||
"name": "user_repos",
|
||||
"request": {
|
||||
"url": "/user/repos",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.nebula-preview+json"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"visibility\":\"PUBLIC\",\"name\":\"test-repo-visibility\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 201,
|
||||
"bodyFileName": "user_repos-5.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 01 Apr 2021 14:20:19 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "\"5ca601690515936a8130f8a343db60f25928a9e2a0df2458313981fccd4fa59d\"",
|
||||
"X-OAuth-Scopes": "delete_repo, repo",
|
||||
"X-Accepted-OAuth-Scopes": "public_repo, repo",
|
||||
"X-GitHub-Media-Type": "github.nebula-preview; format=json",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4977",
|
||||
"X-RateLimit-Reset": "1617287622",
|
||||
"X-RateLimit-Used": "23",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "B797:6262:65D13:197EE6:6065D6A2",
|
||||
"Location": "https://api.github.com/repos/nvahren/test-repo-visibility"
|
||||
}
|
||||
},
|
||||
"uuid": "55127029-0292-4169-9bc6-4e8a8a612cdc",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
Reference in New Issue
Block a user