You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can use the Octokit API to handle all the requests for the issues.
I think since this will be a major change for the project is better to have a discussion first, I have already start working on this.
This is a code example for the API request using octokit, with pagination.
constoctokit=newOctokit({auth: import.meta.env.VITE_GITHUB_TOKEN,});exportconstgetRepoInfo=async()=>{try{constparameters={owner: "ArslanYM",repo: "StarterHive",sort: "updated",direction: "asc",per_page: 6,};constissuesPages=[];forawait(constresponseofoctokit.paginate.iterator("GET /repos/{owner}/{repo}/issues",parameters)){constissues=response.data;issuesPages.push(issues);}// This function returns an array that contains different arrays with a max of 6 issue objects. // This way we can handle the pagination easily.returnissuesPages;}catch(error){thrownewError(error);}};
The text was updated successfully, but these errors were encountered:
@ThGnommy Actually we will be soon working on this, The Find Issues section is supposed to show issues in projects or codebases of organizations that are actual companies. And can potentially hire people.
ThGnommy
added a commit
to ThGnommy/StarterHive
that referenced
this issue
Jun 20, 2023
Would be nice to have a dynamic issues list.
We can use the Octokit API to handle all the requests for the issues.
I think since this will be a major change for the project is better to have a discussion first, I have already start working on this.
This is a code example for the API request using octokit, with pagination.
The text was updated successfully, but these errors were encountered: