UNPKG

auto-changelog-generator

Version:

The script includes error handling to log any issues encountered during the fetch operations. If an error occurs while fetching issues or labels, it logs the error to the console and continues processing the next item.

13 lines (12 loc) 346 B
async function getIssueTitle(i, octokit, repoOwner, repoName) { const issue = await octokit.paginate( "GET /repos/{owner}/{repo}/issues/{issue_number}", { owner: repoOwner, repo: repoName, issue_number: String(i), }, ); return issue[0].title; } export default getIssueTitle