diff --git a/buildkite/agents.go b/buildkite/agents.go index e70bbc57..dfbe508e 100644 --- a/buildkite/agents.go +++ b/buildkite/agents.go @@ -15,6 +15,7 @@ type AgentsService struct { // Agent represents a buildkite build agent. type Agent struct { ID *string `json:"id,omitempty" yaml:"id,omitempty"` + GraphQLID *string `json:"graphql_id,omitempty" yaml:"graphql_id,omitempty"` URL *string `json:"url,omitempty" yaml:"url,omitempty"` WebURL *string `json:"web_url,omitempty" yaml:"web_url,omitempty"` Name *string `json:"name,omitempty" yaml:"name,omitempty"` diff --git a/buildkite/builds.go b/buildkite/builds.go index 41bfcb88..e272957d 100644 --- a/buildkite/builds.go +++ b/buildkite/builds.go @@ -54,6 +54,7 @@ type PullRequest struct { // Build represents a build which has run in buildkite type Build struct { ID *string `json:"id,omitempty" yaml:"id,omitempty"` + GraphQLID *string `json:"graphql_id,omitempty" yaml:"graphql_id,omitempty"` URL *string `json:"url,omitempty" yaml:"url,omitempty"` WebURL *string `json:"web_url,omitempty" yaml:"web_url,omitempty"` Number *int `json:"number,omitempty" yaml:"number,omitempty"` diff --git a/buildkite/jobs.go b/buildkite/jobs.go index 8a9f95ab..a630e1cc 100644 --- a/buildkite/jobs.go +++ b/buildkite/jobs.go @@ -13,8 +13,9 @@ type JobsService struct { } // Job represents a job run during a build in buildkite -type Job struct { - ID *string `json:"id,omitempty" yaml:"id,omitempty"` +type Job struct { + ID *string `json:"id,omitempty" yaml:"id,omitempty"` + GraphQLID *string `json:"graphql_id,omitempty" yaml:"graphql_id,omitempty"` Type *string `json:"type,omitempty" yaml:"type,omitempty"` Name *string `json:"name,omitempty" yaml:"name,omitempty"` Label *string `json:"label,omitempty" yaml:"label,omitempty"` diff --git a/buildkite/pipelines.go b/buildkite/pipelines.go index 8ab631a3..3cfdc812 100644 --- a/buildkite/pipelines.go +++ b/buildkite/pipelines.go @@ -40,6 +40,7 @@ type CreatePipeline struct { // Pipeline represents a buildkite pipeline. type Pipeline struct { ID *string `json:"id,omitempty" yaml:"id,omitempty"` + GraphQLID *string `json:"graphql_id,omitempty" yaml:"graphql_id,omitempty"` URL *string `json:"url,omitempty" yaml:"url,omitempty"` WebURL *string `json:"web_url,omitempty" yaml:"web_url,omitempty"` Name *string `json:"name,omitempty" yaml:"name,omitempty"`