Skip to content

Commit 3f201f3

Browse files
committed
remove starredat from minimal view
1 parent 4599a2b commit 3f201f3

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -875,19 +875,19 @@ The following sets of tools are available (all are on by default):
875875
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
876876
- `repo`: Repository name (string, required)
877877

878-
- **list_tags** - List tags
879-
- `owner`: Repository owner (string, required)
880-
- `page`: Page number for pagination (min 1) (number, optional)
881-
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
882-
- `repo`: Repository name (string, required)
883-
884878
- **list_starred_repositories** - List starred repositories
885879
- `direction`: The direction to sort the results by. (string, optional)
886880
- `page`: Page number for pagination (min 1) (number, optional)
887881
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
888882
- `sort`: How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to). (string, optional)
889883
- `username`: Username to list starred repositories for. If not provided, lists starred repositories for the authenticated user. (string, optional)
890884

885+
- **list_tags** - List tags
886+
- `owner`: Repository owner (string, required)
887+
- `page`: Page number for pagination (min 1) (number, optional)
888+
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
889+
- `repo`: Repository name (string, required)
890+
891891
- **push_files** - Push files to repository
892892
- `branch`: Branch to push to (string, required)
893893
- `files`: Array of file objects to push, each object with path (string) and content (string) (object[], required)

pkg/github/minimal_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ type MinimalRepository struct {
3131
OpenIssues int `json:"open_issues_count"`
3232
UpdatedAt string `json:"updated_at,omitempty"`
3333
CreatedAt string `json:"created_at,omitempty"`
34-
StarredAt string `json:"starred_at,omitempty"`
3534
Topics []string `json:"topics,omitempty"`
3635
Private bool `json:"private"`
3736
Fork bool `json:"fork"`

pkg/github/repositories.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,9 +1791,6 @@ func ListStarredRepositories(getClient GetClientFn, t translations.TranslationHe
17911791
if repo.UpdatedAt != nil {
17921792
minimalRepo.UpdatedAt = repo.UpdatedAt.Format("2006-01-02T15:04:05Z")
17931793
}
1794-
if starredRepo.StarredAt != nil {
1795-
minimalRepo.StarredAt = starredRepo.StarredAt.Format("2006-01-02T15:04:05Z")
1796-
}
17971794

17981795
minimalRepos = append(minimalRepos, minimalRepo)
17991796
}

pkg/github/repositories_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3017,7 +3017,6 @@ func Test_ListStarredRepositories(t *testing.T) {
30173017
if tc.expectedCount > 0 {
30183018
assert.Equal(t, "awesome-repo", returnedRepos[0].Name)
30193019
assert.Equal(t, "owner/awesome-repo", returnedRepos[0].FullName)
3020-
assert.NotEmpty(t, returnedRepos[0].StarredAt)
30213020
}
30223021
}
30233022
})

0 commit comments

Comments
 (0)