Creates a new file in a GitLab repository at the specified path with the given content. Use this action when you need to add a new file to a repository branch with a commit message.
branchRequiredstringThe name of the branch where the file will be created.
contentRequiredstringThe content of the file to create.
encodingstringThe encoding of the file content. Set to 'base64' if the content is base64-encoded. Default is 'text'.
file_pathRequiredstringThe full path to the file to create within the repository (e.g., 'lib/class.rb' or 'docs/README.md').
project_idRequiredThe ID or URL-encoded path of the project.
author_namestringThe name of the commit author. If not provided, uses the authenticated user's name.
author_emailstringThe email address of the commit author. If not provided, uses the authenticated user's email.
start_branchstringName of the base branch to create the new branch from. Only used if the specified branch does not exist.
commit_messageRequiredstringThe commit message describing why the file was created.
execute_filemodebooleanWhether to enable the execute flag on the file (for executable files).
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
OAuth connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.