Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,17 @@ if ! command -v swag >/dev/null 2>&1; then
fi

swag init -g main.go --v3.1 --parseDependency --parseInternal

git add docs
if git diff --cached --quiet; then
echo "Swagger docs are up to date; continuing push."
exit 0
fi

git commit -m "docs: update swagger docs"
echo "Created commit with regenerated docs. Re-run 'git push' to include it."
exit 1




4 changes: 2 additions & 2 deletions docs/docs.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/swagger.json

Large diffs are not rendered by default.

Loading