Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Fix committed to do under the login name if you register a GitHub user p... #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion github-site-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<artifactId>site-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>0.12.1-SNAPSHOT</version>
<name>GitHub Site Maven Plugin</name>
<url>https://github.com/github/maven-plugins</url>
<description>Maven plugin that commits files to a branch in a GitHub repository</description>
Expand Down Expand Up @@ -77,7 +78,7 @@
<dependency>
<groupId>com.github.github</groupId>
<artifactId>github-maven-core</artifactId>
<version>${project.version}</version>
<version>${project.parent.version}</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ public void execute() throws MojoExecutionException {
Arrays.toString(excludePaths)));
String[] paths = PathUtils.getMatchingPaths(includePaths, excludePaths,
baseDir);

if (paths.length != 1)
info(MessageFormat.format("Creating {0} blobs", paths.length));
else
Expand Down Expand Up @@ -432,7 +431,12 @@ public void execute() throws MojoExecutionException {
User user = userService.getUser();

CommitUser author = new CommitUser();
author.setName(user.getName());
//Register a GitHub user profile name does not exist in the login name you commit
author.setName(user.getName());
if( user.getName() == null || user.getName().length() == 0){
author.setName(user.getLogin());
}

author.setEmail(userService.getEmails().get(0));
author.setDate(new GregorianCalendar().getTime());

Expand Down