try rest api route

This commit is contained in:
Peter Evans 2024-08-08 16:32:49 +00:00
parent 6b1053d0d8
commit 0c8901cc91
3 changed files with 168 additions and 90 deletions

View file

@ -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()