[feedhenry-dev] Handy mr commands for updating all apb repos

David Martin davmarti at redhat.com
Thu Dec 7 10:10:49 UTC 2017

For future handiness,

If you've already run 'mr register' in each of the cloned apb repos (e.g
https://github.com/feedhenry/unifiedpush-apb), here's some commands to
update the same file in each repo, and create a PR.
In this case, it was updating the apb tools image name.

# Checkout master, update it, then checkout a new branch
mr run git checkout master
mr run git pull origin master
mr run git checkout -b update-apb-tools-image

# Replace the image name in the Makefile
mr run sed -i
's/ansibleplaybookbundle\/apb/ansibleplaybookbundle\/apb-tools/' Makefile

# Add, Commit and push
mr run git add Makefile
mr run git commit -m "Update the apb image to use apb-tools"
mr run git push origin update-apb-tools-image

# Create the pull requests
mr run hub pull-request -b feedhenry:master -m "Update the apb image to use

[1] https://myrepos.branchable.com/
[2[ https://github.com/github/hub
David Martin
Red Hat Mobile
Twitter: @irldavem
IRC: @irldavem (feedhenry, mobile-internal)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/feedhenry-dev/attachments/20171207/9aac2ae9/attachment.htm>

More information about the feedhenry-dev mailing list