func ReadAllEnvs() map[string]string {
	envs := map[string]string{}
	for _, pair := range os.Environ() {
		splitted := strings.SplitN(pair, "=", 2)
		envs[splitted[0]] = splitted[1]
	}
	return envs
}
ReadAllEnvs as a map
package ci
import (
	"fmt"
	"os"
	"strings"
	"github.com/Nightapes/go-semantic-release/internal/gitutil"
	log "github.com/sirupsen/logrus"
)
type ProviderConfig struct {
	IsPR     bool
	PR       string
	PRBranch string
	Branch   string
	Tag      string
	Commit   string
	BuildURL string
	Service  string
	Name     string
}
type Service interface {
	detect(envs map[string]string) (*ProviderConfig, error)
}