Skip to content

Automate PR creation? (e.g. via GitHub+AskGPT integration) #23

@knocte

Description

@knocte

I see you said that you manually created PR #17 from the output of ChatGPT.

What if we could automate PR creation? The only manual step would be to create a GitHub account for ChatGPT. After creating that, I guess we would need a script that:

  • Gathers GitHub credentials from an account (e.g. ssh public key or key token).
  • Uses a tool that can feed the output of GptRepoLoader to ChatGPT (example: AskGPT): https://github.com/praeclarum/AskGPT
  • Tell ChatGPT to write his solution as a .patch file.
  • Apply it via git am locally.
  • Push branch to ChatGPT's fork in ChatGPT's Github account.
  • Hit GitHubActions API to create PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions