Skip to content

allow to configure pr title, commit message, and branch name#675

Open
jasonwoods-7 wants to merge 1 commit intoSimonCropp:mainfrom
jasonwoods-7:branch-naming
Open

allow to configure pr title, commit message, and branch name#675
jasonwoods-7 wants to merge 1 commit intoSimonCropp:mainfrom
jasonwoods-7:branch-naming

Conversation

@jasonwoods-7
Copy link
Copy Markdown
Contributor

note: the branch parameter of the CreateCommit method is not used in the GitHubSync library, but I needed it in my GitLabSync library.

repoSync.AddTargetRepository(new(credentials, Client.RepositoryOwner, "GitHubSync.TestRepository", repoContext.TempBranchName));

var sync = await repoSync.Sync();
var sync = await repoSync.Sync(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldnt these be in new tests?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean to make the GitHubSync* messages the defaults for prTitle, branchName, & commitMessage? or create new tests which don't use the previous defaults?

Comment thread src/Tests/Snippets.cs
branch: "master"));

// Run the sync
await repoSync.Sync(syncOutput: SyncOutput.MergePullRequest);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be part of a new snippet

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should prTitle, branchName, & commitMessage for the Sync method in the RepoSync class be optional params with default values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants