Skip to content

Commit 6593989

Browse files
committed
use name as well as full name
1 parent 3a21bb9 commit 6593989

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

internal/github/github.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
type Languages struct {
1111
// TODO find a way to share this with table.go
1212
FullName string
13+
Name string
1314
Languages []string
1415
}
1516

@@ -30,6 +31,7 @@ func (c *Client) GetLanguages(owner string, name string) (*Languages, error) {
3031
}
3132
l := &Languages{
3233
FullName: owner + "/" + name,
34+
Name: name,
3335
Languages: maps.Keys(langs),
3436
}
3537
return l, nil

resources/services/table.go

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
type Languages struct {
1616
// TODO find a way to share this with github.go
1717
FullName string
18+
Name string
1819
Languages []string
1920
}
2021

0 commit comments

Comments
 (0)