File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/com/github/introfog/gitwave/model Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,14 @@ private UpdateChecker() {
3838 public static boolean isNewReleaseAvailable () {
3939 final String latestTag = fetchLatestTag (AppConstants .GIT_HUB_REPO_OWNER , AppConstants .APP_NAME );
4040 LOGGER .info ("Fetch '{}' tag from GitHub repo." , latestTag );
41- return latestTag != null && !AppConstants .VERSION .equals (latestTag );
41+ if (latestTag == null ) {
42+ return false ;
43+ }
44+ if (AppConstants .VERSION .contains ("SNAPSHOT" ) && !AppConstants .VERSION .replace ("-SNAPSHOT" , "" ).equals (latestTag )) {
45+ LOGGER .info ("Current app version is " + AppConstants .VERSION + ", new release check will be skipped." );
46+ return false ;
47+ }
48+ return !AppConstants .VERSION .equals (latestTag );
4249 }
4350
4451 public static String fetchLatestTag (String owner , String repo ) {
You can’t perform that action at this time.
0 commit comments