Skip to content

Commit

Permalink
Merge pull request #116 from benmoss/add-graphql
Browse files Browse the repository at this point in the history
Add GraphQLID to more api objects
  • Loading branch information
lizrabuya authored Mar 14, 2023
2 parents dacaa1e + 0e86a55 commit e1afe26
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions buildkite/agents.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions buildkite/builds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
5 changes: 3 additions & 2 deletions buildkite/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions buildkite/pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit e1afe26

Please sign in to comment.