Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .claude/commands/pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ Follow conventional commit standards and keep PR descriptions concise but inform

All pull requests must be submitted from a personal fork of the repository. The command should:
- Check if a fork exists using `gh repo view --json parent` to determine if current repo is a fork
- If not a fork, create one with `gh repo fork --clone=false`
- If not a fork, create one with `gh repo fork --clone=false`
- Set up remotes properly: `origin` should point to the user's fork, `upstream` to the original repository
- Push changes to the fork and create the PR targeting the upstream repository
1 change: 1 addition & 0 deletions server/cmd/gram/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ func newStartCommand() *cli.Command {
mux.Use(middleware.SessionMiddleware)
mux.Use(middleware.AdminOverrideMiddleware)

about.SetGitSHA(GitSHA)
about.Attach(mux, about.NewService(logger, tracerProvider))
auth.Attach(mux, auth.NewService(logger, db, sessionManager, auth.AuthConfigurations{
SpeakeasyServerAddress: c.String("speakeasy-server-address"),
Expand Down
17 changes: 17 additions & 0 deletions server/design/about/design.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,21 @@ var _ = Service("about", func() {
})
})
})

Method("version", func() {
Description("Get version information for the Gram components.")

Result(func() {
Attribute("server_version", String, "The version of the Gram server")
Attribute("dashboard_version", String, "The version of the Gram dashboard")
Attribute("git_sha", String, "The Git SHA of the current build")

Required("server_version", "dashboard_version", "git_sha")
})

HTTP(func() {
GET("/version")
Response(StatusOK)
})
})
})
26 changes: 25 additions & 1 deletion server/gen/about/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions server/gen/about/endpoints.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion server/gen/about/service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions server/gen/http/about/client/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading