chore: fix casing of gitlab and github

Signed-off-by: Billy Michael <billy_michael@outlook.com>
This commit is contained in:
Billy Michael
2024-04-05 19:18:04 +01:00
7 changed files with 23 additions and 20 deletions
@@ -20,7 +20,7 @@ import yaml from 'yaml';
export const examples: TemplateExample[] = [
{
description:
'Initializes a git repository of the content in the workspace, and publishes it to Azure with the default confiiguration.',
'Initializes a git repository with the content in the workspace, and publishes it to Azure DevOps with the default configuration.',
example: yaml.stringify({
steps: [
{
@@ -36,7 +36,7 @@ export const examples: TemplateExample[] = [
}),
},
{
description: 'Initializes an Azure repository with a description.',
description: 'Initializes an Azure DevOps repository with a description.',
example: yaml.stringify({
steps: [
{
@@ -54,7 +54,7 @@ export const examples: TemplateExample[] = [
},
{
description:
'Initializes a Azure repository with a default Branch, if not set defaults to master',
'Initializes an Azure DevOps repository with a default branch, if not set defaults to master',
example: yaml.stringify({
steps: [
{
@@ -20,7 +20,7 @@ import yaml from 'yaml';
export const examples: TemplateExample[] = [
{
description:
'Initializes a git repository of the content in the workspace, and publishes it to Bitbucket Cloud with the default confiiguration.',
'Initializes a git repository with the content in the workspace, and publishes it to Bitbucket Cloud with the default configuration.',
example: yaml.stringify({
steps: [
{
@@ -110,7 +110,7 @@ describe('publish:bitbucket', () => {
auth: { username: 'x-token-auth', password: 'tokenlols' },
logger: mockContext.logger,
commitMessage: 'initial commit',
gitAuthorInfo: {},
gitAuthorInfo: { email: undefined, name: undefined },
});
});
@@ -151,7 +151,7 @@ describe('publish:bitbucket', () => {
auth: { username: 'x-token-auth', password: 'tokenlols' },
logger: mockContext.logger,
commitMessage: 'initial commit',
gitAuthorInfo: {},
gitAuthorInfo: { email: undefined, name: undefined },
});
});
@@ -189,9 +189,9 @@ describe('publish:bitbucket', () => {
remoteUrl: 'https://bitbucket.org/workspace/cloneurl',
auth: { username: 'x-token-auth', password: 'tokenlols' },
logger: mockContext.logger,
defaultBranch: 'main',
defaultBranch: 'master',
commitMessage: 'initial commit',
gitAuthorInfo: {},
gitAuthorInfo: { email: undefined, name: undefined },
});
});
@@ -229,9 +229,12 @@ describe('publish:bitbucket', () => {
remoteUrl: 'https://bitbucket.org/workspace/cloneurl',
auth: { username: 'x-token-auth', password: 'your-auth-token' },
logger: mockContext.logger,
defaultBranch: 'main',
defaultBranch: 'master',
commitMessage: 'initial commit',
gitAuthorInfo: {},
gitAuthorInfo: {
email: undefined,
name: undefined,
},
});
});
@@ -268,9 +271,9 @@ describe('publish:bitbucket', () => {
expect(initRepoAndPush).toHaveBeenCalledWith({
dir: mockContext.workspacePath,
remoteUrl: 'https://bitbucket.org/workspace/cloneurl',
auth: { username: 'x-token-auth', password: 'your-auth-token' },
auth: { username: 'x-token-auth', password: 'tokenlols' },
logger: mockContext.logger,
defaultBranch: 'main',
defaultBranch: 'master',
commitMessage: 'Initial commit with custom message',
gitAuthorInfo: { email: undefined, name: undefined },
});
@@ -309,10 +312,10 @@ describe('publish:bitbucket', () => {
expect(initRepoAndPush).toHaveBeenCalledWith({
dir: mockContext.workspacePath,
remoteUrl: 'https://bitbucket.org/workspace/cloneurl',
auth: { username: 'x-token-auth', password: 'your-auth-token' },
auth: { username: 'x-token-auth', password: 'tokenlols' },
logger: mockContext.logger,
defaultBranch: 'main',
commitMessage: 'Initial commit with custom message',
defaultBranch: 'master',
commitMessage: 'initial commit',
gitAuthorInfo: { email: 'your.email@example.com', name: 'Your Name' },
});
});
@@ -20,7 +20,7 @@ import yaml from 'yaml';
export const examples: TemplateExample[] = [
{
description:
'Initializes a git repository of the content in the workspace, and publishes it to Bitbucket with the default confiiguration.',
'Initializes a git repository with the content in the workspace, and publishes it to Bitbucket with the default configuration.',
example: yaml.stringify({
steps: [
{
@@ -72,7 +72,7 @@ export const examples: TemplateExample[] = [
},
{
description:
'Initializes a Bitbucket repository with a default Branch, if not set defaults to master',
'Initializes a Bitbucket repository with a default branch, if not set defaults to master',
example: yaml.stringify({
steps: [
{
@@ -20,7 +20,7 @@ import yaml from 'yaml';
export const examples: TemplateExample[] = [
{
description:
'Initializes a git repository of the content in the workspace, and publishes it to Gitea with the default confiiguration.',
'Initializes a git repository with the content in the workspace, and publishes it to Gitea with the default configuration.',
example: yaml.stringify({
steps: [
{
@@ -20,7 +20,7 @@ import yaml from 'yaml';
export const examples: TemplateExample[] = [
{
description:
'Initializes a git repository of the content in the workspace, and publishes it to GitHub with the default confiiguration.',
'Initializes a git repository with the content in the workspace, and publishes it to GitHub with the default configuration.',
example: yaml.stringify({
steps: [
{
@@ -20,7 +20,7 @@ import yaml from 'yaml';
export const examples: TemplateExample[] = [
{
description:
'Initializes a git repository of the content in the workspace, and publishes it to GitLab with the default confiiguration.',
'Initializes a git repository with the content in the workspace, and publishes it to GitLab with the default configuration.',
example: yaml.stringify({
steps: [
{