Skip to content

Commit c2fdd89

Browse files
authored
Merge pull request #10 from cortexapps/addis-optimizations
Skip author resolve if already present @maddymanu
2 parents 90b5451 + f3f3386 commit c2fdd89

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed

.github/workflows/maven-build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,18 @@ jobs:
104104
env:
105105
MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
106106
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 }}

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.kohsuke</groupId>
44
<artifactId>cortexapps-github-api</artifactId>
5-
<version>1.313</version>
5+
<version>1.314</version>
66
<name>GitHub API for Java</name>
77
<url>https://github-api.kohsuke.org/</url>
88
<description>GitHub API for Java</description>
@@ -16,18 +16,18 @@
1616

1717
<distributionManagement>
1818
<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>
2222
</snapshotRepository>
2323
<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>
2727
</repository>
2828
<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>
3131
</site>
3232
</distributionManagement>
3333

src/main/java/org/kohsuke/github/GHCommit.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,9 @@ public List<GHCommit> getParents() throws IOException {
464464
* the io exception
465465
*/
466466
public GHUser getAuthor() throws IOException {
467+
if (author != null) {
468+
return resolveUser(author);
469+
}
467470
populate();
468471
return resolveUser(author);
469472
}

0 commit comments

Comments
 (0)