Skip to content

Commit

Permalink
chore(github-workflow): update bankrupt-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
samcx committed Jun 5, 2024
1 parent b79cd24 commit 48454c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/next-repo-actions/dist/bankrupt/index.js

Large diffs are not rendered by default.

20 changes: 14 additions & 6 deletions .github/actions/next-repo-actions/src/bankrupt-issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@ async function main() {

const octokit = getOctokit(process.env.GITHUB_TOKEN)
const { owner, repo } = context.repo
let issue_number = 66573
const query = `repo:${owner}/${repo} is:issue is:open created<=2020-12-31`
// let issue_number: number[] = []

try {
await octokit.rest.issues.createComment({
owner,
repo,
issue_number,
body: 'Hello world!',
const { data } = await octokit.rest.search.issuesAndPullRequests({
q: query,
per_page: 50,
})

info(`Total # of issues = ${data.items.length}`)

// await octokit.rest.issues.createComment({
// owner,
// repo,
// issue_number,
// body: 'Hello world!',
// })
} catch (error) {
setFailed(error)
}
Expand Down

0 comments on commit 48454c4

Please sign in to comment.