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"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea-sonarqube-bot/internal/api"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/api"
|
||||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||||
sonarQubeSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
sonarQubeSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
|
|
||||||
"github.com/urfave/cli/v2"
|
"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
|
go 1.18
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
webhook "gitea-sonarqube-bot/internal/webhooks/gitea"
|
webhook "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/webhooks/gitea"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GiteaWebhookHandlerInferface interface {
|
type GiteaWebhookHandlerInferface interface {
|
||||||
|
|
|
@ -8,8 +8,7 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
|
@ -7,10 +7,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
webhook "gitea-sonarqube-bot/internal/webhooks/sonarqube"
|
webhook "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/webhooks/sonarqube"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SonarQubeWebhookHandlerInferface interface {
|
type SonarQubeWebhookHandlerInferface interface {
|
||||||
|
|
|
@ -9,8 +9,7 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@ package gitea
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"code.gitea.io/sdk/gitea"
|
"code.gitea.io/sdk/gitea"
|
||||||
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GiteaSdkInterface interface {
|
type GiteaSdkInterface interface {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"gitea-sonarqube-bot/internal/actions"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/actions"
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ParsePRIndex(name string) (int, error) {
|
func ParsePRIndex(name string) (int, error) {
|
||||||
|
|
|
@ -8,8 +8,7 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"gitea-sonarqube-bot/internal/actions"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/actions"
|
||||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type issue struct {
|
type issue struct {
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
giteaSdk "gitea-sonarqube-bot/internal/clients/gitea"
|
giteaSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/gitea"
|
||||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type pullRequest struct {
|
type pullRequest struct {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
sqSdk "gitea-sonarqube-bot/internal/clients/sonarqube"
|
sqSdk "codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/clients/sonarqube"
|
||||||
)
|
)
|
||||||
|
|
||||||
type properties struct {
|
type properties struct {
|
||||||
|
|
|
@ -4,8 +4,7 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"gitea-sonarqube-bot/internal/settings"
|
"codeberg.org/justusbunsi/gitea-sonarqube-bot/internal/settings"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue