Skip to content
Merged
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
3 changes: 2 additions & 1 deletion service.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ func (service *Service) GetLastDeploy(client *Client, variables *PayloadVariable
if service.Id == "" {
return nil, fmt.Errorf("unable to get LastDeploy, invalid service id: '%s'", service.Id)
}

if variables == nil {
variables = client.InitialPageVariablesPointer()
variables = &PayloadVariables{}
}
Copy link
Copy Markdown
Contributor Author

@derek-etherton-opslevel derek-etherton-opslevel May 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

considered getting rid of the variables param altogether since this query will only really use serviceId, but figure keeping it is:
a. backwards compatible with current version of opslevel-mcp, and
b. more future-proof?

(*variables)["service"] = service.Id
if err := client.Query(&q, *variables, WithName("ServiceLastDeploy")); err != nil {
Expand Down
Loading