Apply Project Tags
How it works
$ npm run start -- apply-tags -h
Usage: robosaur apply-tags [options] <configFile>
Applies tags to projects based on the given config file
Options:
-h, --help display help for commandRobosaur applies tags to projects based on the configuration file, or from a separate CSV file. The CSV file can be stored in your local drive or one of our supported cloud object storage.
If a tag does not already exist in the team, Robosaur automatically creates it before applying it to the project.
The behavior is controlled through the
applyTagsconfiguration.
Payload
JSON format
{
...
"applyTags": {
"teamId": "<TEAM_ID>",
"source": "inline",
"payload": [
{
"projectId": "<PROJECT_ID_1>",
"tags": ["<TAG_1>", "<TAG_2>"]
},
{
"projectId": "<PROJECT_ID_2>",
"tags": ["<TAG_3>"]
}
]
}
...
}CSV format
CSV files are supported for all storage methods. If multiple tags are specified in the tags column, Robosaur applies all tags to the project. Use a comma (,) to separate multiple tags.
Example:
Object storage
The applyTags source supports inline, local filesystem, and cloud object storage. For more details, refer to Storage Options.
Local file example
Cloud object storage example
Last updated