mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
debug payload without contents
This commit is contained in:
parent
bc73bc700a
commit
efd26f0872
2 changed files with 30 additions and 3 deletions
|
@ -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<{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue