mirror of
https://github.com/go-i2p/gitlab-to-gitea.git
synced 2025-06-08 02:29:16 -04:00
fmt
This commit is contained in:
25
Makefile
25
Makefile
@ -3,11 +3,24 @@ fmt:
|
|||||||
@echo "Running gofumpt..."
|
@echo "Running gofumpt..."
|
||||||
find . -name '*.go' -exec gofumpt -w -s -extra {} \;
|
find . -name '*.go' -exec gofumpt -w -s -extra {} \;
|
||||||
|
|
||||||
migrate:
|
CGO_ENABLED=0
|
||||||
go build -o migrate ./cmd/migrate
|
|
||||||
|
|
||||||
unmigrate:
|
all: bin migrate unmigrate forkfix orgfix
|
||||||
go build -o unmigrate ./cmd/unmigrate
|
|
||||||
|
|
||||||
forkfix:
|
bin:
|
||||||
go build -o forkfix ./cmd/forkfix
|
mkdir -p ./bin
|
||||||
|
|
||||||
|
migrate: bin
|
||||||
|
go build --tags=netgo,osusergo -o ./bin/migrate ./cmd/migrate
|
||||||
|
|
||||||
|
unmigrate: bin
|
||||||
|
go build --tags=netgo,osusergo -o ./bin/unmigrate ./cmd/unmigrate
|
||||||
|
|
||||||
|
forkfix: bin
|
||||||
|
go build --tags=netgo,osusergo -o ./bin/forkfix ./cmd/forkfix
|
||||||
|
|
||||||
|
orgfix: bin
|
||||||
|
go build --tags=netgo,osusergo -o ./bin/orgfix ./cmd/orgfix
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ./bin/migrate ./bin/unmigrate ./bin/forkfix ./bin/orgfix
|
@ -29,8 +29,7 @@ func ExtractUserMentions(text string) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ignore everything we found and return nothing
|
// Ignore everything we found and return nothing
|
||||||
return []string{}
|
return []string{""}
|
||||||
//return result
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NormalizeMentions replaces all @mentions in text with their normalized versions
|
// NormalizeMentions replaces all @mentions in text with their normalized versions
|
||||||
|
Reference in New Issue
Block a user