Merge pull request #1119 from bitwiseman/task/main

Switch to 'main' as default branch
This commit is contained in:
Liam Newman
2021-04-19 13:40:13 -07:00
committed by GitHub
738 changed files with 5091 additions and 5087 deletions

View File

@@ -1,15 +1,16 @@
# Description
** Describe your change here**
# Description
<!-- Describe your change here -->
# Before submitting a PR:
We love getting PRs, but we hate asking people for the same basic changes every time.
We love getting PRs, but we hate asking people for the same basic changes every time.
- [ ] Push your changes to a branch other than `master`. Create your PR from that branch.
- [ ] Push your changes to a branch other than `main`. Create your PR from that branch.
- [ ] Add JavaDocs and other comments
- [ ] Write tests that run and pass in CI. See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to capture snapshot data.
- [ ] Run `mvn -D enable-ci clean install site` locally. If this command doesn't succeed, your change will not pass CI.
- [ ] Run `mvn -D enable-ci clean install site` locally. If this command doesn't succeed, your change will not pass CI.
# When creating a PR:
- [ ] Fill in the "Description" above.
- [ ] Enable "Allow edits from maintainers".
- [ ] Fill in the "Description" above.
- [ ] Enable "Allow edits from maintainers".

View File

@@ -13,10 +13,10 @@ name: "CodeQL"
on:
push:
branches: [ master, gh-pages ]
branches: [ main, gh-pages ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ main ]
schedule:
- cron: '20 0 * * 6'

View File

