Skip to content

Conversation

jasonwoods-7
Copy link
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
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
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?

branch: "master"));

// Run the sync
await repoSync.Sync(syncOutput: SyncOutput.MergePullRequest);
Copy link
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
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