Skip to content

Commit

Permalink
Merge PR ceph#25020 into master
Browse files Browse the repository at this point in the history
* refs/pull/25020/head:
	script/ceph-backport.sh: adjust to change in github API

Reviewed-by: Patrick Donnelly <[email protected]>
  • Loading branch information
batrick committed Nov 27, 2018
2 parents 55e2ee3 + bffbf80 commit c7607f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/ceph-backport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ git push -u origin wip-$issue-$milestone
number=$(curl --silent --data-binary '{"title":"'"$title"'","head":"'$github_user':wip-'$issue-$milestone'","base":"'$target_branch'","body":"http://tracker.ceph.com/issues/'$issue'"}' 'https://api.github.com/repos/ceph/ceph/pulls?access_token='$github_token | jq .number)
echo "Opened pull request $number"

component=core ; curl --silent --data-binary '{"milestone":"'$milestone_number'","assignee":"'$github_user'","labels":["bug fix","'$component'"]}' 'https://api.github.com/repos/ceph/ceph/issues/'$number'?access_token='$github_token
component=core ; curl --silent --data-binary '{"milestone":'$milestone_number',"assignee":"'$github_user'","labels":["bug fix","'$component'"]}' 'https://api.github.com/repos/ceph/ceph/issues/'$number'?access_token='$github_token
firefox https://github.com/ceph/ceph/pull/$number
redmine_status=2 # In Progress
curl --verbose -X PUT --header 'Content-type: application/json' --data-binary '{"issue":{"description":"https://github.com/ceph/ceph/pull/'$number'","status_id":'$redmine_status',"assigned_to_id":'$redmine_user_id'}}' 'http://tracker.ceph.com/issues/'$issue.json?key=$redmine_key
Expand Down

0 comments on commit c7607f6

Please sign in to comment.