Edit documentation in TW and use Github API to create PRs directly?

@pmario asks on Github:

Is it possible to add changes (new commits) to those tiddlers later on, or is that a new PR?

With the current code it would be a new PR. However, it is possible to implement the ability to add new commits to the same PR as well.

We are using 2 dependencies, a low level library (octokit) that covers the entire Github API and a plugin for it that makes it very easy to create PRs. So either we use the low level library to update the PR or we find a plugin for it.

The real catch is going to be the user side of things and the copy of tw.com that they use.

  • we need to make sure they always start with a fresh copy of the site
  • if we want to allow updating a PR, then they would need to have saved their changes in TW somewhere
    • unless we use Github actions to generate a TW file for every PR, and then that file can be used to further update the same PR as long as it hasn’t fallen far behind the tw.com branch in terms of changes.
  • Or we have a one click option to clone tw.com to say TiddlyHost (with their permission and consideration of cost) as starting point for each PR. The wiki persists at TH while the PR is open.