Sync and Promote a repository created via Repository Autodiscovery
Merge pull request #931 from kbidarkar/automate-repo-discovery

Tried, seems working, looks good.