From 6487296f53f1d2bd4221682401202e3c0979a023 Mon Sep 17 00:00:00 2001 From: Tim Levett Date: Fri, 23 Jun 2023 11:26:13 -0500 Subject: [PATCH 1/3] (projects) Increase Page limit Increase page limit to 10 to match GitHub project issue limits --- pkg/github/projects/projects.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/github/projects/projects.go b/pkg/github/projects/projects.go index 5c5fb5be..a1906533 100644 --- a/pkg/github/projects/projects.go +++ b/pkg/github/projects/projects.go @@ -12,7 +12,8 @@ import ( ) // PageNumberLimit is the limit on the number of pages that will be traversed -const PageNumberLimit = 2 +// Setting to 10 because GH limits active issues in a project to 1_000 +const PageNumberLimit = 10 // QueryListProjects lists all projects in a repository // organization(login: "grafana") { From d34c9f0bd8ae8692d8d14f5b636282c668f133e3 Mon Sep 17 00:00:00 2001 From: Tim Levett Date: Fri, 23 Jun 2023 11:30:03 -0500 Subject: [PATCH 2/3] (projects) update to 12 pages can have up to 1200 turns out --- pkg/github/projects/projects.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/github/projects/projects.go b/pkg/github/projects/projects.go index a1906533..8871a144 100644 --- a/pkg/github/projects/projects.go +++ b/pkg/github/projects/projects.go @@ -12,8 +12,9 @@ import ( ) // PageNumberLimit is the limit on the number of pages that will be traversed -// Setting to 10 because GH limits active issues in a project to 1_000 -const PageNumberLimit = 10 +// Setting to 10 because GH limits active issues in a project to 1_200 +// https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project +const PageNumberLimit = 12 // QueryListProjects lists all projects in a repository // organization(login: "grafana") { From 2fdb77e3285b4bcc8fb354fd5f788d39329eb7da Mon Sep 17 00:00:00 2001 From: Tim Levett Date: Fri, 23 Jun 2023 12:24:45 -0500 Subject: [PATCH 3/3] (constants) increase the pages to 12 --- pkg/github/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/github/constants.go b/pkg/github/constants.go index 91a537f8..35edef23 100644 --- a/pkg/github/constants.go +++ b/pkg/github/constants.go @@ -1,4 +1,4 @@ package github // PageNumberLimit is the limit on the number of pages that will be traversed -const PageNumberLimit = 2 +const PageNumberLimit = 12