diff --git a/.github/labels.yml b/.github/labels.yml index f9d75ad..02319bc 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -39,5 +39,13 @@ XXL: lines: 1000 color: E50009 comment: | - # Whoa! Easy there, Partner! - This PR is too big. Please break it up into smaller PRs. \ No newline at end of file + ## 🤖 Whoa! Easy there, Partner! + This PR is too big. It's over 1000. Please break it up into smaller PRs. + +XXXL: + name: size/XXXL + lines: 5000 + color: FF0000 + comment: | + ## 🤖 Whoa! Easy there, Partner! + This PR is too big. It's over 5000. Please break it up into smaller PRs. \ No newline at end of file diff --git a/.github/weekly-digest.yml b/.github/weekly-digest.yml new file mode 100644 index 0000000..07c5603 --- /dev/null +++ b/.github/weekly-digest.yml @@ -0,0 +1,6 @@ +publishDay: sun +canPublishIssues: true +canPublishPullRequests: true +canPublishContributors: true +canPublishStargazers: true +canPublishCommits: true \ No newline at end of file diff --git a/Makefile b/Makefile index 32400c3..e8f7022 100644 --- a/Makefile +++ b/Makefile @@ -268,6 +268,17 @@ copyright-add: tools.verify.addlicense @$(TOOLS_DIR)/addlicense -y $(shell date +"%Y") -v -c "OpenIM open source community." -f $(LICENSE_TEMPLATE) $(CODE_DIRS) @echo "===========> End the copyright is added..." +## swagger: Generate swagger document. +.PHONY: swagger +swagger: tools.verify.swagger + @echo "===========> Generating swagger API docs" + @$(TOOLS_DIR)/swagger generate spec --scan-models -w $(ROOT_DIR)/cmd/gendocs -o $(ROOT_DIR)/server/docs/swagger.yaml + +## serve-swagger: Serve swagger spec and docs. +.PHONY: swagger.serve +serve-swagger: tools.verify.swagger + @$(TOOLS_DIR)/swagger serve -F=redoc --no-open --port 36666 $(ROOT_DIR)/server/docs/swagger.yaml + ## clean: Clean all builds. .PHONY: clean clean: @@ -336,6 +347,11 @@ install.go-gitlint: install.go-junit-report: @$(GO) install github.com/jstemmer/go-junit-report@latest +## install.gotests: Install gotests, used to generate go tests +.PHONY: install.swagger +install.swagger: + @$(GO) install github.com/go-swagger/go-swagger/cmd/swagger@latest + # ============================================================================== # Tools that might be used include go gvm, cos #