Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #the winning command
- curl http://<server>:<port>/rest/api/1.0/projects/<project>/repos/<repo>/pull-requests -H "Authorization: Basic <blob>" -H 'Content-Type: application/json' --data '{
- "title": "<title>",
- "state": "OPEN",
- "open": "true",
- "closed": false,
- "fromRef": {
- "id": "refs/heads/<source branch>",
- "repository": {
- "slug": "<repo>",
- "name": null,
- "project": {
- "key": "<project>"
- }
- }
- },
- "toRef": {
- "id": "refs/heads/<dest branch>",
- "repository": {
- "slug": "<repo>",
- "name": null,
- "project": {
- "key": "<project>"
- }
- }
- },
- "locked": false,
- "reviewers": [
- {
- "user": {
- "name": "<reviewer1>"
- }
- }
- ]
- }'
- # I do something similar using python string template substitution
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement