You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing the following issue when trying to update pull request description in github. We are using pull request template for the description and I am trying to add JIRA ticket id to the description. All goes well until I try to upload it back to the Github by using following command:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
I am facing the following issue when trying to update pull request description in github. We are using pull request template for the description and I am trying to add JIRA ticket id to the description. All goes well until I try to upload it back to the Github by using following command:
curl -v --trace-ascii -L -X PATCH -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }} " -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/${repo_name}/pulls/4210 -d "{"body":"${BODY}"}"
Variable BODY contains:
"# PR Description\r\n\r\n> ToDo (PR author): replace this line with a description that helps reviewers in reviewing your PR\r\n\r\n## Checklists\r\n\r\n- [ ] PR author: changelog is up to date ([How to write a changelog entry?]) [ ] PR author: this PR is linked to the correct AOSP ticket\r\n\r\n## Further checks\r\n\r\nHint: For Pull Request Reviews of the following artifacts, use the linked review checklists.\r\nSee special (https://github.com/PROJECT/aos/blob/develop/CONTRIBUTING.md#safety--security) for Security and Safety relevant artifacts.\r\n\r\n- SW Requirements\r\n-](https://github.com/PROJECT/aos/blob/develop/CONTRIBUTING.md#swe1-software-requirement-analysis)%5Cr%5Cn-) SW Architecture\r\n-](https://github.com/PROJECT/aos/blob/develop/CONTRIBUTING.md#swe2-software-architectural-design)%5Cr%5Cn-) SW Detailed Design\r\n-](https://github.com/PROJECT/aos/blob/develop/CONTRIBUTING.md#sw-detailed-design-review-criteria)%5Cr%5Cn-) Code\r\n-](https://github.com/PROJECT/aos/blob/develop/CONTRIBUTING.md#swe4-code-review)%5Cr%5Cn-) SW Unit verification, Integration & Qualification Tests\r\n](https://github.com/PROJECT/aos/blob/develop/CONTRIBUTING.md#test-specifications-unit-integration--qualification-test)%5Cr%5Cn)
I am getting following error:
"message": "Problems parsing JSON"
What I am doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions