Skip to content

Commit

Permalink
Send valid JSON to autosync workflows for multi-line commit messages (F…
Browse files Browse the repository at this point in the history
…lowiseAI#1981)

Allow multi-line commit message to be used in autosync workflows using the toJSON context function. The toJSON function is required to pretty-print JSON objects to the log.
  • Loading branch information
ocflowiseai authored Mar 18, 2024
1 parent bb7373e commit 50a2e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autoSyncMergedPullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
"ref": "${{ github.ref }}",
"prNumber": "${{ github.event.pull_request.number }}",
"prTitle": "${{ github.event.pull_request.title }}",
"prDescription": "${{ github.event.pull_request.description }}",
"prDescription": "${{ toJSON(github.event.pull_request.description) }}",
"sha": "${{ github.sha }}"
}
2 changes: 1 addition & 1 deletion .github/workflows/autoSyncSingleCommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
{
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}",
"commitMessage": "${{ github.event.commits[0].message }}"
"commitMessage": "${{ toJSON(github.event.commits[0].message) }}"
}

0 comments on commit 50a2e91

Please sign in to comment.