gitlab api pro icon

gitlab api pro

Extended GitLab node

File → Create

AI-generated

Summary

Creates a new file in a GitLab repository using a commit message and file content.

Inputs

  • fileBranch (required) — The target branch where the file will be created.
  • fileContent (required) — The content of the file to be written.
  • commitMessage (required) — The commit message to accompany the file creation.
  • path (required) — The full path of the file to create.

Output shape

A list of items containing the GitLab API response for the created file.

The response includes metadata about the created file.

Examples

Example 1: Create a configuration file in a feature branch

Path: 'config/settings.', Branch: 'feature/auth', Content: '{"key":"value"}', Commit Message: 'Add settings'

Links

Discussion