Skip to content

Commit 697eb30

Browse files
committed
rename to VCSAddress to be less 'git'-y
1 parent 01a1361 commit 697eb30

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

entity/queue_config.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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 {
3232
func 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
}

entity/queue_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)