Skip to content

Commit

Permalink
Merge pull request #2483 from ubiquity/rndquu-patch-1
Browse files Browse the repository at this point in the history
fix: task spam
  • Loading branch information
rndquu authored Jan 24, 2025
2 parents 7bc8b6f + 6f287ad commit c9ffe30
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/directory/new-directory-issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ export async function newDirectoryIssue(partnerIssue: GitHubIssue, projectUrl: s
body = partnerIssue.html_url;
}

// create a new `id: XXX` label
// NOTICE: this is a workaround until https://github.com/octokit/rest.js/issues/479 is solved
try {
await octokit.rest.issues.createLabel({
owner: DEVPOOL_OWNER_NAME,
repo: DEVPOOL_REPO_NAME,
name: `id: ${partnerIssue.node_id}`,
});
} catch (err) {
console.error("Failed to create a label:", err);
}

// create a new issue
try {
const createdIssue = await octokit.rest.issues.create({
Expand Down

0 comments on commit c9ffe30

Please sign in to comment.