Actions71
- Branch Actions
- File Actions
- Group Actions
- Issue Actions
- Merge Request Actions
- Pipeline Actions
- Project Actions
- Raw API Actions
- Release Actions
- Tag Actions
File → Create
AI-generatedSummary
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'