How to use the search function from @octokit/rest

Find comprehensive JavaScript @octokit/rest.search code examples handpicked from public code repositorys.

33
34
35
36
37
38
39
40
41
42
try {
  const options = method.endpoint.merge(queryObject)
  const data = await octokit.paginate(
    options,
    (response) => {
      return (method === octokit.search.issues) ? response.data.items : response.data
    }
  );
  return data;
} catch(e) {
fork icon1
star icon3
watch icon1

+ 3 other calls in file