Simple Dashing widget (and associated job) to display open pull requests for a specific Project and/or repository from Atlassian Stash
See the example.png below for an idea on how this widget looks on a dashboard.
None
import org.grails.gradle.plugin.GrailsTask | |
apply plugin: 'grails' | |
grails { | |
grailsVersion '2.2.1' | |
} | |
buildscript { | |
repositories { |
Simple Dashing widget (and associated job) to display open pull requests for a specific Project and/or repository from Atlassian Stash
See the example.png below for an idea on how this widget looks on a dashboard.
None
package com.danveloper.springboot | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.boot.SpringApplication | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration | |
import org.springframework.context.ApplicationContext | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.integration.dsl.groovy.IntegrationContext | |
import org.springframework.integration.dsl.groovy.builder.AbstractIntegrationBuilderModuleSupport |
public static <T> Observable<T> create(ListenableFuture<T> future, Executor executor) { | |
AsyncSubject<T> subject = AsyncSubject.create(); | |
future.addListener(() -> { | |
try { | |
T value = future.get(); | |
subject.onNext(value); | |
subject.onCompleted(); | |
} catch (Exception e) { | |
subject.onError(e); | |
} |