lyhistory / Peter-s-Tool

GNU General Public License v3.0
7 stars 1 forks source link

find a way to submit XML programmatically #1

Open hboon opened 5 years ago

hboon commented 5 years ago

Reposting the suggestion from https://github.com/alpha-wallet/alpha-wallet-android/issues/293:

Weiwu: Can we study if there is a way to submit a PR to github in a programmable way? Need to find some samples. We can turn around and avoid using github for this, but if there is an easy way to PR against github we should consider.

  1. maintain a git repo (locally or on server. This needs to pull to get updates.)
  2. commit to it programmatically (through a git lib or run shell commands)
  3. push to GitHub
  4. then use the GitHub API to create a PR, with the commit ID/hash, title, body, etc

This is similar to what we do when we create a PR manually: (1), (2), (3) is what we normally do on our development machines via shell, (4) is what we do in the browser.

git credentials involved, maybe server-side might be better? Can create a GitHub "bot" account for this. Nothing special, just a dedicated account for this purpose.

Simpler alternative from James S.:

this could be even simplier tho, simply send us an email and we review and copy it over directly. Probably can go on like that for a while