mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-12-05 05:02:57 +00:00
debug payload without contents
This commit is contained in:
1 parent
bc73bc700a
commit
efd26f0872
2 files changed
+30
-3
No files matched your search
@@ -379,8 +379,19 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
||||
fileChanges: fileChanges
|
||||
}
|
||||
|
||||
core.info(
|
||||
`Push commit with payload: '${JSON.stringify(pushCommitVars)}'`
|
||||
const pushCommitVarsWithoutContents = {
|
||||
...pushCommitVars,
|
||||
fileChanges: {
|
||||
...pushCommitVars.fileChanges,
|
||||
additions: pushCommitVars.fileChanges.additions?.map(addition => {
|
||||
const {contents, ...rest} = addition
|
||||
return rest
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
core.debug(
|
||||
`Push commit with payload: '${JSON.stringify(pushCommitVarsWithoutContents)}'`
|
||||
)
|
||||
|
||||
const commit = await graphqlWithAuth<{
|
||||
|
||||
Reference in new issue
Block a user