Created
August 11, 2021 17:00
-
-
Save anoopt/60096d266e83e163d4d5f757e20a1faf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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