private void updateBuildStatus(@NotNull final SRunningBuild build, boolean isStarting) { SBuildType bt = build.getBuildType(); if (bt == null) return; for (SBuildFeatureDescriptor feature : bt.getBuildFeatures()) { if (!feature.getType().equals(UpdateChangeStatusFeature.FEATURE_TYPE)) continue; final Handler h = myUpdater.getUpdateHandler(feature); final Collection<BuildRevision> changes = getLatestChangesHash(build); if (changes.isEmpty()) { LOG.warn( "No revisions were found to update GitHub status. Please check you have Git VCS roots in the build configuration"); } for (BuildRevision e : changes) { if (isStarting) { h.scheduleChangeStarted(e.getRepositoryVersion(), build); } else { h.scheduleChangeCompeted(e.getRepositoryVersion(), build); } } } }