Comments (3)
Bash probably transforms escaped \n
to real \n
when payload string was passed to submit_pr
. That's why I don't like strings in Bash. We need to setup unit tests and CI for it with curl
, git
, and hub
mocked.
from auto-maintenance.
Hmm - seems that JSON does not like the newline characters in the body of the PR message:
{"title":"Synchronize files from linux-system-roles/template",
"base":"master",
"head":"lsr-template-sync",
"body":"This PR propagates files from [linux-system-roles/template](https://gith
ub.com/linux-system-roles/template) which should be in sync across [linux-system
-roles](https://github.com/linux-system-roles) repos. In case of changing affect
ed files via pushing to this PR, please do not forget also to push the changes t
o [linux-system-roles/template](https://github.com/linux-system-roles/template)
repo.
Revision: [`448ff39c16f171b7f09ff5a21e62340add304d55`](https://github.com/linux-
system-roles/template/tree/448ff39c16f171b7f09ff5a21e62340add304d55)
CC: @i386x, @pcahyna, @richm"}
feed this to jq:
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 8, column 29
remove the newlines from the "body" field:
{"title":"Synchronize files from linux-system-roles/template",
"base":"master",
"head":"lsr-template-sync",
"body":"This PR propagates files from [linux-system-roles/template](https://gith
ub.com/linux-system-roles/template) which should be in sync across [linux-system
-roles](https://github.com/linux-system-roles) repos. In case of changing affect
ed files via pushing to this PR, please do not forget also to push the changes t
o [linux-system-roles/template](https://github.com/linux-system-roles/template)
repo. Revision: [`448ff39c16f171b7f09ff5a21e62340add304d55`](https://github.com/
linux-system-roles/template/tree/448ff39c16f171b7f09ff5a21e62340add304d55) CC: @
i386x, @pcahyna, @richm"}
feed this to jq
{
"title": "Synchronize files from linux-system-roles/template",
"base": "master",
"head": "lsr-template-sync",
"body": "This PR propagates files from [linux-system-roles/template](https://github.com/linux-system-roles/template) which should be in sync across [linux-system-roles](https://github.com/linux-system-roles) repos. In case of changing affected files via pushing to this PR, please do not forget also to push the changes to [linux-system-roles/template](https://github.com/linux-system-roles/template) repo. Revision: [`448ff39c16f171b7f09ff5a21e62340add304d55`](https://github.com/linux-system-roles/template/tree/448ff39c16f171b7f09ff5a21e62340add304d55) CC: @i386x, @pcahyna, @richm"
}
I probably broke this when I added support for hub
to the sync script. That is, I probably broke the newline escaping.
from auto-maintenance.
obsolete since we use tox-lsr now
from auto-maintenance.
Related Issues (15)
- Consider adding CI with 'shellcheck' HOT 1
- update_vendored_collection does not update Release field in spec file
- [packit] Propose downstream failed for release 1.34.2 HOT 2
- [packit] Propose downstream failed for release 1.34.5
- [packit] Propose downstream problems with 1.35.1 HOT 4
- [packit] Propose downstream failed for release 1.35.1
- Provide more opinionated guidance for changelog HOT 4
- [packit] Propose downstream failed for release 1.35.2 HOT 19
- [packit] Propose downstream failed for release 1.36.0 HOT 4
- [packit] Propose downstream failed for release 1.36.1 HOT 1
- [packit] Propose downstream failed for release 1.36.2 HOT 8
- [packit] Propose downstream failed for release 1.38.1
- lsr_role2collection.py does not convert the legacy role path if the role is not the one to be converted. HOT 2
- The test_copy_tree_with_replace unittest checks the `roles:` incorrectly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-maintenance.