title: Automerge to another branch after a successfull build
body: <p>Every monday, our team merges the dev-Branch to a "main"-branch, which is used by our test-team for testing purposes. You could say, that every monday our main branch has exactly the same files as our dev branch.</p>
  
  <p>I am thinking of automating this task. I would like to create a build definition. The definition will run every sunday, build my dev-Branch and if it succeeds, it will automatically merge all changes made during that week to the main-branch.</p>
  
  <p>I found a script: <a href="https://geekygulati.com/2013/02/17/automerging-in-tfs/" rel="nofollow">https://geekygulati.com/2013/02/17/automerging-in-tfs/</a> but it's not designed for TFS-build script, more for independent systems.</p>
  
  <p>So I would like to know, if there is any easy way with the TFS, I am not a great expert. Any suggestions on how to do it? I am sure there are alot of ways to achieve something like that, I would like to know, how you would do it?</p>