File tree Expand file tree Collapse file tree 3 files changed +27
-9
lines changed
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 3 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -104,3 +104,18 @@ jobs:
104
104
env :
105
105
MAVEN_OPTS : ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
106
106
run : mvn -B clean install -D enable-ci --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"
107
+ deploy :
108
+ name : Deploy
109
+ runs-on : ubuntu-latest
110
+ needs : [build, test-8, test]
111
+ steps :
112
+ - uses : actions/checkout@v2
113
+ - uses : actions/setup-java@v2
114
+ with :
115
+ java-version : 8
116
+ distribution : ' zulu'
117
+ cache : ' maven'
118
+ - name : Deploy
119
+ run : mvn --batch-mode deploy
120
+ env :
121
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2
2
<modelVersion >4.0.0</modelVersion >
3
3
<groupId >org.kohsuke</groupId >
4
4
<artifactId >cortexapps-github-api</artifactId >
5
- <version >1.313 </version >
5
+ <version >1.314 </version >
6
6
<name >GitHub API for Java</name >
7
7
<url >https://github-api.kohsuke.org/</url >
8
8
<description >GitHub API for Java</description >
16
16
17
17
<distributionManagement >
18
18
<snapshotRepository >
19
- <id >sonatype-nexus-snapshots </id >
20
- <name >Sonatype Nexus Snapshots </name >
21
- <url >https://oss.sonatype.org/content/repositories/snapshots/ </url >
19
+ <id >github </id >
20
+ <name >GitHub Packages </name >
21
+ <url >https://maven.pkg.github.com/cortexapps/github-api </url >
22
22
</snapshotRepository >
23
23
<repository >
24
- <id >sonatype-nexus-staging </id >
25
- <name >Nexus Release Repository </name >
26
- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/ </url >
24
+ <id >github </id >
25
+ <name >GitHub Packages </name >
26
+ <url >https://maven.pkg.github.com/cortexapps/github-api </url >
27
27
</repository >
28
28
<site >
29
- <id >github-pages</id >
30
- <url >gitsite:git@github.com/hub4j/${project.artifactId} .git</url >
29
+ <id >github-pages</id >
30
+ <url >gitsite:git@github.com/hub4j/${project.artifactId} .git</url >
31
31
</site >
32
32
</distributionManagement >
33
33
Original file line number Diff line number Diff line change @@ -464,6 +464,9 @@ public List<GHCommit> getParents() throws IOException {
464
464
* the io exception
465
465
*/
466
466
public GHUser getAuthor () throws IOException {
467
+ if (author != null ) {
468
+ return resolveUser (author );
469
+ }
467
470
populate ();
468
471
return resolveUser (author );
469
472
}
You can’t perform that action at this time.
0 commit comments