Refactor internal name to url-like one
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
This commit is contained in:
parent
b6b9087651
commit
f808a58177
|
@ -11,10 +11,10 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"gitea-sonarqube-bot/internal/api"
|
||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sonarQubeSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/api"
|
||||
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sonarQubeSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module gitea-sonarqube-bot
|
||||
module codeberg.org/justusbunsi/gitea-sonarqube-bot
|
||||
|
||||
go 1.18
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
"log"
|
||||
"net/http"
|
||||
|
||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
webhook "gitea-sonarqube-bot/internal/webhooks/gitea"
|
||||
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
webhook "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/webhooks/gitea"
|
||||
)
|
||||
|
||||
type GiteaWebhookHandlerInferface interface {
|
||||
|
|
|
@ -8,8 +8,7 @@ import (
|
|||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
webhook "gitea-sonarqube-bot/internal/webhooks/sonarqube"
|
||||
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
webhook "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/webhooks/sonarqube"
|
||||
)
|
||||
|
||||
type SonarQubeWebhookHandlerInferface interface {
|
||||
|
|
|
@ -9,8 +9,7 @@ import (
|
|||
"regexp"
|
||||
"testing"
|
||||
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@ package gitea
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
"log"
|
||||
|
||||
"code.gitea.io/sdk/gitea"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
)
|
||||
|
||||
type GiteaSdkInterface interface {
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"gitea-sonarqube-bot/internal/actions"
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/actions"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
)
|
||||
|
||||
func ParsePRIndex(name string) (int, error) {
|
||||
|
|
|
@ -8,8 +8,7 @@ import (
|
|||
"regexp"
|
||||
"testing"
|
||||
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"gitea-sonarqube-bot/internal/actions"
|
||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/actions"
|
||||
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
)
|
||||
|
||||
type issue struct {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
)
|
||||
|
||||
type pullRequest struct {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"log"
|
||||
|
||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||
)
|
||||
|
||||
type properties struct {
|
||||
|
|
|
@ -4,8 +4,7 @@ import (
|
|||
"regexp"
|
||||
"testing"
|
||||
|
||||
"gitea-sonarqube-bot/internal/settings"
|
||||
|
||||
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue