try rest api route
This commit is contained in:
parent
6b1053d0d8
commit
0c8901cc91
3 changed files with 168 additions and 90 deletions
|
@ -199,20 +199,19 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
|||
// Stash any uncommitted tracked and untracked changes
|
||||
const stashed = await git.stashPush(['--include-untracked'])
|
||||
await git.checkout(inputs.branch)
|
||||
// await githubHelper.pushSignedCommits(
|
||||
await githubHelper.pushSignedCommits(
|
||||
result.branchCommits,
|
||||
repoPath,
|
||||
branchRepository,
|
||||
inputs.branch
|
||||
)
|
||||
// await githubHelper.pushSignedCommit(
|
||||
// branchRepository,
|
||||
// inputs.branch,
|
||||
// inputs.base,
|
||||
// inputs.commitMessage,
|
||||
// result.branchCommits
|
||||
// result.branchFileChanges
|
||||
// )
|
||||
await githubHelper.pushSignedCommit(
|
||||
branchRepository,
|
||||
inputs.branch,
|
||||
inputs.base,
|
||||
inputs.commitMessage,
|
||||
result.branchFileChanges
|
||||
)
|
||||
await git.checkout('-')
|
||||
if (stashed) {
|
||||
await git.stashPop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue