Fix function name

This commit is contained in:
Half-Shot 2020-07-20 16:12:26 +01:00
parent ae2a317b57
commit 24cfd9e542

View File

@ -227,7 +227,7 @@ export class GitHubRepoConnection implements IConnection {
@botCommand("gh close", "Close an issue", ["number"], ["comment"], true)
// @ts-ignore
private async onAssign(userId: string, number: string, comment?: string) {
private async onClose(userId: string, number: string, comment?: string) {
const octokit = await this.tokenStore.getOctokitForUser(userId);
if (!octokit) {
return this.as.botIntent.sendText(this.roomId, "You must login to close an issue", "m.notice");