add example for ff merge and squash

Signed-off-by: Zhi Liang <zliang@roku.com>
This commit is contained in:
Zhi Liang
2024-05-01 15:33:54 -04:00
committed by blam
parent 7ed2f0d500
commit f884b3d6ab
@@ -87,6 +87,25 @@ export const examples: TemplateExample[] = [
],
}),
},
{
description: 'Initializes a GitLab repository with fast forward merge and always squash settings.',
example: yaml.stringify({
steps: [
{
id: 'publish',
action: 'publish:gitlab',
name: 'Publish to GitLab',
input: {
repoUrl: 'gitlab.com?repo=project_name&owner=group_name',
settings: {
merge_method: 'ff',
squash_option: 'always',
},
},
},
],
}),
},
{
description: 'Initializes a GitLab repository with branch settings.',
example: yaml.stringify({