Repository File
Import
A Repository File can be imported using an id made up of <project-id>:<branch-name>:<file-path>
, e.g.
$ pulumi import gitlab:index/repositoryFile:RepositoryFile this 1:main:foo/bar.txt
Properties
Email of the commit author.
Name of the commit author.
Commit message.
File content. If the content is not yet base64 encoded, it will be encoded automatically. No other encoding is currently supported, because of a GitLab API bug.
File content sha256 digest.
Enables or disables the execute flag on the file. Note: requires GitLab 14.10 or newer.
The last known commit id.
Enable overwriting existing files, defaults to false
. This attribute is only used during create
and must be use carefully. We suggest to use imports
whenever possible and limit the use of this attribute for when the project was imported on the same apply
. This attribute is not supported during a resource import.
Name of the branch to start the new commit from.