Skip to content

Commit

Permalink
Update github.js
Browse files Browse the repository at this point in the history
  • Loading branch information
crazygo authored Nov 19, 2024
1 parent a6b5053 commit 3f4a9f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ async function getOrCreateIssue(milestone) {
try {
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');

const { data: issues } = await octokit.paginate('GET /repos/{owner}/{repo}/issues', {
const response = await octokit.paginate(octokit.rest.issues.listForRepo, {
owner,
repo,
milestone: milestone.number,
});
console.info('[octokit.rest.issues.listForRepo]', response);
const { data: issues } = response
let hash = '#' + milestone.number
let issue = issues.find((issue) => issue.title.includes(milestone.title));
issue = issues.find((issue) => issue.title.includes(hash));
Expand Down

0 comments on commit 3f4a9f5

Please sign in to comment.