@@ -2,7 +2,7 @@
[![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/org.kohsuke/github-api?server=https%3A%2F%2Foss.sonatype.org)](https://mvnrepository.com/artifact/org.kohsuke/github-api)
[![Join the chat at https://gitter.im/hub4j/github-api](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hub4j/github-api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
![CI](https://github.com/hub4j/github-api/workflows/CI/badge.svg?branch=master)
![CI](https://github.com/hub4j/github-api/workflows/CI/badge.svg?branch=main)

View File

@@ -711,9 +711,11 @@ public class GHEventPayload extends GitHubInteractiveObject {
}
/**
* Gets master branch.
* Gets default branch.
*
* @return the master branch
* Name is an artifact of when "master" was the most common default.
*
* @return the default branch
*/
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "Comes from JSON deserialization")
public String getMasterBranch() {
@@ -959,7 +961,7 @@ public class GHEventPayload extends GitHubInteractiveObject {
}
/**
* The full Git ref that was pushed. Example: “refs/heads/master
* The full Git ref that was pushed. Example: “refs/heads/main
*
* @return the ref
*/

View File

@@ -41,7 +41,7 @@ public class GHReleaseBuilder {
* Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.
*
* @param commitish
* Defaults to the repositorys default branch (usually "master"). Unused if the Git tag already exists.
* Defaults to the repositorys default branch (usually "main"). Unused if the Git tag already exists.
* @return the gh release builder
*/
public GHReleaseBuilder commitish(String commitish) {

View File

@@ -45,7 +45,7 @@ public class GHReleaseUpdater {
* Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.
*
* @param commitish
* Defaults to the repositorys default branch (usually "master"). Unused if the Git tag already exists.
* Defaults to the repositorys default branch (usually "main"). Unused if the Git tag already exists.
* @return the gh release updater
*/
public GHReleaseUpdater commitish(String commitish) {

View File

@@ -461,7 +461,7 @@ public class GHRepository extends GHObject {
* Creates a named ref, such as tag, branch, etc.
*
* @param name
* The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and
* The name of the fully qualified reference (ie: refs/heads/main). If it doesn't start with 'refs' and
* have at least two slashes, it will be rejected.
* @param sha
* The SHA1 value to set this reference to
@@ -848,16 +848,18 @@ public class GHRepository extends GHObject {
/**
* Returns the primary branch you'll configure in the "Admin &gt; Options" config page.
*
* @return This field is null until the user explicitly configures the master branch.
* @return This field is null until the user explicitly configures the default branch.
*/
public String getDefaultBranch() {
return default_branch;
}
/**
* Gets master branch.
* Gets default branch.
*
* @return the master branch
* Name is an artifact of when "master" was the most common default.
*
* @return the default branch
* @deprecated Renamed to {@link #getDefaultBranch()}
*/
@Deprecated
@@ -1775,7 +1777,7 @@ public class GHRepository extends GHObject {
* Retrive a tree of the given type for the current GitHub repository.
*
* @param sha
* sha number or branch name ex: "master"
* sha number or branch name ex: "main"
* @return refs matching the request type
* @throws IOException
* on failure communicating with GitHub, potentially due to an invalid tree type being requested
@@ -1799,7 +1801,7 @@ public class GHRepository extends GHObject {
* https://developer.github.com/v3/git/trees/#get-a-tree-recursively
*
* @param sha
* sha number or branch name ex: "master"
* sha number or branch name ex: "main"
* @param recursive
* use 1
* @return the tree recursive
@@ -3150,7 +3152,7 @@ public class GHRepository extends GHObject {
* @param streamFunction
* The {@link InputStreamFunction} that will process the stream
* @param ref
* if <code>null</code> the repository's default branch, usually <code>master</code>,
* if <code>null</code> the repository's default branch, usually <code>main</code>,
* @throws IOException
* The IO exception.
* @return the result of reading the stream.
@@ -3167,7 +3169,7 @@ public class GHRepository extends GHObject {
* @param streamFunction
* The {@link InputStreamFunction} that will process the stream
* @param ref
* if <code>null</code> the repository's default branch, usually <code>master</code>,
* if <code>null</code> the repository's default branch, usually <code>main</code>,
* @throws IOException
* The IO exception.
* @return the result of reading the stream.

View File

@@ -368,7 +368,8 @@ public class AppTest extends AbstractGitHubWireMockTest {
@Test
public void testFetchPullRequest() throws Exception {
GHRepository r = gitHub.getOrganization("jenkinsci").getRepository("jenkins");
assertEquals("master", r.getMasterBranch());
assertEquals("main", r.getMasterBranch());
assertEquals("main", r.getDefaultBranch());
r.getPullRequest(1);
r.getPullRequests(GHIssueState.OPEN);
}
@@ -377,7 +378,7 @@ public class AppTest extends AbstractGitHubWireMockTest {
@Test
public void testFetchPullRequestAsList() throws Exception {
GHRepository r = gitHub.getRepository("hub4j/github-api");
assertEquals("master", r.getMasterBranch());
assertEquals("main", r.getMasterBranch());
PagedIterable<GHPullRequest> i = r.listPullRequests(GHIssueState.CLOSED);
List<GHPullRequest> prs = i.toList();
assertNotNull(prs);
@@ -816,9 +817,9 @@ public class AppTest extends AbstractGitHubWireMockTest {
@Test
public void testRef() throws IOException {
GHRef masterRef = gitHub.getRepository("jenkinsci/jenkins").getRef("heads/master");
assertEquals(mockGitHub.apiServer().baseUrl() + "/repos/jenkinsci/jenkins/git/refs/heads/master",
masterRef.getUrl().toString());
GHRef mainRef = gitHub.getRepository("jenkinsci/jenkins").getRef("heads/main");
assertEquals(mockGitHub.apiServer().baseUrl() + "/repos/jenkinsci/jenkins/git/refs/heads/main",
mainRef.getUrl().toString());
}
@Test
@@ -858,8 +859,8 @@ public class AppTest extends AbstractGitHubWireMockTest {
@Test
public void testCommitStatusContext() throws IOException {
GHRepository myRepository = getTestRepository();
GHRef masterRef = myRepository.getRef("heads/master");
GHCommitStatus commitStatus = myRepository.createCommitStatus(masterRef.getObject()
GHRef mainRef = myRepository.getRef("heads/main");
GHCommitStatus commitStatus = myRepository.createCommitStatus(mainRef.getObject()
.getSha(), GHCommitState.SUCCESS, "http://www.example.com", "test", "test/context");
assertEquals("test/context", commitStatus.getContext());
@@ -917,9 +918,9 @@ public class AppTest extends AbstractGitHubWireMockTest {
@Ignore("Needs mocking check")
@Test
public void testTrees() throws IOException {
GHTree masterTree = gitHub.getRepository("hub4j/github-api").getTree("master");
GHTree mainTree = gitHub.getRepository("hub4j/github-api").getTree("main");
boolean foundReadme = false;
for (GHTreeEntry e : masterTree.getTree()) {
for (GHTreeEntry e : mainTree.getTree()) {
if ("readme".equalsIgnoreCase(e.getPath().replaceAll("\\.md", ""))) {
foundReadme = true;
break;
@@ -930,9 +931,9 @@ public class AppTest extends AbstractGitHubWireMockTest {
@Test
public void testTreesRecursive() throws IOException {
GHTree masterTree = gitHub.getRepository("hub4j/github-api").getTreeRecursive("master", 1);
GHTree mainTree = gitHub.getRepository("hub4j/github-api").getTreeRecursive("main", 1);
boolean foundThisFile = false;
for (GHTreeEntry e : masterTree.getTree()) {
for (GHTreeEntry e : mainTree.getTree()) {
if (e.getPath().endsWith(AppTest.class.getSimpleName() + ".java")) {
foundThisFile = true;
assertThat(e.getPath(), equalTo("src/test/java/org/kohsuke/github/AppTest.java"));

View File

@@ -157,12 +157,12 @@ public class CommitTest extends AbstractGitHubWireMockTest {
GHCommit commit = repo.getCommit("ab92e13c0fc844fd51a379a48a3ad0b18231215c");
assertThat("Commit which was supposed to be HEAD in the \"master\" branch was not found.",
assertThat("Commit which was supposed to be HEAD in the \"main\" branch was not found.",
commit.listBranchesWhereHead()
.toList()
.stream()
.findFirst()
.filter(it -> it.getName().equals("master"))
.filter(it -> it.getName().equals("main"))
.isPresent());
}

View File

@@ -9,7 +9,7 @@ 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 = "main";
private static final String BRANCH_REF = "heads/" + BRANCH;
private GHBranch branch;

View File

@@ -16,9 +16,9 @@ public class GHBranchTest extends AbstractGitHubWireMockTest {
public void testMergeBranch() throws Exception {
repository = getTempRepository();
String masterHead = repository.getRef("heads/master").getObject().getSha();
createRefAndPostContent(BRANCH_1, masterHead);
createRefAndPostContent(BRANCH_2, masterHead);
String mainHead = repository.getRef("heads/main").getObject().getSha();
createRefAndPostContent(BRANCH_1, mainHead);
createRefAndPostContent(BRANCH_2, mainHead);
GHBranch otherBranch = repository.getBranch(BRANCH_2);
String commitMessage = "merging " + BRANCH_2;
@@ -28,13 +28,13 @@ public class GHBranchTest extends AbstractGitHubWireMockTest {
// Merging commit sha should work
commitMessage = "merging from " + mergeCommit.getSHA1();
GHBranch master = repository.getBranch("master");
mergeCommit = master.merge(mergeCommit.getSHA1(), commitMessage);
GHBranch main = repository.getBranch("main");
mergeCommit = main.merge(mergeCommit.getSHA1(), commitMessage);
assertThat(mergeCommit, notNullValue());
assertThat(mergeCommit.getCommitShortInfo().getMessage(), equalTo(commitMessage));
mergeCommit = master.merge(mergeCommit.getSHA1(), commitMessage);
mergeCommit = main.merge(mergeCommit.getSHA1(), commitMessage);
// Should be null since all changes already merged
assertThat(mergeCommit, nullValue());
}

View File

@@ -79,10 +79,10 @@ public class GHContentIntegrationTest extends AbstractGitHubWireMockTest {
@Test
public void testGetDirectoryContentTrailingSlash() throws Exception {
// Used to truncate the ?ref=master, see gh-224 https://github.com/kohsuke/github-api/pull/224
List<GHContent> entries = repo.getDirectoryContent("ghcontent-ro/a-dir-with-3-entries/", "master");
// Used to truncate the ?ref=main, see gh-224 https://github.com/kohsuke/github-api/pull/224
List<GHContent> entries = repo.getDirectoryContent("ghcontent-ro/a-dir-with-3-entries/", "main");
assertTrue(entries.get(0).getUrl().endsWith("?ref=master"));
assertTrue(entries.get(0).getUrl().endsWith("?ref=main"));
}
@Test

View File

@@ -20,7 +20,7 @@ public class GHDeploymentTest extends AbstractGitHubWireMockTest {
assertEquals("production", deployment.getEnvironment());
assertEquals("custom", deployment.getPayload());
assertEquals("custom", deployment.getPayloadObject());
assertEquals("master", deployment.getRef());
assertEquals("main", deployment.getRef());
assertEquals("3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", deployment.getSha());
assertEquals("deploy", deployment.getTask());
assertEquals("production", deployment.getOriginalEnvironment());
@@ -35,7 +35,7 @@ public class GHDeploymentTest extends AbstractGitHubWireMockTest {
assertNotNull(deployment);
assertEquals(178653229, deployment.getId());
assertEquals("production", deployment.getEnvironment());
assertEquals("master", deployment.getRef());
assertEquals("main", deployment.getRef());
assertEquals("3a09d2de4a9a1322a0ba2c3e2f54a919ca8fe353", deployment.getSha());
assertEquals("deploy", deployment.getTask());
final Map<String, Object> payload = deployment.getPayloadMap();

View File

@@ -50,7 +50,7 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
.parseEventPayload(payload.asReader(), GHEventPayload.Create.class);
assertThat(event.getRef(), is("0.0.1"));
assertThat(event.getRefType(), is("tag"));
assertThat(event.getMasterBranch(), is("master"));
assertThat(event.getMasterBranch(), is("main"));
assertThat(event.getDescription(), is(""));
assertThat(event.getRepository().getName(), is("public-repo"));
assertThat(event.getRepository().getOwner().getLogin(), is("baxterthehacker"));
@@ -241,15 +241,15 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(event.getPullRequest().getNumber(), is(1));
assertThat(event.getPullRequest().getTitle(), is("Update the README with new information"));
assertThat(event.getPullRequest().getBody(),
is("This is a pretty simple change that we need to pull into " + "master."));
is("This is a pretty simple change that we need to pull into " + "main."));
assertThat(event.getPullRequest().getUser().getLogin(), is("baxterthehacker"));
assertThat(event.getPullRequest().getHead().getUser().getLogin(), is("baxterthehacker"));
assertThat(event.getPullRequest().getHead().getRef(), is("changes"));
assertThat(event.getPullRequest().getHead().getLabel(), is("baxterthehacker:changes"));
assertThat(event.getPullRequest().getHead().getSha(), is("0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c"));
assertThat(event.getPullRequest().getBase().getUser().getLogin(), is("baxterthehacker"));
assertThat(event.getPullRequest().getBase().getRef(), is("master"));
assertThat(event.getPullRequest().getBase().getLabel(), is("baxterthehacker:master"));
assertThat(event.getPullRequest().getBase().getRef(), is("main"));
assertThat(event.getPullRequest().getBase().getLabel(), is("baxterthehacker:main"));
assertThat(event.getPullRequest().getBase().getSha(), is("9049f1265b7d61be4a8904a9a27120d2064dab3b"));
assertThat(event.getPullRequest().isMerged(), is(false));
assertThat(event.getPullRequest().getMergeable(), nullValue());
@@ -355,8 +355,8 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(event.getPullRequest().getHead().getLabel(), is("skalnik:patch-2"));
assertThat(event.getPullRequest().getHead().getSha(), is("b7a1f9c27caa4e03c14a88feb56e2d4f7500aa63"));
assertThat(event.getPullRequest().getBase().getUser().getLogin(), is("baxterthehacker"));
assertThat(event.getPullRequest().getBase().getRef(), is("master"));
assertThat(event.getPullRequest().getBase().getLabel(), is("baxterthehacker:master"));
assertThat(event.getPullRequest().getBase().getRef(), is("main"));
assertThat(event.getPullRequest().getBase().getLabel(), is("baxterthehacker:main"));
assertThat(event.getPullRequest().getBase().getSha(), is("9049f1265b7d61be4a8904a9a27120d2064dab3b"));
assertThat(event.getRepository().getName(), is("public-repo"));
@@ -376,15 +376,15 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(event.getPullRequest().getNumber(), is(1));
assertThat(event.getPullRequest().getTitle(), is("Update the README with new information"));
assertThat(event.getPullRequest().getBody(),
is("This is a pretty simple change that we need to pull into master."));
is("This is a pretty simple change that we need to pull into main."));
assertThat(event.getPullRequest().getUser().getLogin(), is("baxterthehacker"));
assertThat(event.getPullRequest().getHead().getUser().getLogin(), is("baxterthehacker"));
assertThat(event.getPullRequest().getHead().getRef(), is("changes"));
assertThat(event.getPullRequest().getHead().getLabel(), is("baxterthehacker:changes"));
assertThat(event.getPullRequest().getHead().getSha(), is("0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c"));
assertThat(event.getPullRequest().getBase().getUser().getLogin(), is("baxterthehacker"));
assertThat(event.getPullRequest().getBase().getRef(), is("master"));
assertThat(event.getPullRequest().getBase().getLabel(), is("baxterthehacker:master"));
assertThat(event.getPullRequest().getBase().getRef(), is("main"));
assertThat(event.getPullRequest().getBase().getLabel(), is("baxterthehacker:main"));
assertThat(event.getPullRequest().getBase().getSha(), is("9049f1265b7d61be4a8904a9a27120d2064dab3b"));
assertThat(event.getRepository().getName(), is("public-repo"));
@@ -477,8 +477,8 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
assertThat(event.getRepository().getHttpTransportUrl(), is("https://github.com/hub4j-test-org/github-api.git"));
// ensure that root has been bound after populate
event.getRepository().getSource().getRef("heads/master");
event.getRepository().getParent().getRef("heads/master");
event.getRepository().getSource().getRef("heads/main");
event.getRepository().getParent().getRef("heads/main");
// Source
event = gitHub.parseEventPayload(payload.asReader(mockGitHub::mapToMockGitHub), GHEventPayload.Push.class);
@@ -559,7 +559,7 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
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."));
equalTo("This is a pretty simple change that we need to pull into main."));
assertThat("multiple getPullRequests() calls are made, the pull is populated only once",
mockGitHub.getRequestCount(),
equalTo(expectedRequestCount));
@@ -624,7 +624,7 @@ public class GHEventPayloadTest extends AbstractGitHubWireMockTest {
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."));
equalTo("This is a pretty simple change that we need to pull into main."));
assertThat("multiple getPullRequests() calls are made, the pull is populated only once",
mockGitHub.getRequestCount(),
lessThanOrEqualTo(expectedRequestCount));

View File

@@ -74,10 +74,8 @@ public class GHMilestoneTest extends AbstractGitHubWireMockTest {
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");
GHPullRequest p = repo
.createPullRequest("testUnsetMilestoneFromPullRequest", "test/stable", "main", "## test pull request");
// set the milestone
p.setMilestone(milestone);

View File

@@ -40,7 +40,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
public void createPullRequest() throws Exception {
String name = "createPullRequest";
GHRepository repo = getRepository();
GHPullRequest p = repo.createPullRequest(name, "test/stable", "master", "## test");
GHPullRequest p = repo.createPullRequest(name, "test/stable", "main", "## test");
assertEquals(name, p.getTitle());
assertThat(p.canMaintainerModify(), is(false));
assertThat(p.isDraft(), is(false));
@@ -50,7 +50,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
public void createDraftPullRequest() throws Exception {
String name = "createDraftPullRequest";
GHRepository repo = getRepository();
GHPullRequest p = repo.createPullRequest(name, "test/stable", "master", "## test", false, true);
GHPullRequest p = repo.createPullRequest(name, "test/stable", "main", "## test", false, true);
assertEquals(name, p.getTitle());
assertThat(p.canMaintainerModify(), is(false));
assertThat(p.isDraft(), is(true));
@@ -73,14 +73,14 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void createPullRequestComment() throws Exception {
String name = "createPullRequestComment";
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "main", "## test");
p.comment("Some comment");
}
@Test
public void closePullRequest() throws Exception {
String name = "closePullRequest";
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "main", "## test");
// System.out.println(p.getUrl());
assertEquals(name, p.getTitle());
assertEquals(GHIssueState.OPEN, getRepository().getPullRequest(p.getNumber()).getState());
@@ -91,7 +91,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void pullRequestReviews() throws Exception {
String name = "testPullRequestReviews";
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "main", "## test");
GHPullRequestReview draftReview = p.createReview()
.body("Some draft review")
.comment("Some niggle", "README.md", 1)
@@ -117,7 +117,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void pullRequestReviewComments() throws Exception {
String name = "pullRequestReviewComments";
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "main", "## test");
try {
// System.out.println(p.getUrl());
assertTrue(p.listReviewComments().toList().isEmpty());
@@ -169,7 +169,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void testPullRequestReviewRequests() throws Exception {
String name = "testPullRequestReviewRequests";
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "main", "## test");
// System.out.println(p.getUrl());
assertTrue(p.getRequestedReviewers().isEmpty());
@@ -182,7 +182,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void testPullRequestTeamReviewRequests() throws Exception {
String name = "testPullRequestTeamReviewRequests";
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "main", "## test");
// System.out.println(p.getUrl());
assertTrue(p.getRequestedReviewers().isEmpty());
@@ -212,7 +212,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
public void mergeCommitSHA() throws Exception {
String name = "mergeCommitSHA";
GHRepository repo = getRepository();
GHPullRequest p = repo.createPullRequest(name, "test/mergeable_branch", "master", "## test");
GHPullRequest p = repo.createPullRequest(name, "test/mergeable_branch", "main", "## test");
int baseRequestCount = mockGitHub.getRequestCount();
assertThat(p.getMergeableNoRefresh(), nullValue());
assertThat("Used existing value", mockGitHub.getRequestCount() - baseRequestCount, equalTo(0));
@@ -244,10 +244,10 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void setBaseBranch() throws Exception {
String prName = "testSetBaseBranch";
String originalBaseBranch = "master";
String originalBaseBranch = "main";
String newBaseBranch = "gh-pages";
GHPullRequest pullRequest = getRepository().createPullRequest(prName, "test/stable", "master", "## test");
GHPullRequest pullRequest = getRepository().createPullRequest(prName, "test/stable", "main", "## test");
assertEquals("Pull request base branch is supposed to be " + originalBaseBranch,
originalBaseBranch,
@@ -263,10 +263,10 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void setBaseBranchNonExisting() throws Exception {
String prName = "testSetBaseBranchNonExisting";
String originalBaseBranch = "master";
String originalBaseBranch = "main";
String newBaseBranch = "non-existing";
GHPullRequest pullRequest = getRepository().createPullRequest(prName, "test/stable", "master", "## test");
GHPullRequest pullRequest = getRepository().createPullRequest(prName, "test/stable", "main", "## test");
assertEquals("Pull request base branch is supposed to be " + originalBaseBranch,
originalBaseBranch,
@@ -291,7 +291,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
GHRef outdatedRef = repository.getRef(outdatedRefName);
outdatedRef.updateTo("6440189369f9f33b2366556a94dbc26f2cfdd969", true);
GHPullRequest outdatedPullRequest = repository.createPullRequest(prName, "outdated", "master", "## test");
GHPullRequest outdatedPullRequest = repository.createPullRequest(prName, "outdated", "main", "## test");
do {
Thread.sleep(5000);
@@ -322,7 +322,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
repository.getRef(outdatedRefName).updateTo("6440189369f9f33b2366556a94dbc26f2cfdd969", true);
GHPullRequest outdatedPullRequest = repository.createPullRequest(prName, "outdated", "master", "## test");
GHPullRequest outdatedPullRequest = repository.createPullRequest(prName, "outdated", "main", "## test");
do {
Thread.sleep(5000);
@@ -345,12 +345,12 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
public void squashMerge() throws Exception {
String name = "squashMerge";
String branchName = "test/" + name;
GHRef masterRef = getRepository().getRef("heads/master");
GHRef branchRef = getRepository().createRef("refs/heads/" + branchName, masterRef.getObject().getSha());
GHRef mainRef = getRepository().getRef("heads/main");
GHRef branchRef = getRepository().createRef("refs/heads/" + branchName, mainRef.getObject().getSha());
getRepository().createContent(name, name, name, branchName);
Thread.sleep(1000);
GHPullRequest p = getRepository().createPullRequest(name, branchName, "master", "## test squash");
GHPullRequest p = getRepository().createPullRequest(name, branchName, "main", "## test squash");
Thread.sleep(1000);
p.merge("squash merge", null, GHPullRequest.MergeMethod.SQUASH);
}
@@ -360,8 +360,8 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
String name = "updateContentSquashMerge";
String branchName = "test/" + name;
GHRef masterRef = getRepository().getRef("heads/master");
GHRef branchRef = getRepository().createRef("refs/heads/" + branchName, masterRef.getObject().getSha());
GHRef mainRef = getRepository().getRef("heads/main");
GHRef branchRef = getRepository().createRef("refs/heads/" + branchName, mainRef.getObject().getSha());
GHContentUpdateResponse response = getRepository().createContent(name, name, name, branchName);
Thread.sleep(1000);
@@ -373,7 +373,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
.message(name)
.sha(response.getContent().getSha())
.commit();
GHPullRequest p = getRepository().createPullRequest(name, branchName, "master", "## test squash");
GHPullRequest p = getRepository().createPullRequest(name, branchName, "main", "## test squash");
Thread.sleep(1000);
p.merge("squash merge", null, GHPullRequest.MergeMethod.SQUASH);
}
@@ -381,15 +381,15 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void queryPullRequestsQualifiedHead() throws Exception {
GHRepository repo = getRepository();
// Create PRs from two different branches to master
repo.createPullRequest("queryPullRequestsQualifiedHead_stable", "test/stable", "master", null);
repo.createPullRequest("queryPullRequestsQualifiedHead_rc", "test/rc", "master", null);
// Create PRs from two different branches to main
repo.createPullRequest("queryPullRequestsQualifiedHead_stable", "test/stable", "main", null);
repo.createPullRequest("queryPullRequestsQualifiedHead_rc", "test/rc", "main", null);
// Query by one of the heads and make sure we only get that branch's PR back.
List<GHPullRequest> prs = repo.queryPullRequests()
.state(GHIssueState.OPEN)
.head("hub4j-test-org:test/stable")
.base("master")
.base("main")
.list()
.toList();
assertNotNull(prs);
@@ -400,15 +400,15 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void queryPullRequestsUnqualifiedHead() throws Exception {
GHRepository repo = getRepository();
// Create PRs from two different branches to master
repo.createPullRequest("queryPullRequestsUnqualifiedHead_stable", "test/stable", "master", null);
repo.createPullRequest("queryPullRequestsUnqualifiedHead_rc", "test/rc", "master", null);
// Create PRs from two different branches to main
repo.createPullRequest("queryPullRequestsUnqualifiedHead_stable", "test/stable", "main", null);
repo.createPullRequest("queryPullRequestsUnqualifiedHead_rc", "test/rc", "main", null);
// Query by one of the heads and make sure we only get that branch's PR back.
List<GHPullRequest> prs = repo.queryPullRequests()
.state(GHIssueState.OPEN)
.head("test/stable")
.base("master")
.base("main")
.list()
.toList();
assertNotNull(prs);
@@ -419,7 +419,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
// Requires push access to the test repo to pass
public void setLabels() throws Exception {
GHPullRequest p = getRepository().createPullRequest("setLabels", "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest("setLabels", "test/stable", "main", "## test");
String label = "setLabels_label_name";
p.setLabels(label);
@@ -435,7 +435,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
// Requires push access to the test repo to pass
public void addLabels() throws Exception {
GHPullRequest p = getRepository().createPullRequest("addLabels", "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest("addLabels", "test/stable", "main", "## test");
String addedLabel1 = "addLabels_label_name_1";
String addedLabel2 = "addLabels_label_name_2";
String addedLabel3 = "addLabels_label_name_3";
@@ -468,7 +468,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
String addedLabel2 = "addLabelsConcurrencyIssue_label_name_2";
GHPullRequest p1 = getRepository()
.createPullRequest("addLabelsConcurrencyIssue", "test/stable", "master", "## test");
.createPullRequest("addLabelsConcurrencyIssue", "test/stable", "main", "## test");
p1.getLabels();
GHPullRequest p2 = getRepository().getPullRequest(p1.getNumber());
@@ -485,7 +485,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
// Requires push access to the test repo to pass
public void removeLabels() throws Exception {
GHPullRequest p = getRepository().createPullRequest("removeLabels", "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest("removeLabels", "test/stable", "main", "## test");
String label1 = "removeLabels_label_name_1";
String label2 = "removeLabels_label_name_2";
String label3 = "removeLabels_label_name_3";
@@ -519,7 +519,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
// Requires push access to the test repo to pass
public void setAssignee() throws Exception {
GHPullRequest p = getRepository().createPullRequest("setAssignee", "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest("setAssignee", "test/stable", "main", "## test");
GHMyself user = gitHub.getMyself();
p.assignTo(user);
@@ -528,7 +528,7 @@ public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Test
public void getUserTest() throws IOException {
GHPullRequest p = getRepository().createPullRequest("getUserTest", "test/stable", "master", "## test");
GHPullRequest p = getRepository().createPullRequest("getUserTest", "test/stable", "main", "## test");
GHPullRequest prSingle = getRepository().getPullRequest(p.getNumber());
assertNotNull(prSingle.getUser().getRoot());
prSingle.getMergeable();

View File

@@ -579,7 +579,7 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
GHRef[] refs = repo.getRefs();
assertThat(refs, notNullValue());
assertThat(refs.length, equalTo(1));
assertThat(refs[0].getRef(), equalTo("refs/heads/master"));
assertThat(refs[0].getRef(), equalTo("refs/heads/main"));
}
@Test
@@ -588,7 +588,7 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
GHRef[] refs = repo.getRefs("heads");
assertThat(refs, notNullValue());
assertThat(refs.length, equalTo(1));
assertThat(refs[0].getRef(), equalTo("refs/heads/master"));
assertThat(refs[0].getRef(), equalTo("refs/heads/main"));
}
@Test
@@ -697,7 +697,7 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
List<GHRef> refs = repo.listRefs("heads").toList();
assertThat(refs, notNullValue());
assertThat(refs.size(), equalTo(1));
assertThat(refs.get(0).getRef(), equalTo("refs/heads/master"));
assertThat(refs.get(0).getRef(), equalTo("refs/heads/main"));
}
@Test

View File

@@ -28,7 +28,7 @@ public class GHTreeBuilderTest extends AbstractGitHubWireMockTest {
private static byte[] CONTENT_DATA2 = { 0x04, 0x05, 0x06, 0x07 };
private GHRepository repo;
private GHRef masterRef;
private GHRef mainRef;
private GHTreeBuilder treeBuilder;
@Before
@@ -51,9 +51,9 @@ public class GHTreeBuilderTest extends AbstractGitHubWireMockTest {
@Before
public void setUp() throws Exception {
repo = gitHub.getRepository(REPO_NAME);
masterRef = repo.getRef("heads/master");
String masterTreeSha = repo.getTreeRecursive("master", 1).getSha();
treeBuilder = repo.createTree().baseTree(masterTreeSha);
mainRef = repo.getRef("heads/main");
String mainTreeSha = repo.getTreeRecursive("main", 1).getSha();
treeBuilder = repo.createTree().baseTree(mainTreeSha);
}
@Test
@@ -107,11 +107,11 @@ public class GHTreeBuilderTest extends AbstractGitHubWireMockTest {
.tree(treeSha)
.author("author", "author@author.com", new Date(1611433225969L))
.committer("committer", "committer@committer.com", new Date(1611433225968L))
.parent(masterRef.getObject().getSha())
.parent(mainRef.getObject().getSha())
.create();
String commitSha = commit.getSHA1();
masterRef.updateTo(commitSha);
mainRef.updateTo(commitSha);
return commit;
}

View File

@@ -87,7 +87,7 @@ public class LifecycleTest extends AbstractGitHubWireMockTest {
endsWith("/repos/hub4j-test-org/temp-testCreateRepository/zipball/release_tag"));
assertThat(release.getTarballUrl(),
endsWith("/repos/hub4j-test-org/temp-testCreateRepository/tarball/release_tag"));
assertThat(release.getTargetCommitish(), equalTo("master"));
assertThat(release.getTargetCommitish(), equalTo("main"));
assertThat(release.getHtmlUrl().toString(),
endsWith("/hub4j-test-org/temp-testCreateRepository/releases/tag/release_tag"));

View File

@@ -90,7 +90,7 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -90,7 +90,7 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -90,7 +90,7 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 433,
"open_issues": 64,
"watchers": 565,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 5807,
"open_issues": 74,
"watchers": 14167,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": false,
"push": false,

View File

@@ -4,15 +4,15 @@
"path": "core/move-l10n.groovy",
"sha": "8d002348827a6c76ec3b4832278384c74a91d692",
"size": 1560,
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/move-l10n.groovy?ref=master",
"html_url": "https://github.com/jenkinsci/jenkins/blob/master/core/move-l10n.groovy",
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/move-l10n.groovy?ref=main",
"html_url": "https://github.com/jenkinsci/jenkins/blob/main/core/move-l10n.groovy",
"git_url": "https://api.github.com/repos/jenkinsci/jenkins/git/blobs/8d002348827a6c76ec3b4832278384c74a91d692",
"download_url": "https://raw.githubusercontent.com/jenkinsci/jenkins/master/core/move-l10n.groovy",
"download_url": "https://raw.githubusercontent.com/jenkinsci/jenkins/main/core/move-l10n.groovy",
"type": "file",
"_links": {
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/move-l10n.groovy?ref=master",
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/move-l10n.groovy?ref=main",
"git": "https://api.github.com/repos/jenkinsci/jenkins/git/blobs/8d002348827a6c76ec3b4832278384c74a91d692",
"html": "https://github.com/jenkinsci/jenkins/blob/master/core/move-l10n.groovy"
"html": "https://github.com/jenkinsci/jenkins/blob/main/core/move-l10n.groovy"
}
},
{
@@ -20,15 +20,15 @@
"path": "core/pom.xml",
"sha": "0402553742ec270b65e5ea4c0851088659987183",
"size": 28950,
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/pom.xml?ref=master",
"html_url": "https://github.com/jenkinsci/jenkins/blob/master/core/pom.xml",
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/pom.xml?ref=main",
"html_url": "https://github.com/jenkinsci/jenkins/blob/main/core/pom.xml",
"git_url": "https://api.github.com/repos/jenkinsci/jenkins/git/blobs/0402553742ec270b65e5ea4c0851088659987183",
"download_url": "https://raw.githubusercontent.com/jenkinsci/jenkins/master/core/pom.xml",
"download_url": "https://raw.githubusercontent.com/jenkinsci/jenkins/main/core/pom.xml",
"type": "file",
"_links": {
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/pom.xml?ref=master",
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/pom.xml?ref=main",
"git": "https://api.github.com/repos/jenkinsci/jenkins/git/blobs/0402553742ec270b65e5ea4c0851088659987183",
"html": "https://github.com/jenkinsci/jenkins/blob/master/core/pom.xml"
"html": "https://github.com/jenkinsci/jenkins/blob/main/core/pom.xml"
}
},
{
@@ -36,15 +36,15 @@
"path": "core/report-l10n.rb",
"sha": "d48bf4d2f9ed5de92f6d4a9864ecc168d15e3420",
"size": 17290,
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/report-l10n.rb?ref=master",
"html_url": "https://github.com/jenkinsci/jenkins/blob/master/core/report-l10n.rb",
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/report-l10n.rb?ref=main",
"html_url": "https://github.com/jenkinsci/jenkins/blob/main/core/report-l10n.rb",
"git_url": "https://api.github.com/repos/jenkinsci/jenkins/git/blobs/d48bf4d2f9ed5de92f6d4a9864ecc168d15e3420",
"download_url": "https://raw.githubusercontent.com/jenkinsci/jenkins/master/core/report-l10n.rb",
"download_url": "https://raw.githubusercontent.com/jenkinsci/jenkins/main/core/report-l10n.rb",
"type": "file",
"_links": {
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/report-l10n.rb?ref=master",
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/report-l10n.rb?ref=main",
"git": "https://api.github.com/repos/jenkinsci/jenkins/git/blobs/d48bf4d2f9ed5de92f6d4a9864ecc168d15e3420",
"html": "https://github.com/jenkinsci/jenkins/blob/master/core/report-l10n.rb"
"html": "https://github.com/jenkinsci/jenkins/blob/main/core/report-l10n.rb"
}
},
{
@@ -52,15 +52,15 @@
"path": "core/src",
"sha": "11d50acb5fba7764e8ef1c230aac16aa9aa0ef31",
"size": 0,
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src?ref=master",
"html_url": "https://github.com/jenkinsci/jenkins/tree/master/core/src",
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src?ref=main",
"html_url": "https://github.com/jenkinsci/jenkins/tree/main/core/src",
"git_url": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/11d50acb5fba7764e8ef1c230aac16aa9aa0ef31",
"download_url": null,
"type": "dir",
"_links": {
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src?ref=master",
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src?ref=main",
"git": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/11d50acb5fba7764e8ef1c230aac16aa9aa0ef31",
"html": "https://github.com/jenkinsci/jenkins/tree/master/core/src"
"html": "https://github.com/jenkinsci/jenkins/tree/main/core/src"
}
}
]

View File

@@ -4,15 +4,15 @@
"path": "core/src/filter",
"sha": "5f087f4c3dd2690948371b4f867087d36fdbb19d",
"size": 0,
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/filter?ref=master",
"html_url": "https://github.com/jenkinsci/jenkins/tree/master/core/src/filter",
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/filter?ref=main",
"html_url": "https://github.com/jenkinsci/jenkins/tree/main/core/src/filter",
"git_url": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/5f087f4c3dd2690948371b4f867087d36fdbb19d",
"download_url": null,
"type": "dir",
"_links": {
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/filter?ref=master",
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/filter?ref=main",
"git": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/5f087f4c3dd2690948371b4f867087d36fdbb19d",
"html": "https://github.com/jenkinsci/jenkins/tree/master/core/src/filter"
"html": "https://github.com/jenkinsci/jenkins/tree/main/core/src/filter"
}
},
{
@@ -20,15 +20,15 @@
"path": "core/src/main",
"sha": "7334485bc5155447be2692f1d4acf9c717335d7b",
"size": 0,
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/main?ref=master",
"html_url": "https://github.com/jenkinsci/jenkins/tree/master/core/src/main",
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/main?ref=main",
"html_url": "https://github.com/jenkinsci/jenkins/tree/main/core/src/main",
"git_url": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/7334485bc5155447be2692f1d4acf9c717335d7b",
"download_url": null,
"type": "dir",
"_links": {
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/main?ref=master",
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/main?ref=main",
"git": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/7334485bc5155447be2692f1d4acf9c717335d7b",
"html": "https://github.com/jenkinsci/jenkins/tree/master/core/src/main"
"html": "https://github.com/jenkinsci/jenkins/tree/main/core/src/main"
}
},
{
@@ -36,15 +36,15 @@
"path": "core/src/site",
"sha": "59d5107eeacdac5a50a2e2eb3592d79c9a8f8743",
"size": 0,
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/site?ref=master",
"html_url": "https://github.com/jenkinsci/jenkins/tree/master/core/src/site",
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/site?ref=main",
"html_url": "https://github.com/jenkinsci/jenkins/tree/main/core/src/site",
"git_url": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/59d5107eeacdac5a50a2e2eb3592d79c9a8f8743",
"download_url": null,
"type": "dir",
"_links": {
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/site?ref=master",
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/site?ref=main",
"git": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/59d5107eeacdac5a50a2e2eb3592d79c9a8f8743",
"html": "https://github.com/jenkinsci/jenkins/tree/master/core/src/site"
"html": "https://github.com/jenkinsci/jenkins/tree/main/core/src/site"
}
},
{
@@ -52,15 +52,15 @@
"path": "core/src/test",
"sha": "d600ddfd8eebaf8b605d9f99d3a9f117fac2eb2b",
"size": 0,
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/test?ref=master",
"html_url": "https://github.com/jenkinsci/jenkins/tree/master/core/src/test",
"url": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/test?ref=main",
"html_url": "https://github.com/jenkinsci/jenkins/tree/main/core/src/test",
"git_url": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/d600ddfd8eebaf8b605d9f99d3a9f117fac2eb2b",
"download_url": null,
"type": "dir",
"_links": {
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/test?ref=master",
"self": "https://api.github.com/repos/jenkinsci/jenkins/contents/core/src/test?ref=main",
"git": "https://api.github.com/repos/jenkinsci/jenkins/git/trees/d600ddfd8eebaf8b605d9f99d3a9f117fac2eb2b",
"html": "https://github.com/jenkinsci/jenkins/tree/master/core/src/test"
"html": "https://github.com/jenkinsci/jenkins/tree/main/core/src/test"
}
}
]

View File

@@ -2,7 +2,7 @@
"id": "0566ab8b-d260-47cb-a6e6-fafa6fc2836c",
"name": "repos_jenkinsci_jenkins_contents_core_src",
"request": {
"url": "/repos/jenkinsci/jenkins/contents/core/src?ref=master",
"url": "/repos/jenkinsci/jenkins/contents/core/src?ref=main",
"method": "GET",
"headers": {
"Accept": {

View File

@@ -827,15 +827,15 @@
"last_read_at": "2019-09-11T00:03:20Z",
"subject": {
"title": "[CPLT2-5785] Define jenkins.hook.url when appropriate",
"url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/pulls/15",
"latest_comment_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/pulls/15",
"url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/pulls/15",
"latest_comment_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/pulls/15",
"type": "PullRequest"
},
"repository": {
"id": 202214807,
"node_id": "MDEwOlJlcG9zaXRvcnkyMDIyMTQ4MDc=",
"name": "managed-master-hibernation-plugin",
"full_name": "cloudbees/managed-master-hibernation-plugin",
"name": "managed-main-hibernation-plugin",
"full_name": "cloudbees/managed-main-hibernation-plugin",
"private": true,
"owner": {
"login": "cloudbees",
@@ -857,46 +857,46 @@
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/cloudbees/managed-master-hibernation-plugin",
"description": "CPLT2-5737: Allows a managed master to indicate that it is ready to be hibernated.",
"html_url": "https://github.com/cloudbees/managed-main-hibernation-plugin",
"description": "CPLT2-5737: Allows a managed main to indicate that it is ready to be hibernated.",
"fork": false,
"url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin",
"forks_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/forks",
"keys_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/teams",
"hooks_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/hooks",
"issue_events_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/issues/events{/number}",
"events_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/events",
"assignees_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/assignees{/user}",
"branches_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/branches{/branch}",
"tags_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/tags",
"blobs_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/statuses/{sha}",
"languages_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/languages",
"stargazers_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/stargazers",
"contributors_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/contributors",
"subscribers_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/subscribers",
"subscription_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/subscription",
"commits_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/contents/{+path}",
"compare_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/merges",
"archive_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/downloads",
"issues_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/issues{/number}",
"pulls_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/pulls{/number}",
"milestones_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/milestones{/number}",
"notifications_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/labels{/name}",
"releases_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/releases{/id}",
"deployments_url": "https://api.github.com/repos/cloudbees/managed-master-hibernation-plugin/deployments"
"url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin",
"forks_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/forks",
"keys_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/teams",
"hooks_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/hooks",
"issue_events_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/issues/events{/number}",
"events_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/events",
"assignees_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/assignees{/user}",
"branches_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/branches{/branch}",
"tags_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/tags",
"blobs_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/statuses/{sha}",
"languages_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/languages",
"stargazers_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/stargazers",
"contributors_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/contributors",
"subscribers_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/subscribers",
"subscription_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/subscription",
"commits_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/contents/{+path}",
"compare_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/merges",
"archive_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/downloads",
"issues_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/issues{/number}",
"pulls_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/pulls{/number}",
"milestones_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/milestones{/number}",
"notifications_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/labels{/name}",
"releases_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/releases{/id}",
"deployments_url": "https://api.github.com/repos/cloudbees/managed-main-hibernation-plugin/deployments"
},
"url": "https://api.github.com/notifications/threads/581645707",
"subscription_url": "https://api.github.com/notifications/threads/581645707/subscription"

View File

@@ -4024,7 +4024,7 @@
"updated_at": "2019-10-14T21:06:40Z",
"last_read_at": "2019-10-18T20:02:08Z",
"subject": {
"title": "CSDOCS-206 - Adjust Jenkinsfile to only deploy master commits",
"title": "CSDOCS-206 - Adjust Jenkinsfile to only deploy main commits",
"url": "https://api.github.com/repos/cloudbees/docsite-engine/pulls/121",
"latest_comment_url": "https://api.github.com/repos/cloudbees/docsite-engine/issues/comments/541921810",
"type": "PullRequest"

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 57,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 5807,
"open_issues": 74,
"watchers": 14167,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": false,
"push": false,

View File

@@ -96,7 +96,7 @@
"forks": 5807,
"open_issues": 74,
"watchers": 14167,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": false,
"push": false,

View File

@@ -779,7 +779,7 @@
"created_at": "2011-02-10T14:10:23Z",
"updated_at": "2011-02-10T14:10:23Z",
"author_association": "MEMBER",
"body": "We are not forgetting to merge this, JENKINS-8592, branch into master?\n"
"body": "We are not forgetting to merge this, JENKINS-8592, branch into main?\n"
},
{
"url": "https://api.github.com/repos/jenkinsci/jenkins/comments/267069",

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 456,
"open_issues": 58,
"watchers": 613,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -443,7 +443,7 @@
"name": "Kohsuke Kawaguchi",
"email": "kk@kohsuke.org"
},
"message": "Merge branch 'master' of github.com:kohsuke/github-api",
"message": "Merge branch 'main' of github.com:kohsuke/github-api",
"tree": {
"url": "https://api.github.com/repos/hub4j/github-api/git/trees/76d86aa0103be48e4dde3b1263c3ead31709c04e",
"sha": "76d86aa0103be48e4dde3b1263c3ead31709c04e"
@@ -2301,7 +2301,7 @@
"name": "GitHub",
"email": "noreply@github.com"
},
"message": "Merge pull request #411 from tadfisher/master\n\nAdd GHRepository.getRelease and GHRepository.getReleaseByTagName",
"message": "Merge pull request #411 from tadfisher/main\n\nAdd GHRepository.getRelease and GHRepository.getReleaseByTagName",
"tree": {
"url": "https://api.github.com/repos/hub4j/github-api/git/trees/1c7cdc463be852d52019e264162a8fbcdb280678",
"sha": "1c7cdc463be852d52019e264162a8fbcdb280678"
@@ -3031,7 +3031,7 @@
"name": "GitHub",
"email": "noreply@github.com"
},
"message": "Merge pull request #439 from l3ender/master\n\nAdd support for repository searching by \"topic\"",
"message": "Merge pull request #439 from l3ender/main\n\nAdd support for repository searching by \"topic\"",
"tree": {
"url": "https://api.github.com/repos/hub4j/github-api/git/trees/bff00c66f979c96203d466601499a76d13d0b711",
"sha": "bff00c66f979c96203d466601499a76d13d0b711"
@@ -3177,7 +3177,7 @@
"name": "Kohsuke Kawaguchi",
"email": "kk@kohsuke.org"
},
"message": "Merge remote-tracking branch 'origin/master'",
"message": "Merge remote-tracking branch 'origin/main'",
"tree": {
"url": "https://api.github.com/repos/hub4j/github-api/git/trees/936eeedfad781d857e393b3c2f6d5fa7a6804438",
"sha": "936eeedfad781d857e393b3c2f6d5fa7a6804438"

View File

@@ -443,7 +443,7 @@
"name": "Kohsuke Kawaguchi",
"email": "kk@kohsuke.org"
},
"message": "Merge branch 'master' of github.com:kohsuke/github-api",
"message": "Merge branch 'main' of github.com:kohsuke/github-api",
"tree": {
"url": "https://api.github.com/repos/hub4j/github-api/git/trees/76d86aa0103be48e4dde3b1263c3ead31709c04e",
"sha": "76d86aa0103be48e4dde3b1263c3ead31709c04e"
@@ -2301,7 +2301,7 @@
"name": "GitHub",
"email": "noreply@github.com"
},
"message": "Merge pull request #411 from tadfisher/master\n\nAdd GHRepository.getRelease and GHRepository.getReleaseByTagName",
"message": "Merge pull request #411 from tadfisher/main\n\nAdd GHRepository.getRelease and GHRepository.getReleaseByTagName",
"tree": {
"url": "https://api.github.com/repos/hub4j/github-api/git/trees/1c7cdc463be852d52019e264162a8fbcdb280678",
"sha": "1c7cdc463be852d52019e264162a8fbcdb280678"
@@ -3031,7 +3031,7 @@
"name": "GitHub",
"email": "noreply@github.com"
},
"message": "Merge pull request #439 from l3ender/master\n\nAdd support for repository searching by \"topic\"",
"message": "Merge pull request #439 from l3ender/main\n\nAdd support for repository searching by \"topic\"",
"tree": {
"url": "https://api.github.com/repos/hub4j/github-api/git/trees/bff00c66f979c96203d466601499a76d13d0b711",
"sha": "bff00c66f979c96203d466601499a76d13d0b711"
@@ -3177,7 +3177,7 @@
"name": "Kohsuke Kawaguchi",
"email": "kk@kohsuke.org"
},
"message": "Merge remote-tracking branch 'origin/master'",
"message": "Merge remote-tracking branch 'origin/main'",
"tree": {
"url": "https://api.github.com/repos/hub4j/github-api/git/trees/936eeedfad781d857e393b3c2f6d5fa7a6804438",
"sha": "936eeedfad781d857e393b3c2f6d5fa7a6804438"

View File

@@ -96,7 +96,7 @@
"forks": 433,
"open_issues": 64,
"watchers": 565,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -96,7 +96,7 @@
"forks": 433,
"open_issues": 64,
"watchers": 565,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -90,7 +90,7 @@
"forks": 2,
"open_issues": 0,
"watchers": 2,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": false,
"push": false,
@@ -189,7 +189,7 @@
"forks": 4,
"open_issues": 0,
"watchers": 4,
"default_branch": "master"
"default_branch": "main"
},
"source": {
"id": 3231216,
@@ -283,7 +283,7 @@
"forks": 4,
"open_issues": 0,
"watchers": 4,
"default_branch": "master"
"default_branch": "main"
},
"network_count": 4,
"subscribers_count": 0

View File

@@ -90,7 +90,7 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master",
"default_branch": "main",
"permissions": {
"admin": true,
"push": true,

View File

@@ -18,7 +18,7 @@
"payload": {
"ref": "branch-8855a329",
"ref_type": "branch",
"master_branch": "master",
"master_branch": "main",
"description": null,
"pusher_type": "user"
},
@@ -222,7 +222,7 @@
"payload": {
"ref": "branch-e08f46fa",
"ref_type": "branch",
"master_branch": "master",
"master_branch": "main",
"description": null,
"pusher_type": "user"
},
@@ -249,7 +249,7 @@
"push_id": 4176854891,
"size": 2,
"distinct_size": 2,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "d3108b1a65697a4d495da409b90c01949487a028",
"before": "b6149875bc527d31618a9e49513966cd52129ada",
"commits": [
@@ -523,12 +523,12 @@
"forks": 0,
"open_issues": 1,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"base": {
"label": "gridu:master",
"ref": "master",
"label": "gridu:main",
"ref": "main",
"sha": "b3b4fd9e4a2e1aa505cb9d3b7f019f8431e495da",
"user": {
"login": "gridu",
@@ -642,7 +642,7 @@
"forks": 0,
"open_issues": 1,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"_links": {
@@ -716,7 +716,7 @@
"push_id": 4176854890,
"size": 11,
"distinct_size": 11,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "6c05258cfd1a6156ee587923fb2ac0f55d84e482",
"before": "e63bc6b2efce3bc6525e020fba6085654ddd3f49",
"commits": [
@@ -736,7 +736,7 @@
"email": "nobody@nowhere.nul",
"name": "Coursera Learner"
},
"message": "Merge branch 'master' of https://github.com/gszlan/DukeC-programming\n\ndone",
"message": "Merge branch 'main' of https://github.com/gszlan/DukeC-programming\n\ndone",
"distinct": true,
"url": "https://api.github.com/repos/gszlan/DukeC-programming/commits/7807e29af8106aa4a6c01538c9a745c52db52155"
},
@@ -746,7 +746,7 @@
"email": "nobody@nowhere.nul",
"name": "Coursera Learner"
},
"message": "Merge branch 'master' of https://github.com/gszlan/DukeC-programming\n\ndone",
"message": "Merge branch 'main' of https://github.com/gszlan/DukeC-programming\n\ndone",
"distinct": true,
"url": "https://api.github.com/repos/gszlan/DukeC-programming/commits/c19074a391ed36dd451f792c3f003d6bff670a70"
},
@@ -766,7 +766,7 @@
"email": "nobody@nowhere.nul",
"name": "Coursera Learner"
},
"message": "Merge branch 'master' of https://github.com/gszlan/DukeC-programming\n\naaa",
"message": "Merge branch 'main' of https://github.com/gszlan/DukeC-programming\n\naaa",
"distinct": true,
"url": "https://api.github.com/repos/gszlan/DukeC-programming/commits/2812192ddc013f7e75b3f1845649eb5ccb8baaea"
},
@@ -786,7 +786,7 @@
"email": "nobody@nowhere.nul",
"name": "Coursera Learner"
},
"message": "Merge branch 'master' of https://github.com/gszlan/DukeC-programming",
"message": "Merge branch 'main' of https://github.com/gszlan/DukeC-programming",
"distinct": true,
"url": "https://api.github.com/repos/gszlan/DukeC-programming/commits/07ea94f84ae40ae341de1158f0a5c1c4804dae8c"
},
@@ -806,7 +806,7 @@
"email": "nobody@nowhere.nul",
"name": "Coursera Learner"
},
"message": "Merge branch 'master' of https://github.com/gszlan/DukeC-programming",
"message": "Merge branch 'main' of https://github.com/gszlan/DukeC-programming",
"distinct": true,
"url": "https://api.github.com/repos/gszlan/DukeC-programming/commits/9d9d8e3ff80b91b6fe30732b36dee7b5b88196d5"
},
@@ -904,7 +904,7 @@
"push_id": 4176854889,
"size": 1,
"distinct_size": 1,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "30555b249ec8d391669c5e0986633c81ae0074e4",
"before": "be176ad97e275562df0352855aa7d1f0d06786ce",
"commits": [
@@ -950,7 +950,7 @@
"push_id": 4176854884,
"size": 1,
"distinct_size": 1,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "61a4f6c6a093379eb8a5c8212c4fd59c2b6583f4",
"before": "371b9b4cc0a641cb7dd1b1c5e67b920ff267e6ee",
"commits": [
@@ -1069,7 +1069,7 @@
"updated_at": "2019-10-21T21:54:48Z",
"closed_at": null,
"author_association": "NONE",
"body": "## Welcome!\n\nHello and welcome! In this course you will learn how you can get your best work done in pull requests. You'll learn when and how to request a review, how to review someone else's code, and how to respond to reviews. To do this, we'll be playing around with the code in this repository that makes a simple Tetris game.\n\nIf you'd like, you can use [GitHub Pages](https://pages.github.com/) to host your Tetris game. Just go to the **Settings** tab of this repository. Scroll down to **GitHub Pages**. Select `master` as a **Source**, and click **Save**. \n\n### New to GitHub?\n\nFor this course, you'll need some background knowledge. If you need a refresher on the GitHub flow, check out [the Introduction to GitHub course](https://lab.github.com/courses/introduction-to-github).\n\n## Pull Requests Reviews 101\n\nReviewing a pull request is an opportunity to examine another contributor's changes. While reviewing a pull request, you can extrapolate how someone else solved a problem. It's an awesome opportunity to learn more about how the code works and how others solve problems. Reviewing a pull request is a great learning opportunity!\n\n## Step 1: Add assignees for issues and pull requests\n\nAssignees on issues and pull requests let other team members know who is responsible. The assignee oversees the issue or pull request in an accessible and visible way.\n\n### :keyboard: Activity: Assign yourself to this issue\n\n1. On the right side of the screen, click the `assign yourself` text under the **Assignees** section\n\n<hr>\n<h3 align=\"center\">I'll respond below for your next step</h3>\n\n> _Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response, wait a few seconds and refresh the page for your next steps._\n"
"body": "## Welcome!\n\nHello and welcome! In this course you will learn how you can get your best work done in pull requests. You'll learn when and how to request a review, how to review someone else's code, and how to respond to reviews. To do this, we'll be playing around with the code in this repository that makes a simple Tetris game.\n\nIf you'd like, you can use [GitHub Pages](https://pages.github.com/) to host your Tetris game. Just go to the **Settings** tab of this repository. Scroll down to **GitHub Pages**. Select `main` as a **Source**, and click **Save**. \n\n### New to GitHub?\n\nFor this course, you'll need some background knowledge. If you need a refresher on the GitHub flow, check out [the Introduction to GitHub course](https://lab.github.com/courses/introduction-to-github).\n\n## Pull Requests Reviews 101\n\nReviewing a pull request is an opportunity to examine another contributor's changes. While reviewing a pull request, you can extrapolate how someone else solved a problem. It's an awesome opportunity to learn more about how the code works and how others solve problems. Reviewing a pull request is a great learning opportunity!\n\n## Step 1: Add assignees for issues and pull requests\n\nAssignees on issues and pull requests let other team members know who is responsible. The assignee oversees the issue or pull request in an accessible and visible way.\n\n### :keyboard: Activity: Assign yourself to this issue\n\n1. On the right side of the screen, click the `assign yourself` text under the **Assignees** section\n\n<hr>\n<h3 align=\"center\">I'll respond below for your next step</h3>\n\n> _Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response, wait a few seconds and refresh the page for your next steps._\n"
},
"comment": {
"url": "https://api.github.com/repos/rcordeirotmu/reviewing-a-pull-request/issues/comments/544724566",
@@ -1296,12 +1296,12 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"base": {
"label": "dekkerglen:master",
"ref": "master",
"label": "dekkerglen:main",
"ref": "main",
"sha": "f25ddd94644152d3bb6f2641e552b05108d13475",
"user": {
"login": "dekkerglen",
@@ -1421,7 +1421,7 @@
"forks": 28,
"open_issues": 126,
"watchers": 39,
"default_branch": "master"
"default_branch": "main"
}
},
"_links": {
@@ -1507,7 +1507,7 @@
"push_id": 4176854881,
"size": 1,
"distinct_size": 1,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "b826329617c6f44caaac3be82a3147d082e404b7",
"before": "4ff7211da7ee2bfa13e742c6332d78b228a4f4dc",
"commits": [
@@ -1553,7 +1553,7 @@
"push_id": 4176854876,
"size": 2,
"distinct_size": 2,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "f4b6567d15dfe6709d3eecd304877e4ca32ac308",
"before": "0d0b5abb37eae9421cf0cbdcc63e37e2cd0f1a06",
"commits": [
@@ -1573,7 +1573,7 @@
"email": "adrir@adrir.com",
"name": "Adrir"
},
"message": "Merge branch 'master' of https://github.com/Adrir/comp120-tinkering-graphics",
"message": "Merge branch 'main' of https://github.com/Adrir/comp120-tinkering-graphics",
"distinct": true,
"url": "https://api.github.com/repos/Adrir/comp120-tinkering-graphics/commits/f4b6567d15dfe6709d3eecd304877e4ca32ac308"
}
@@ -1602,7 +1602,7 @@
"push_id": 4176854871,
"size": 1,
"distinct_size": 1,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "ccc9ca4e384c48c6543b66801cb9dc8df3fd2178",
"before": "6bcfc18c475e5ab4de1f89a5a588ea628367ea38",
"commits": [
@@ -1805,12 +1805,12 @@
"forks": 0,
"open_issues": 1,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"base": {
"label": "dm-group-trakd:master",
"ref": "master",
"label": "dm-group-trakd:main",
"ref": "main",
"sha": "4586bdd4aba94009ee60a2d01710f50493f60fd7",
"user": {
"login": "dm-group-trakd",
@@ -1924,7 +1924,7 @@
"forks": 0,
"open_issues": 1,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"_links": {
@@ -2017,7 +2017,7 @@
"push_id": 4176854878,
"size": 1,
"distinct_size": 1,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "6ce7de98689be2a91f3455f0fe83754252658073",
"before": "2d14bcf9d9906d1ef9aa124b3ed168e926b45334",
"commits": [
@@ -2226,12 +2226,12 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"base": {
"label": "envoyproxy:master",
"ref": "master",
"label": "envoyproxy:main",
"ref": "main",
"sha": "4bd38639fe0332c55961505d4e091f72895b7f73",
"user": {
"login": "envoyproxy",
@@ -2351,7 +2351,7 @@
"forks": 26,
"open_issues": 66,
"watchers": 61,
"default_branch": "master"
"default_branch": "main"
}
},
"_links": {
@@ -2608,8 +2608,8 @@
"comments_url": "https://api.github.com/repos/cyberark/conjur/issues/1209/comments",
"statuses_url": "https://api.github.com/repos/cyberark/conjur/statuses/d16c40c290d4f1ac139b101cd089a1635f20db29",
"head": {
"label": "AndrewCopeland:master",
"ref": "master",
"label": "AndrewCopeland:main",
"ref": "main",
"sha": "d16c40c290d4f1ac139b101cd089a1635f20db29",
"user": {
"login": "AndrewCopeland",
@@ -2729,12 +2729,12 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"base": {
"label": "cyberark:master",
"ref": "master",
"label": "cyberark:main",
"ref": "main",
"sha": "ccf74318168be925bd62753926ae6b46ccce67aa",
"user": {
"login": "cyberark",
@@ -2854,7 +2854,7 @@
"forks": 63,
"open_issues": 260,
"watchers": 320,
"default_branch": "master"
"default_branch": "main"
}
},
"_links": {
@@ -2916,7 +2916,7 @@
"push_id": 4176854863,
"size": 1,
"distinct_size": 1,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "2282592b49f3c60b07f84135ddfd8d7199d93e2a",
"before": "f393ac03494aa2e71988f93d73243c6887bf1541",
"commits": [
@@ -2954,7 +2954,7 @@
"payload": {
"ref": "steveDesktop",
"ref_type": "branch",
"master_branch": "master",
"master_branch": "main",
"description": null,
"pusher_type": "user"
},
@@ -2981,7 +2981,7 @@
"push_id": 4176854859,
"size": 1,
"distinct_size": 1,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "908784246be05f222167f3f463e1423885f54ac5",
"before": "9e030787665d1dbf6f75f4020c52cb842d3cd17b",
"commits": [
@@ -3109,7 +3109,7 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master",
"default_branch": "main",
"public": true
}
},
@@ -3165,7 +3165,7 @@
"push_id": 4176854855,
"size": 1,
"distinct_size": 1,
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"head": "c8c067d90454baf99eb4cb1f02306b6de748a2b7",
"before": "35f44d43437cfe431fc2ee4ad42cb2a790c9a789",
"commits": [
@@ -3452,12 +3452,12 @@
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"base": {
"label": "ampproject:master",
"ref": "master",
"label": "ampproject:main",
"ref": "main",
"sha": "9e8a075958f4a7995ba8190c5becc32ef3108f89",
"user": {
"login": "ampproject",
@@ -3577,7 +3577,7 @@
"forks": 3217,
"open_issues": 1641,
"watchers": 13177,
"default_branch": "master"
"default_branch": "main"
}
},
"_links": {
@@ -3803,12 +3803,12 @@
"forks": 0,
"open_issues": 1,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"base": {
"label": "AvalancheOfFox:master",
"ref": "master",
"label": "AvalancheOfFox:main",
"ref": "main",
"sha": "8809925097f56d47aba7203acbfa5420b5f9ed61",
"user": {
"login": "AvalancheOfFox",
@@ -3922,7 +3922,7 @@
"forks": 0,
"open_issues": 1,
"watchers": 0,
"default_branch": "master"
"default_branch": "main"
}
},
"_links": {
@@ -4032,9 +4032,9 @@
"url": "https://api.github.com/repos/carlosgon1/Carlos-Gonzalez"
},
"payload": {
"ref": "master",
"ref": "main",
"ref_type": "branch",
"master_branch": "master",
"master_branch": "main",
"description": null,
"pusher_type": "user"
},

Some files were not shown because too many files have changed in this diff Show More