Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4bba692

Browse filesBrowse files
authored
Merge branch 'master' into update-deployments-api
2 parents 59b61cd + 78f533b commit 4bba692
Copy full SHA for 4bba692

File tree

Expand file treeCollapse file tree

76 files changed

+5264
-671
lines changed
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

76 files changed

+5264
-671
lines changed
Open diff view settings
Collapse file

‎pom.xml‎

Copy file name to clipboardExpand all lines: pom.xml
+29-5Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<plugin>
101101
<groupId>org.jacoco</groupId>
102102
<artifactId>jacoco-maven-plugin</artifactId>
103-
<version>0.8.5</version>
103+
<version>0.8.6</version>
104104
<executions>
105105
<execution>
106106
<goals>
@@ -432,7 +432,7 @@
432432
<dependency>
433433
<groupId>junit</groupId>
434434
<artifactId>junit</artifactId>
435-
<version>4.13</version>
435+
<version>4.13.1</version>
436436
<scope>test</scope>
437437
</dependency>
438438
<dependency>
@@ -481,7 +481,25 @@
481481
<dependency>
482482
<groupId>org.eclipse.jgit</groupId>
483483
<artifactId>org.eclipse.jgit</artifactId>
484-
<version>5.7.0.202003110725-r</version>
484+
<version>5.9.0.202009080501-r</version>
485+
<scope>test</scope>
486+
</dependency>
487+
<dependency>
488+
<groupId>io.jsonwebtoken</groupId>
489+
<artifactId>jjwt-api</artifactId>
490+
<version>0.11.2</version>
491+
<scope>test</scope>
492+
</dependency>
493+
<dependency>
494+
<groupId>io.jsonwebtoken</groupId>
495+
<artifactId>jjwt-impl</artifactId>
496+
<version>0.11.2</version>
497+
<scope>test</scope>
498+
</dependency>
499+
<dependency>
500+
<groupId>io.jsonwebtoken</groupId>
501+
<artifactId>jjwt-jackson</artifactId>
502+
<version>0.11.2</version>
485503
<scope>test</scope>
486504
</dependency>
487505
<dependency>
@@ -519,7 +537,7 @@
519537
<dependency>
520538
<groupId>org.mockito</groupId>
521539
<artifactId>mockito-core</artifactId>
522-
<version>3.5.7</version>
540+
<version>3.6.0</version>
523541
<scope>test</scope>
524542
</dependency>
525543
<dependency>
@@ -531,7 +549,7 @@
531549
<dependency>
532550
<groupId>com.github.tomakehurst</groupId>
533551
<artifactId>wiremock-jre8-standalone</artifactId>
534-
<version>2.27.1</version>
552+
<version>2.27.2</version>
535553
<scope>test</scope>
536554
</dependency>
537555
<dependency>
@@ -540,6 +558,12 @@
540558
<version>2.8.6</version>
541559
<scope>test</scope>
542560
</dependency>
561+
<dependency>
562+
<groupId>org.slf4j</groupId>
563+
<artifactId>slf4j-simple</artifactId>
564+
<version>1.7.2</version>
565+
<scope>test</scope>
566+
</dependency>
543567
</dependencies>
544568
<repositories>
545569
<repository>
Collapse file

‎src/main/java/org/kohsuke/github/GHAppInstallation.java‎

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHAppInstallation.java
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
import com.fasterxml.jackson.annotation.JsonProperty;
44

55
import java.io.IOException;
6+
import java.net.MalformedURLException;
67
import java.net.URL;
78
import java.util.List;
89
import java.util.Map;
910

1011
import static org.kohsuke.github.Previews.GAMBIT;
12+
import static org.kohsuke.github.Previews.MACHINE_MAN;
1113

1214
/**
1315
* A Github App Installation.
@@ -117,6 +119,36 @@ public String getRepositoriesUrl() {
117119
return repositoriesUrl;
118120
}
119121

122+
/**
123+
* List repositories that this app installation can access.
124+
*
125+
* @return the paged iterable
126+
*/
127+
@Preview
128+
@Deprecated
129+
public PagedSearchIterable<GHRepository> listRepositories() {
130+
GitHubRequest request;
131+
132+
try {
133+
request = root.createRequest().withPreview(MACHINE_MAN).withUrlPath("/installation/repositories").build();
134+
} catch (MalformedURLException e) {
135+
throw new GHException("", e);
136+
}
137+
138+
return new PagedSearchIterable<>(root, request, GHAppInstallationRepositoryResult.class);
139+
}
140+
141+
private static class GHAppInstallationRepositoryResult extends SearchResult<GHRepository> {
142+
private GHRepository[] repositories;
143+
144+
@Override
145+
GHRepository[] getItems(GitHub root) {
146+
for (GHRepository item : repositories)
147+
item.wrap(root);
148+
return repositories;
149+
}
150+
}
151+
120152
/**
121153
* Sets repositories url.
122154
*
Collapse file

‎src/main/java/org/kohsuke/github/GHCommitBuilder.java‎

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHCommitBuilder.java
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ public GHCommitBuilder author(String name, String email, Date date) {
8989
return this;
9090
}
9191

92+
/**
93+
* Configures the PGP signature of this commit.
94+
*
95+
* @param signature
96+
* the signature calculated from the commit
97+
*
98+
* @return the gh commit builder
99+
*/
100+
public GHCommitBuilder withSignature(String signature) {
101+
req.with("signature", signature);
102+
return this;
103+
}
104+
92105
/**
93106
* Configures the committer of this commit.
94107
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.