Skip to content

Instantly share code, notes, and snippets.

@anoopt
Created August 11, 2021 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoopt/60096d266e83e163d4d5f757e20a1faf to your computer and use it in GitHub Desktop.
Save anoopt/60096d266e83e163d4d5f757e20a1faf to your computer and use it in GitHub Desktop.
import * as github from '@actions/github';
...
...
const octokit = github.getOctokit(githubToken);
...
...
const opts = octokit.rest.issues.listForRepo.endpoint.merge({
...context.issue,
state: filterState,
labels: filterLabel
})
const issues: any = await octokit.paginate(opts);
for (const issue of issues) {
...
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment