Skip to content

Commit a891df6

Browse files
committed
adding yaml and json tags for queue config
1 parent 2a51137 commit a891df6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

entity/queue_config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ package entity
77
type QueueConfig struct {
88
// Name uniquely identifies this queue within the system.
99
// Referenced by Request.Queue.
10-
Name string
10+
Name string `json:"name" yaml:"name"`
1111

1212
// VCSType identifies the version control system (e.g., "git", "svn", "perforce").
1313
// A queue operates on exactly one VCS.
14-
VCSType string
14+
VCSType string `json:"vcs_type" yaml:"vcs_type"`
1515

1616
// VCSAddress identifies the repository in the version control system.
1717
// The format is VCS-specific:
1818
// - Git: remote URL (e.g., "git@github.com:uber/submitqueue.git")
1919
// - Perforce: depot path (e.g., "//depot/project")
2020
// - SVN: repository URL (e.g., "https://svn.example.com/repos/project")
21-
VCSAddress string
21+
VCSAddress string `json:"vcs_address" yaml:"vcs_address"`
2222

2323
// Target is the landing target where changes are merged.
2424
// The format is VCS-specific:
2525
// - Git: branch ref (e.g., "main", "release/v2")
2626
// - Perforce: stream or depot path (e.g., "//depot/main/...")
2727
// - SVN: repository path (e.g., "trunk/")
28-
Target string
28+
Target string `json:"target" yaml:"target"`
2929

3030
// BuildRunner identifies the CI pipeline or job that runs builds for this queue.
3131
// Opaque to the system; meaningful only to the build extension implementation.
3232
// Examples:
3333
// - Buildkite: "buildkite.com/uber/submitqueue-ci"
3434
// - Jenkins: "jenkins.example.com/job/submitqueue-verify"
35-
BuildRunner string
35+
BuildRunner string `json:"build_runner" yaml:"build_runner"`
3636
}

0 commit comments

Comments
 (0)