feat(be): ansible-semaphore -> semaphoreui

This commit is contained in:
Denis Gukov 2024-10-26 12:56:17 +00:00
parent 1f3f598f11
commit 89a2ddf6b5
136 changed files with 291 additions and 291 deletions

View File

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
trans "github.com/snikch/goodman/transaction" trans "github.com/snikch/goodman/transaction"
) )

View File

@ -6,12 +6,12 @@ import (
"os" "os"
"time" "time"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/db/bolt" "github.com/semaphoreui/semaphore/db/bolt"
"github.com/ansible-semaphore/semaphore/db/factory" "github.com/semaphoreui/semaphore/db/factory"
"github.com/ansible-semaphore/semaphore/db/sql" "github.com/semaphoreui/semaphore/db/sql"
"github.com/ansible-semaphore/semaphore/pkg/random" "github.com/semaphoreui/semaphore/pkg/random"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/go-gorp/gorp/v3" "github.com/go-gorp/gorp/v3"
"github.com/snikch/goodman/transaction" "github.com/snikch/goodman/transaction"
) )

View File

@ -11,11 +11,11 @@ body:
value: | value: |
Please make sure to go through these steps **before opening an issue**: Please make sure to go through these steps **before opening an issue**:
- [ ] Read the [documentation](https://docs.ansible-semaphore.com/) - [ ] Read the [documentation](https://docs.semaphoreui.com/)
- [ ] Read the [troubleshooting guide](https://docs.ansible-semaphore.com/administration-guide/troubleshooting) - [ ] Read the [troubleshooting guide](https://docs.semaphoreui.com/administration-guide/troubleshooting)
- [ ] Read the [documentation regarding manual installations](https://docs.ansible-semaphore.com/administration-guide/installation_manually) if you did install Semaphore that way - [ ] Read the [documentation regarding manual installations](https://docs.semaphoreui.com/administration-guide/installation_manually) if you did install Semaphore that way
- [ ] Check if there are existing [issues](https://github.com/ansible-semaphore/semaphore/issues) or [discussions](https://github.com/ansible-semaphore/semaphore/discussions) regarding your topic - [ ] Check if there are existing [issues](https://github.com/semaphoreui/semaphore/issues) or [discussions](https://github.com/semaphoreui/semaphore/discussions) regarding your topic
- type: textarea - type: textarea
id: problem id: problem

View File

@ -11,11 +11,11 @@ body:
value: | value: |
Please make sure to go through these steps **before opening an issue**: Please make sure to go through these steps **before opening an issue**:
- [ ] Read the [documentation](https://docs.ansible-semaphore.com/) - [ ] Read the [documentation](https://docs.semaphoreui.com/)
- [ ] Read the [troubleshooting guide](https://docs.ansible-semaphore.com/administration-guide/troubleshooting) - [ ] Read the [troubleshooting guide](https://docs.semaphoreui.com/administration-guide/troubleshooting)
- [ ] Read the [documentation regarding manual installations](https://docs.ansible-semaphore.com/administration-guide/installation_manually) if you did install Semaphore that way - [ ] Read the [documentation regarding manual installations](https://docs.semaphoreui.com/administration-guide/installation_manually) if you did install Semaphore that way
- [ ] Check if there are existing [issues](https://github.com/ansible-semaphore/semaphore/issues) or [discussions](https://github.com/ansible-semaphore/semaphore/discussions) regarding your topic - [ ] Check if there are existing [issues](https://github.com/semaphoreui/semaphore/issues) or [discussions](https://github.com/semaphoreui/semaphore/discussions) regarding your topic
- type: dropdown - type: dropdown
id: related-to id: related-to

View File

@ -11,11 +11,11 @@ body:
value: | value: |
Please make sure to go through these steps **before opening an issue**: Please make sure to go through these steps **before opening an issue**:
- [ ] Read the [documentation](https://docs.ansible-semaphore.com/) - [ ] Read the [documentation](https://docs.semaphoreui.com/)
- [ ] Read the [troubleshooting guide](https://docs.ansible-semaphore.com/administration-guide/troubleshooting) - [ ] Read the [troubleshooting guide](https://docs.semaphoreui.com/administration-guide/troubleshooting)
- [ ] Read the [documentation regarding manual installations](https://docs.ansible-semaphore.com/administration-guide/installation_manually) if you don't use docker - [ ] Read the [documentation regarding manual installations](https://docs.semaphoreui.com/administration-guide/installation_manually) if you don't use docker
- [ ] Check if there are existing [issues](https://github.com/ansible-semaphore/semaphore/issues) or [discussions](https://github.com/ansible-semaphore/semaphore/discussions) regarding your topic - [ ] Check if there are existing [issues](https://github.com/semaphoreui/semaphore/issues) or [discussions](https://github.com/semaphoreui/semaphore/discussions) regarding your topic
- type: textarea - type: textarea
id: problem id: problem

View File

@ -11,11 +11,11 @@ body:
value: | value: |
Please make sure to go through these steps **before opening an issue**: Please make sure to go through these steps **before opening an issue**:
- [ ] Read the [documentation](https://docs.ansible-semaphore.com/) - [ ] Read the [documentation](https://docs.semaphoreui.com/)
- [ ] Read the [troubleshooting guide](https://docs.ansible-semaphore.com/administration-guide/troubleshooting) - [ ] Read the [troubleshooting guide](https://docs.semaphoreui.com/administration-guide/troubleshooting)
- [ ] Read the [documentation regarding manual installations](https://docs.ansible-semaphore.com/administration-guide/installation_manually) if you did install Semaphore that way - [ ] Read the [documentation regarding manual installations](https://docs.semaphoreui.com/administration-guide/installation_manually) if you did install Semaphore that way
- [ ] Check if there are existing [issues](https://github.com/ansible-semaphore/semaphore/issues) or [discussions](https://github.com/ansible-semaphore/semaphore/discussions) regarding your topic - [ ] Check if there are existing [issues](https://github.com/semaphoreui/semaphore/issues) or [discussions](https://github.com/semaphoreui/semaphore/discussions) regarding your topic
- type: textarea - type: textarea
id: question id: question

View File

@ -9,7 +9,7 @@ builds:
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
main: ./cli/main.go main: ./cli/main.go
ldflags: -s -w -X github.com/ansible-semaphore/semaphore/util.Ver={{ .Version }} -X github.com/ansible-semaphore/semaphore/util.Commit={{ .ShortCommit }} -X github.com/ansible-semaphore/semaphore/util.Date={{ .Timestamp }} ldflags: -s -w -X github.com/semaphoreui/semaphore/util.Ver={{ .Version }} -X github.com/semaphoreui/semaphore/util.Commit={{ .ShortCommit }} -X github.com/semaphoreui/semaphore/util.Date={{ .Timestamp }}
tags: tags:
- netgo - netgo
goos: goos:

View File

@ -17,13 +17,13 @@ When creating a pull-request you should:
1) Set up GOPATH, GOBIN and Workspace. 1) Set up GOPATH, GOBIN and Workspace.
``` ```
mkdir -p $GOPATH/src/github.com/ansible-semaphore && cd $GOPATH/src/github.com/ansible-semaphore mkdir -p $GOPATH/src/github.com/semaphoreui && cd $GOPATH/src/github.com/semaphoreui
``` ```
2) Clone semaphore (with submodules) 2) Clone semaphore (with submodules)
``` ```
git clone --recursive git@github.com:ansible-semaphore/semaphore.git && cd semaphore git clone --recursive git@github.com:semaphoreui/semaphore.git && cd semaphore
``` ```
3) Install dev dependencies 3) Install dev dependencies

View File

@ -68,7 +68,7 @@ tasks:
sh: git log --pretty=format:'%h' -n 1 sh: git log --pretty=format:'%h' -n 1
VERSION: "{{ if eq .GITHUB_REF_TYPE \"tag\" }}{{ .GITHUB_REF_NAME }}{{ else }}{{ .TAG }}{{ end }}" VERSION: "{{ if eq .GITHUB_REF_TYPE \"tag\" }}{{ .GITHUB_REF_NAME }}{{ else }}{{ .TAG }}{{ end }}"
DATE: "{{ now | unixEpoch }}" DATE: "{{ now | unixEpoch }}"
IMPORT: "github.com/ansible-semaphore/semaphore" IMPORT: "github.com/semaphoreui/semaphore"
build:fe: build:fe:
desc: Build VueJS project desc: Build VueJS project
@ -105,7 +105,7 @@ tasks:
sh: git log --pretty=format:'%h' -n 1 sh: git log --pretty=format:'%h' -n 1
VERSION: "{{ if eq .GITHUB_REF_TYPE \"tag\" }}{{ .GITHUB_REF_NAME }}{{ else }}{{ .TAG }}{{ end }}" VERSION: "{{ if eq .GITHUB_REF_TYPE \"tag\" }}{{ .GITHUB_REF_NAME }}{{ else }}{{ .TAG }}{{ end }}"
DATE: "{{ now | unixEpoch }}" DATE: "{{ now | unixEpoch }}"
IMPORT: "github.com/ansible-semaphore/semaphore" IMPORT: "github.com/semaphoreui/semaphore"
lint: lint:
cmds: cmds:

View File

@ -4,9 +4,9 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
"net/http" "net/http"
"reflect" "reflect"

View File

@ -1,9 +1,9 @@
package api package api
import ( import (
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"net/http" "net/http"

View File

@ -1,8 +1,8 @@
package api package api
import ( import (
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"net/http" "net/http"
"github.com/gorilla/context" "github.com/gorilla/context"

View File

@ -3,7 +3,7 @@ package helpers
import ( import (
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -3,7 +3,7 @@ package helpers
import ( import (
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/services/tasks" "github.com/semaphoreui/semaphore/services/tasks"
"net/http" "net/http"
"net/url" "net/url"
"runtime/debug" "runtime/debug"
@ -14,7 +14,7 @@ import (
"github.com/gorilla/context" "github.com/gorilla/context"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View File

@ -5,13 +5,13 @@ import (
"crypto/sha256" "crypto/sha256"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"io" "io"
"net/http" "net/http"
"strings" "strings"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/thedevsaddam/gojsonq/v2" "github.com/thedevsaddam/gojsonq/v2"
) )

View File

@ -1,7 +1,7 @@
package api package api
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"net/http" "net/http"
"testing" "testing"
) )

View File

@ -16,10 +16,10 @@ import (
"text/template" "text/template"
"time" "time"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/pkg/random" "github.com/semaphoreui/semaphore/pkg/random"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/coreos/go-oidc/v3/oidc" "github.com/coreos/go-oidc/v3/oidc"
"github.com/go-ldap/ldap/v3" "github.com/go-ldap/ldap/v3"
"github.com/gorilla/mux" "github.com/gorilla/mux"

View File

@ -1,8 +1,8 @@
package api package api
import ( import (
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
"net/http" "net/http"
) )

View File

@ -5,9 +5,9 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
projectService "github.com/ansible-semaphore/semaphore/services/project" projectService "github.com/semaphoreui/semaphore/services/project"
"github.com/gorilla/context" "github.com/gorilla/context"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -2,8 +2,8 @@ package projects
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"net/http" "net/http"
"github.com/gorilla/context" "github.com/gorilla/context"

View File

@ -6,8 +6,8 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -4,10 +4,10 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/pkg/random" "github.com/semaphoreui/semaphore/pkg/random"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"os" "os"
"path/filepath" "path/filepath"

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -1,8 +1,8 @@
package projects package projects
import ( import (
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"net/http" "net/http"

View File

@ -3,9 +3,9 @@ package projects
import ( import (
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/gorilla/context" "github.com/gorilla/context"

View File

@ -5,9 +5,9 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/services/schedules" "github.com/semaphoreui/semaphore/services/schedules"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -2,10 +2,10 @@ package projects
import ( import (
"errors" "errors"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/services/tasks" "github.com/semaphoreui/semaphore/services/tasks"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"net/http" "net/http"

View File

@ -2,11 +2,11 @@ package projects
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -10,14 +10,14 @@ import (
"strings" "strings"
"time" "time"
"github.com/ansible-semaphore/semaphore/api/runners" "github.com/semaphoreui/semaphore/api/runners"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/api/projects" "github.com/semaphoreui/semaphore/api/projects"
"github.com/ansible-semaphore/semaphore/api/sockets" "github.com/semaphoreui/semaphore/api/sockets"
"github.com/ansible-semaphore/semaphore/api/tasks" "github.com/semaphoreui/semaphore/api/tasks"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View File

@ -1,8 +1,8 @@
package api package api
import ( import (
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"net/http" "net/http"

View File

@ -3,11 +3,11 @@ package runners
import ( import (
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/pkg/task_logger" "github.com/semaphoreui/semaphore/pkg/task_logger"
"github.com/ansible-semaphore/semaphore/services/runners" "github.com/semaphoreui/semaphore/services/runners"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -2,11 +2,11 @@ package sockets
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"net/http" "net/http"
"time" "time"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"

View File

@ -1,12 +1,12 @@
package tasks package tasks
import ( import (
"github.com/ansible-semaphore/semaphore/pkg/task_logger" "github.com/semaphoreui/semaphore/pkg/task_logger"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
task2 "github.com/ansible-semaphore/semaphore/services/tasks" task2 "github.com/semaphoreui/semaphore/services/tasks"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -3,9 +3,9 @@ package api
import ( import (
"crypto/rand" "crypto/rand"
"encoding/base64" "encoding/base64"
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"io" "io"

View File

@ -1,12 +1,12 @@
package api package api
import ( import (
"github.com/ansible-semaphore/semaphore/api/helpers" "github.com/semaphoreui/semaphore/api/helpers"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"net/http" "net/http"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
) )

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -6,13 +6,13 @@ import (
"os" "os"
"strings" "strings"
"github.com/ansible-semaphore/semaphore/api" "github.com/semaphoreui/semaphore/api"
"github.com/ansible-semaphore/semaphore/api/sockets" "github.com/semaphoreui/semaphore/api/sockets"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/db/factory" "github.com/semaphoreui/semaphore/db/factory"
"github.com/ansible-semaphore/semaphore/services/schedules" "github.com/semaphoreui/semaphore/services/schedules"
"github.com/ansible-semaphore/semaphore/services/tasks" "github.com/semaphoreui/semaphore/services/tasks"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/gorilla/context" "github.com/gorilla/context"
"github.com/gorilla/handlers" "github.com/gorilla/handlers"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
@ -29,8 +29,8 @@ var rootCmd = &cobra.Command{
Use: "semaphore", Use: "semaphore",
Short: "Semaphore UI is a beautiful web UI for Ansible", Short: "Semaphore UI is a beautiful web UI for Ansible",
Long: `Semaphore UI is a beautiful web UI for Ansible. Long: `Semaphore UI is a beautiful web UI for Ansible.
Source code is available at https://github.com/ansible-semaphore/semaphore. Source code is available at https://github.com/semaphoreui/semaphore.
Complete documentation is available at https://ansible-semaphore.com.`, Complete documentation is available at https://semaphoreui.com.`,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
_ = cmd.Help() _ = cmd.Help()
os.Exit(0) os.Exit(0)

View File

@ -4,8 +4,8 @@ import (
"io" "io"
"os" "os"
"github.com/ansible-semaphore/semaphore/services/runners" "github.com/semaphoreui/semaphore/services/runners"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -3,8 +3,8 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/cli/setup" "github.com/semaphoreui/semaphore/cli/setup"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,8 +1,8 @@
package cmd package cmd
import ( import (
"github.com/ansible-semaphore/semaphore/services/runners" "github.com/semaphoreui/semaphore/services/runners"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,8 +1,8 @@
package cmd package cmd
import ( import (
"github.com/ansible-semaphore/semaphore/services/runners" "github.com/semaphoreui/semaphore/services/runners"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -6,10 +6,10 @@ import (
"os" "os"
"strings" "strings"
"github.com/ansible-semaphore/semaphore/cli/setup" "github.com/semaphoreui/semaphore/cli/setup"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/db/factory" "github.com/semaphoreui/semaphore/db/factory"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -2,7 +2,7 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"os" "os"
) )

View File

@ -2,7 +2,7 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"os" "os"
) )

View File

@ -2,7 +2,7 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -3,7 +3,7 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/ansible-semaphore/semaphore/cli/cmd" "github.com/semaphoreui/semaphore/cli/cmd"
) )
func main() { func main() {

View File

@ -8,7 +8,7 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
) )
const interactiveSetupBlurb = ` const interactiveSetupBlurb = `

View File

@ -7,10 +7,10 @@ import (
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/pkg/random" "github.com/semaphoreui/semaphore/pkg/random"
"github.com/ansible-semaphore/semaphore/pkg/ssh" "github.com/semaphoreui/semaphore/pkg/ssh"
"github.com/ansible-semaphore/semaphore/pkg/task_logger" "github.com/semaphoreui/semaphore/pkg/task_logger"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"io" "io"
"path" "path"
) )

View File

@ -2,7 +2,7 @@ package db
import ( import (
"encoding/base64" "encoding/base64"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"testing" "testing"
) )

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
) )
type RepositoryType string type RepositoryType string

View File

@ -6,7 +6,7 @@ import (
"path" "path"
"testing" "testing"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
) )
func TestRepository_GetSchema(t *testing.T) { func TestRepository_GetSchema(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
"github.com/go-gorp/gorp/v3" "github.com/go-gorp/gorp/v3"
"time" "time"
"github.com/ansible-semaphore/semaphore/pkg/task_logger" "github.com/semaphoreui/semaphore/pkg/task_logger"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
) )
// Task is a model of a task which will be executed by the runner // Task is a model of a task which will be executed by the runner

View File

@ -65,7 +65,7 @@ type Template struct {
RepositoryID int `db:"repository_id" json:"repository_id" backup:"-"` RepositoryID int `db:"repository_id" json:"repository_id" backup:"-"`
EnvironmentID *int `db:"environment_id" json:"environment_id" backup:"-"` EnvironmentID *int `db:"environment_id" json:"environment_id" backup:"-"`
// Name as described in https://github.com/ansible-semaphore/semaphore/issues/188 // Name as described in https://github.com/semaphoreui/semaphore/issues/188
Name string `db:"name" json:"name"` Name string `db:"name" json:"name"`
// playbook name in the form of "some_play.yml" // playbook name in the form of "some_play.yml"
Playbook string `db:"playbook" json:"playbook"` Playbook string `db:"playbook" json:"playbook"`

View File

@ -4,8 +4,8 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
"reflect" "reflect"
"sort" "sort"

View File

@ -2,7 +2,7 @@ package bolt
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"reflect" "reflect"
"testing" "testing"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"testing" "testing"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
) )

View File

@ -1,6 +1,6 @@
package bolt package bolt
import "github.com/ansible-semaphore/semaphore/db" import "github.com/semaphoreui/semaphore/db"
func (d *BoltDb) GetEnvironment(projectID int, environmentID int) (environment db.Environment, err error) { func (d *BoltDb) GetEnvironment(projectID int, environmentID int) (environment db.Environment, err error) {
err = d.getObject(projectID, db.EnvironmentProps, intObjectID(environmentID), &environment) err = d.getObject(projectID, db.EnvironmentProps, intObjectID(environmentID), &environment)

View File

@ -2,7 +2,7 @@ package bolt
import ( import (
"encoding/json" "encoding/json"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
"time" "time"
) )

View File

@ -3,7 +3,7 @@ package bolt
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"reflect" "reflect"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
) )
func (d *BoltDb) GetInventory(projectID int, inventoryID int) (inventory db.Inventory, err error) { func (d *BoltDb) GetInventory(projectID int, inventoryID int) (inventory db.Inventory, err error) {

View File

@ -2,7 +2,7 @@ package bolt
import ( import (
"encoding/json" "encoding/json"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
) )

View File

@ -2,7 +2,7 @@ package bolt
import ( import (
"errors" "errors"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
"strings" "strings"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"time" "time"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"testing" "testing"
"time" "time"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
) )
func (d *BoltDb) GetRepository(projectID int, repositoryID int) (repository db.Repository, err error) { func (d *BoltDb) GetRepository(projectID int, repositoryID int) (repository db.Repository, err error) {

View File

@ -3,7 +3,7 @@ package bolt
import ( import (
"encoding/base64" "encoding/base64"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/securecookie" "github.com/gorilla/securecookie"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"reflect" "reflect"
"time" "time"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
"time" "time"
) )

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
) )

View File

@ -2,7 +2,7 @@ package bolt
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"time" "time"
) )

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"testing" "testing"
"time" "time"
) )

View File

@ -1,6 +1,6 @@
package bolt package bolt
import "github.com/ansible-semaphore/semaphore/db" import "github.com/semaphoreui/semaphore/db"
func (d *BoltDb) GetView(projectID int, viewID int) (view db.View, err error) { func (d *BoltDb) GetView(projectID int, viewID int) (view db.View, err error) {
err = d.getObject(projectID, db.ViewProps, intObjectID(viewID), &view) err = d.getObject(projectID, db.ViewProps, intObjectID(viewID), &view)

View File

@ -1,7 +1,7 @@
package bolt package bolt
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"sort" "sort"
"testing" "testing"
"time" "time"

View File

@ -2,7 +2,7 @@ package db
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"reflect" "reflect"
"strings" "strings"
) )

View File

@ -1,10 +1,10 @@
package factory package factory
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/db/bolt" "github.com/semaphoreui/semaphore/db/bolt"
"github.com/ansible-semaphore/semaphore/db/sql" "github.com/semaphoreui/semaphore/db/sql"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
) )
func CreateStore() db.Store { func CreateStore() db.Store {

View File

@ -10,8 +10,8 @@ import (
"strings" "strings"
"github.com/Masterminds/squirrel" "github.com/Masterminds/squirrel"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/ansible-semaphore/semaphore/util" "github.com/semaphoreui/semaphore/util"
"github.com/go-gorp/gorp/v3" "github.com/go-gorp/gorp/v3"
_ "github.com/go-sql-driver/mysql" // imports mysql driver _ "github.com/go-sql-driver/mysql" // imports mysql driver
_ "github.com/lib/pq" _ "github.com/lib/pq"

View File

@ -3,7 +3,7 @@ package sql
import ( import (
"database/sql" "database/sql"
"errors" "errors"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
) )
func (d *SqlDb) GetAccessKey(projectID int, accessKeyID int) (key db.AccessKey, err error) { func (d *SqlDb) GetAccessKey(projectID int, accessKeyID int) (key db.AccessKey, err error) {

View File

@ -1,7 +1,7 @@
package sql package sql
import ( import (
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
) )
func (d *SqlDb) GetEnvironment(projectID int, environmentID int) (environment db.Environment, err error) { func (d *SqlDb) GetEnvironment(projectID int, environmentID int) (environment db.Environment, err error) {

View File

@ -2,7 +2,7 @@ package sql
import ( import (
"github.com/Masterminds/squirrel" "github.com/Masterminds/squirrel"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"time" "time"
) )

View File

@ -3,7 +3,7 @@ package sql
import ( import (
"database/sql" "database/sql"
"github.com/Masterminds/squirrel" "github.com/Masterminds/squirrel"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
) )
func (d *SqlDb) CreateIntegration(integration db.Integration) (newIntegration db.Integration, err error) { func (d *SqlDb) CreateIntegration(integration db.Integration) (newIntegration db.Integration, err error) {

View File

@ -1,6 +1,6 @@
package sql package sql
import "github.com/ansible-semaphore/semaphore/db" import "github.com/semaphoreui/semaphore/db"
func (d *SqlDb) GetInventory(projectID int, inventoryID int) (inventory db.Inventory, err error) { func (d *SqlDb) GetInventory(projectID int, inventoryID int) (inventory db.Inventory, err error) {
err = d.getObject(projectID, db.InventoryProps, inventoryID, &inventory) err = d.getObject(projectID, db.InventoryProps, inventoryID, &inventory)

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -4,7 +4,7 @@ import (
"database/sql" "database/sql"
"errors" "errors"
"github.com/Masterminds/squirrel" "github.com/Masterminds/squirrel"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
) )
func (d *SqlDb) SetOption(key string, value string) error { func (d *SqlDb) SetOption(key string, value string) error {

View File

@ -2,7 +2,7 @@ package sql
import ( import (
"github.com/Masterminds/squirrel" "github.com/Masterminds/squirrel"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"time" "time"
) )

View File

@ -2,7 +2,7 @@ package sql
import ( import (
"github.com/Masterminds/squirrel" "github.com/Masterminds/squirrel"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
) )
func (d *SqlDb) GetRepository(projectID int, repositoryID int) (db.Repository, error) { func (d *SqlDb) GetRepository(projectID int, repositoryID int) (db.Repository, error) {

View File

@ -3,7 +3,7 @@ package sql
import ( import (
"encoding/base64" "encoding/base64"
"github.com/Masterminds/squirrel" "github.com/Masterminds/squirrel"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"github.com/gorilla/securecookie" "github.com/gorilla/securecookie"
) )

View File

@ -2,7 +2,7 @@ package sql
import ( import (
"database/sql" "database/sql"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
) )
func (d *SqlDb) CreateSchedule(schedule db.Schedule) (newSchedule db.Schedule, err error) { func (d *SqlDb) CreateSchedule(schedule db.Schedule) (newSchedule db.Schedule, err error) {

View File

@ -2,7 +2,7 @@ package sql
import ( import (
"database/sql" "database/sql"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"time" "time"
) )

View File

@ -3,7 +3,7 @@ package sql
import ( import (
"database/sql" "database/sql"
"github.com/Masterminds/squirrel" "github.com/Masterminds/squirrel"
"github.com/ansible-semaphore/semaphore/db" "github.com/semaphoreui/semaphore/db"
"math/rand" "math/rand"
) )

Some files were not shown because too many files have changed in this diff Show More