mirror of
https://github.com/CarmJos/GithubReleases4J.git
synced 2026-06-04 13:08:17 +08:00
[v1.2.2] [A] Add GPG Settings.
This commit is contained in:
@@ -143,6 +143,12 @@
|
|||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<gpgArguments>
|
||||||
|
<arg>--pinentry-mode</arg>
|
||||||
|
<arg>loopback</arg>
|
||||||
|
</gpgArguments>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import org.json.JSONObject;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
@@ -135,10 +134,8 @@ public class GithubRelease {
|
|||||||
*
|
*
|
||||||
* @return The author user {@link GithubUser}
|
* @return The author user {@link GithubUser}
|
||||||
*/
|
*/
|
||||||
public @Nullable GithubUser getAuthor() {
|
public @NotNull GithubUser getAuthor() {
|
||||||
return Optional.ofNullable(getContents().getJSONObject("author"))
|
return GithubUser.of(getContents().getJSONObject("author"));
|
||||||
.map(GithubUser::of)
|
|
||||||
.orElse(null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user