Skip to content

Commit

Permalink
Change target to wiremock files explicitly to custom repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kgromov committed Aug 25, 2023
1 parent 02325be commit e933b4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/kohsuke/github/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ public void testIssueSearch() throws IOException {
*/
@Test
public void testPullRequestSearch() throws Exception {
GHRepository repository = getTestRepository();
GHRepository repository = gitHub.getRepository("kgromov/github-api-test");
String mainHead = repository.getRef("heads/main").getObject().getSha();
GHRef devBranch = repository.createRef("refs/heads/kgromov-test", mainHead);
repository.createContent()
Expand All @@ -1448,7 +1448,7 @@ public void testPullRequestSearch() throws Exception {
.path(devBranch.getRef())
.branch(devBranch.getRef())
.commit();
LocalDate createdDate = LocalDate.now();
LocalDate createdDate = LocalDate.parse("2023-08-23");
GHPullRequest newPR = repository
.createPullRequest("New PR", devBranch.getRef(), "refs/heads/main", "Hello, merged PR");
newPR.setLabels("test");
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/kohsuke/github/GHRepositoryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ public void cannotRetrievePermissionMaintainUser() throws IOException {
*/
@Test
public void testSearchPullRequests() throws Exception {
GHRepository repository = getTempRepository();
GHRepository repository = gitHub.getRepository("kgromov/temp-testSearchPullRequests");
String mainHead = repository.getRef("heads/main").getObject().getSha();
GHRef devBranch = repository.createRef("refs/heads/dev", mainHead);
repository.createContent()
Expand All @@ -1731,7 +1731,7 @@ public void testSearchPullRequests() throws Exception {
ghPullRequest.merge("Merged test PR");
Thread.sleep(1000);
LocalDate from = LocalDate.parse("2023-08-01");
LocalDate to = LocalDate.now();
LocalDate to = LocalDate.parse("2023-08-23");
GHPullRequestSearchBuilder searchBuilder = gitHub.searchPullRequests()
.createdByMe()
.isMerged()
Expand Down

0 comments on commit e933b4c

Please sign in to comment.