repository

Modify multiple files in a repository

Changed on
post/repos/{owner}/{repo}/contents

Request

  • Base URL
    https://demo.gitea.com/api/v1
  • Auth
    • HTTP basic
    • or API key in query parameter token
    • or API key in query parameter access_token
    • or API key in header Authorization
    • or API key in query parameter sudo
    • or API key in header Sudo
    • or API key in header X-GITEA-OTP
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

Request body

branchstring

branch (optional) is the base branch for the changes. If not supplied, the default branch is used

force_pushboolean

force_push (optional) will do a force-push if the new branch already exists

messagestring

message (optional) is the commit message of the changes. If not supplied, a default message will be used

new_branchstring

new_branch (optional) will make a new branch from base branch for the changes. If not supplied, the changes will be committed to the base branch

signoffboolean

Add a Signed-off-by trailer by the committer at the end of the commit log message.

Response

FilesResponse

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status