(username)
| 112 | */ |
| 113 | |
| 114 | const fetchPRsByUser = async (username) => { |
| 115 | try { |
| 116 | const { user } = await fetchUser({ username }); |
| 117 | const url = getGithubURL({ |
| 118 | author: user.github_id, |
| 119 | type: "pr", |
| 120 | }); |
| 121 | return getFetch(url); |
| 122 | } catch (err) { |
| 123 | logger.error(`Error while fetching pull requests: ${err}`); |
| 124 | throw err; |
| 125 | } |
| 126 | }; |
| 127 | |
| 128 | /** |
| 129 | * Fetches the latest `per_page` open PRs |
nothing calls this directly
no test coverage detected