(params = {})
| 207 | }; |
| 208 | |
| 209 | const fetchClosedIssues = async (params = {}) => { |
| 210 | const { perPage = 100, page = 1, searchParams = {}, resultOptions = {} } = params; |
| 211 | |
| 212 | try { |
| 213 | const url = getGithubURL( |
| 214 | { |
| 215 | type: "issue", |
| 216 | is: "closed", |
| 217 | ...searchParams, |
| 218 | }, |
| 219 | { |
| 220 | sort: "updated", |
| 221 | ...resultOptions, |
| 222 | per_page: perPage, |
| 223 | page, |
| 224 | } |
| 225 | ); |
| 226 | return getFetch(url); |
| 227 | } catch (err) { |
| 228 | logger.error(`Error while fetching closed issues: ${err}`); |
| 229 | throw err; |
| 230 | } |
| 231 | }; |
| 232 | |
| 233 | /** |
| 234 | * Fetches issues across all repositories in the ORG |
nothing calls this directly
no test coverage detected