#3606 RFE: Edit files in the web UI as a PR without making a fork
Opened 5 years ago by asamalik. Modified 5 years ago

Now we have the “edit this page” button on the Fedora Docs page, it would be useful to be able to do a simple edit in the web UI and send as a PR without making a fork.

The workflow I imagine would be:

  1. Click “edit this file” and do the edits
  2. Click on “send as a PR” button that would, in the background, create an internal fork of the repo and create a PR to the original repository.
  3. When the PR is merged, the repo would be deleted.

Benefits:

  • When I already have a fork which can be completely out-of-date, I would still be able to do a simple edit. All nicely in the web UI. (Now I have to remove my fork manually first, or do some git pull magic on my local machine.)
  • Users unfamiliar with git would be able to contribute small changes — especially helpful for simple edits of the Fedora Docs.

I believe this is already available, when you access a file there is a Fork and Edit button that's creates the fork, let you edit the file inside the browser, let you create a commit and a Pull request.
I believe currently the fork is not delete after the PR was merged so this need to be done manually.

--- Edit

Ok I read this too quickly :), so what is missing is the possibility to delete the fork after the PR was merged.

But if the fork exists and is old, you end up editing an old file. Or if the file doesn't exist in your old fork, you end up on a home page of the original repo.

Metadata Update from @pingou:
- Issue tagged with: RFE, wishful

5 years ago

@pingou @cverna what if we have a old fork and we update the old fork and make that PR, I am thinking about deleting the fork is that really necessary?

I's not about deleting a fork.

From my experience, I'm almost never able to edit anything on thr web, because my existing fork is completely out of sync. An exceptions are repos I've never contributed to, therefore I have no fork.

What if the "edit" button created a branch that would be in sync with whatever I want to edit?

Login to comment on this ticket.

Metadata