IDEA-110677 Github: do not show warning on success

This commit is contained in:
Aleksey Pivovarov
2013-07-18 15:09:56 +04:00
parent 08dab63e2e
commit bd822712f3
2 changed files with 6 additions and 7 deletions
@@ -185,7 +185,7 @@ public class GithubShareAction extends DumbAwareAction {
return;
}
GithubNotifications.showInfoURL(project, "Successfully created project on GitHub", name, url);
GithubNotifications.showInfoURL(project, "Successfully shared project on GitHub", name, url);
}
}.queue();
}
@@ -312,8 +312,7 @@ public class GithubShareAction extends DumbAwareAction {
final Collection<VirtualFile> files2add = dialog.getSelectedFiles();
if (!dialog.isOK() || files2add.isEmpty()) {
GithubNotifications
.showWarningURL(project, "Can't finish GitHub sharing process", "No files to commit. ", "'" + name + "'", " on GitHub", url);
GithubNotifications.showInfoURL(project, "Successfully created empty repository on GitHub", name, url);
return false;
}
GitFileUtils.addFiles(project, root, files2add);
@@ -20,7 +20,7 @@ public class GithubShareProjectTest extends GithubShareProjectTestBase {
GithubShareAction.shareProjectOnGithub(myProject, myProjectRoot);
checkNotification(NotificationType.INFORMATION, "Successfully created project on GitHub", null);
checkNotification(NotificationType.INFORMATION, "Successfully shared project on GitHub", null);
checkGitExists();
checkGithubExists();
checkRemoteConfigured();
@@ -52,7 +52,7 @@ public class GithubShareProjectTest extends GithubShareProjectTestBase {
GithubShareAction.shareProjectOnGithub(myProject, myProjectRoot);
checkNotification(NotificationType.INFORMATION, "Successfully created project on GitHub", null);
checkNotification(NotificationType.INFORMATION, "Successfully shared project on GitHub", null);
checkGitExists();
checkGithubExists();
checkRemoteConfigured();
@@ -70,7 +70,7 @@ public class GithubShareProjectTest extends GithubShareProjectTestBase {
GithubShareAction.shareProjectOnGithub(myProject, myProjectRoot);
checkNotification(NotificationType.INFORMATION, "Successfully created project on GitHub", null);
checkNotification(NotificationType.INFORMATION, "Successfully shared project on GitHub", null);
checkGitExists();
checkGithubExists();
checkRemoteConfigured();
@@ -83,7 +83,7 @@ public class GithubShareProjectTest extends GithubShareProjectTestBase {
GithubShareAction.shareProjectOnGithub(myProject, myProjectRoot);
checkNotification(NotificationType.WARNING, "Can't finish GitHub sharing process", null);
checkNotification(NotificationType.INFORMATION, "Successfully created empty repository on GitHub", null);
checkGitExists();
checkGithubExists();
checkRemoteConfigured();