Skip to content

Suggestion: Rewrap using GitHub Probot #19

Description

@reececomo

Something worth exploring, GitHub Probot exists and is also based on Octokit.

It cuts out all the GitHub authentication flows boilerplate, easy to write/maintain/test/extend, supports TypeScript out of the box, etc.

import { Probot } from "probot";
import { handle } from "./rocketbot";

export = (app: Probot) => {
  app.on("issue_comment.created", async (context) => {
    const updatedComment: IssueComment | undefined = handle(context)

    if (updatedComment) {
      await context.octokit.issues.updateComment(updatedComment);
    }
  });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions