-
-
Notifications
You must be signed in to change notification settings - Fork 11
allow to configure pr title, commit message, and branch name #675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,11 @@ public static async Task SyncPr(ICredentials octokitCredentials) | |
| branch: "master")); | ||
|
|
||
| // Run the sync | ||
| await repoSync.Sync(syncOutput: SyncOutput.MergePullRequest); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can this be part of a new snippet There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
| await repoSync.Sync( | ||
| pullRequestTitle: "Pull request title", | ||
| branchName: "GitBranchName", | ||
| commitMessage: "Commit message", | ||
| syncOutput: SyncOutput.MergePullRequest); | ||
|
|
||
| #endregion | ||
| } | ||
|
|
||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?