mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-110677 Github: do not show warning on success
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user