Skip to content

Commit

Permalink
chore: octokit.rest
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Oct 4, 2024
1 parent 7db23d9 commit bada3b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bot/features/commands/private-chat/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ feature.command("register", logHandle("command-register"), chatAction("typing"),
}

const octokit = ctx.adapters.github.octokit;
const user = await octokit.users.getByUsername({ username: githubUsername });
const user = await octokit.rest.users.getByUsername({ username: githubUsername });

if (user.status !== 200) {
await ctx.reply("User not found.");
Expand Down
2 changes: 1 addition & 1 deletion src/utils/add-comment-to-issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function addCommentToIssue(context: Context, msg: string, owner?: s
}

try {
await octokit.issues.createComment({
await octokit.rest.issues.createComment({
owner,
repo,
issue_number: issueNumber,
Expand Down

0 comments on commit bada3b5

Please sign in to comment.