From 81368be4cce2fdcf40b76b9567c89163f63d2b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darko=20Kri=C5=BEi=C4=87?= Date: Sat, 16 Mar 2024 15:46:56 +0100 Subject: [PATCH 1/2] Reduce window size --- userlist/collaborators.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userlist/collaborators.go b/userlist/collaborators.go index 0081dec..8009e2b 100644 --- a/userlist/collaborators.go +++ b/userlist/collaborators.go @@ -1,5 +1,7 @@ package userlist +const windowSize = 100 + import ( "context" "fmt" @@ -135,7 +137,7 @@ func (c *UserListConfig) loadCollaborators() error { variables := map[string]interface{}{ "organization": githubv4.String(org.Login), - "first": githubv4.Int(100), + "first": githubv4.Int(20), "after": (*githubv4.String)(nil), } From aac12a48f2cab49c05374f86988faef0516c7ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darko=20Kri=C5=BEi=C4=87?= Date: Sat, 16 Mar 2024 19:17:05 +0100 Subject: [PATCH 2/2] Fix syntaFix syntaxx --- userlist/collaborators.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userlist/collaborators.go b/userlist/collaborators.go index 8009e2b..012ccfa 100644 --- a/userlist/collaborators.go +++ b/userlist/collaborators.go @@ -1,7 +1,5 @@ package userlist -const windowSize = 100 - import ( "context" "fmt" @@ -11,6 +9,8 @@ import ( "time" ) +const windowSize = 100 + func (c *UserListConfig) loadCollaborators() error { slog.Info("Loading collaborators", "enterprise", c.enterprise) c.userList = UserList{