File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ type QueueConfig struct {
1313 // A queue operates on exactly one VCS.
1414 VCSType string
1515
16- // VCSRepo identifies the repository in the version control system.
16+ // 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- VCSRepo string
21+ VCSAddress string
2222
2323 // Target is the landing target where changes are merged.
2424 // The format is VCS-specific:
@@ -32,13 +32,13 @@ type QueueConfig struct {
3232func NewQueueConfig (
3333 name string ,
3434 vcsType string ,
35- vcsRepo string ,
35+ vcsAddress string ,
3636 target string ,
3737) QueueConfig {
3838 return QueueConfig {
39- Name : name ,
40- VCSType : vcsType ,
41- VCSRepo : vcsRepo ,
42- Target : target ,
39+ Name : name ,
40+ VCSType : vcsType ,
41+ VCSAddress : vcsAddress ,
42+ Target : target ,
4343 }
4444}
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ func TestNewQueueConfig(t *testing.T) {
1111
1212 assert .Equal (t , "uber/submitqueue/main" , cfg .Name )
1313 assert .Equal (t , "git" , cfg .VCSType )
14- assert .Equal (t , "git@github.com:uber/submitqueue.git" , cfg .VCSRepo )
14+ assert .Equal (t , "git@github.com:uber/submitqueue.git" , cfg .VCSAddress )
1515 assert .Equal (t , "main" , cfg .Target )
1616}
You can’t perform that action at this time.
0 commit comments