Launching a Pull Request in the Browser with Least Number of Steps #121269
Unanswered
cuppajoeman
asked this question in
API and Webhooks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Problem
Hi there, I'm working on a static website. Note that there is no database and no concept of users, and it has to stay this way.
I want to be able to give visitors the ability to seamlessly create edits for the page they are viewing at the moment.
(This website and all it's files is stored on github)
What I have right now
So far my workflow is to allow them to make changes using a built-in text-area editor, and then copy the changes they've made.
Then they click a link which takes them to the page to edit like this:
https://github.com/cuppajoeman/openmath/edit/main/html/probability/probability_models.html
This link takes them to the github editor which is open for editing, and then they paste the new content and have to go through the steps of making a pull request.
The process is a little lengthy and deters some from making page edits, I was wondering if there is anyway to make this process of constructing a pull request any faster.
My Ideas
Perhaps there is a way to make calls to the api to make this faster?
I know if the api is used then we'd probably have to make a fork, then create a branch (idk if that's in the API) then create changes and make a pull request for the newly created branch.
All of which needs to be done in some sort of sequential process.
Conclusion
I'm hoping to keep the static site as simple as possible, so making it interact with the api is less desirable, so I'm wondering if there is any way to do any of this through browser or if anyone's done something like this and willing to share code/their experiences with this.
Beta Was this translation helpful? Give feedback.
All reactions