(params = {})
| 182 | }; |
| 183 | |
| 184 | const fetchOpenIssues = async (params = {}) => { |
| 185 | const { perPage = 100, page = 1, searchParams = {}, resultOptions = {}, searchString = "" } = params; |
| 186 | |
| 187 | try { |
| 188 | const url = getGithubURL( |
| 189 | { |
| 190 | type: "issue", |
| 191 | is: "open", |
| 192 | ...searchParams, |
| 193 | }, |
| 194 | { |
| 195 | sort: "created", |
| 196 | ...resultOptions, |
| 197 | per_page: perPage, |
| 198 | page, |
| 199 | }, |
| 200 | searchString |
| 201 | ); |
| 202 | return getFetch(url); |
| 203 | } catch (err) { |
| 204 | logger.error(`Error while fetching open issues: ${err}`); |
| 205 | throw err; |
| 206 | } |
| 207 | }; |
| 208 | |
| 209 | const fetchClosedIssues = async (params = {}) => { |
| 210 | const { perPage = 100, page = 1, searchParams = {}, resultOptions = {} } = params; |
nothing calls this directly
no test coverage detected