Skip to content

Commit 5d44100

Browse files
authored
internal/batches: include the url field in repositories (#625)
Removing this in #598 broke the `src batch repos` command, which used the `url` field when rendering the link to the repo in Sourcegraph.
1 parent da39862 commit 5d44100

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ All notable changes to `src-cli` are documented in this file.
2121

2222
### Fixed
2323

24+
- `src batch repos` failed with a template error in src-cli 3.31.1 and 3.32.0. This has been fixed. [#625](https://github.com/sourcegraph/src-cli/pull/625)
25+
2426
### Removed
2527

2628
## 3.31.1

internal/batches/graphql/repository.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const RepositoryFieldsFragment = `
66
fragment repositoryFields on Repository {
77
id
88
name
9+
url
910
externalRepository {
1011
serviceType
1112
}
@@ -33,6 +34,7 @@ type Branch struct {
3334
type Repository struct {
3435
ID string
3536
Name string
37+
URL string
3638
ExternalRepository struct{ ServiceType string }
3739

3840
DefaultBranch *Branch

0 commit comments

Comments
 (0)