diff --git a/Makefile b/Makefile index 104291f..e85c5cd 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,10 @@ air: ## Install air for hot reload. dev: air ## run the application with hot reload air --build.cmd "make build" --build.bin ./gitea-mcp +.PHONY: fmt +fmt: ## format Go code with gofumpt + $(GO) run $(GOFUMPT_PACKAGE) -w . + .PHONY: lint lint: lint-go ## lint everything diff --git a/operation/pull/pull_test.go b/operation/pull/pull_test.go index f54c461..71567c6 100644 --- a/operation/pull/pull_test.go +++ b/operation/pull/pull_test.go @@ -304,13 +304,13 @@ func Test_mergePullRequestFn_newParams(t *testing.T) { req := mcp.CallToolRequest{ Params: mcp.CallToolParams{ Arguments: map[string]any{ - "owner": owner, - "repo": repo, - "index": float64(index), - "merge_style": "merge", - "force_merge": true, - "merge_when_checks_succeed": true, - "head_commit_id": "abc123", + "owner": owner, + "repo": repo, + "index": float64(index), + "merge_style": "merge", + "force_merge": true, + "merge_when_checks_succeed": true, + "head_commit_id": "abc123", }, }, }