Skip to content

Commit

Permalink
Merge pull request #10 from cortexapps/addis-optimizations
Browse files Browse the repository at this point in the history
Skip author resolve if already present  @maddymanu
  • Loading branch information
maddymanu authored Apr 5, 2023
2 parents 90b5451 + f3f3386 commit c2fdd89
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,18 @@ jobs:
env:
MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
run: mvn -B clean install -D enable-ci --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [build, test-8, test]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
cache: 'maven'
- name: Deploy
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.kohsuke</groupId>
<artifactId>cortexapps-github-api</artifactId>
<version>1.313</version>
<version>1.314</version>
<name>GitHub API for Java</name>
<url>https://github-api.kohsuke.org/</url>
<description>GitHub API for Java</description>
Expand All @@ -16,18 +16,18 @@

<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/cortexapps/github-api</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/cortexapps/github-api</url>
</repository>
<site>
<id>github-pages</id>
<url>gitsite:[email protected]/hub4j/${project.artifactId}.git</url>
<id>github-pages</id>
<url>gitsite:[email protected]/hub4j/${project.artifactId}.git</url>
</site>
</distributionManagement>

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/kohsuke/github/GHCommit.java
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ public List<GHCommit> getParents() throws IOException {
* the io exception
*/
public GHUser getAuthor() throws IOException {
if (author != null) {
return resolveUser(author);
}
populate();
return resolveUser(author);
}
Expand Down

0 comments on commit c2fdd89

Please sign in to comment.