Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

feat(runners): add maintenance_note on put/get runner details #2017

Merged
merged 2 commits into from
Sep 28, 2024
Merged
Changes from 1 commit
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: 2 additions & 0 deletions runners.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ type RunnerDetails struct {
Name string `json:"name"`
WebURL string `json:"web_url"`
} `json:"groups"`
MaintenanceNote string `json:"maintenance_note"`

// Deprecated: Use Paused instead. (Deprecated in GitLab 14.8)
Active bool `json:"active"`
Expand Down Expand Up @@ -180,6 +181,7 @@ type UpdateRunnerDetailsOptions struct {
Locked *bool `url:"locked,omitempty" json:"locked,omitempty"`
AccessLevel *string `url:"access_level,omitempty" json:"access_level,omitempty"`
MaximumTimeout *int `url:"maximum_timeout,omitempty" json:"maximum_timeout,omitempty"`
MaintenanceNote *string `url:"maintenance_note,omitempty" json:"maintenance_note,omitempty"`

// Deprecated: Use Paused instead. (Deprecated in GitLab 14.8)
Active *bool `url:"active,omitempty" json:"active,omitempty"`
Expand Down