Skip to content

Can I add the feature to allow query params for new file name and contents? #16398

Closed
@coolaj86

Description

@coolaj86

Gitea lets you open a URL to create a new file at a given path, like this:

https://git.example.com/example/project/_new/master/path/to

Github allows you to also specify the name of the file, and some contents, like this:

https://github.com/example/project/new/master
        ?filename=path/to/hello.md
        &value=Hello+World!

I would like to add this feature to gitea.

  • Would this be acceptable?
  • How can I find the JavaScript file I would need to edit to add this?
  • Where should I add documentation for a feature like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions