# Further automation of CompatHelper

**URL:** <https://discourse.julialang.org/t/further-automation-of-compathelper/101668>\
**Category:** New to Julia\
**Tags:** question, compathelper\
**Created:** [July 16, 2023, 1:48am UTC](https://discourse.julialang.org/t/further-automation-of-compathelper/101668 "2023-07-16T01:48:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AkchurinDA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/akchurinda/32/49367_2.png) [@AkchurinDA](https://discourse.julialang.org/u/AkchurinDA)\
**Post date:** [July 16, 2023, 1:48am UTC](https://discourse.julialang.org/t/further-automation-of-compathelper/101668/1 "2023-07-16T01:48:25Z")

</div>

Is there a way to make CompatHelper to automatically merge the branches it creates into the main branch after making sure that they pass the status check?  
My current .yml file for CompatHelper is:

```julia
name: CompatHelper
on:
  schedule:
    # Run at noon:
    - cron: "0 12 * * *"
    # Run at midnight:
    - cron: "0 0 * * *"
jobs:
  CompatHelper:
    runs-on: ubuntu-latest
    steps:
      - name: Adding CompatHelper package
        run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
      - name: Running CompatHelper package
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
        run: julia -e 'using CompatHelper; CompatHelper.main()'

```

---

<div class="post-metadata">

**Author:** ![algunion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/algunion/32/51630_2.png) [@algunion](https://discourse.julialang.org/u/algunion)\
**Post date:** [July 18, 2023, 9:19pm UTC](https://discourse.julialang.org/t/further-automation-of-compathelper/101668/2 "2023-07-18T21:19:24Z")

</div>

I think you need to do some `branch` settings for this kind of workflow to work - and that is not a Julia-specific workflow.

You might find this as a good start: [Automatically merging a pull request - GitHub Docs](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request)

I didn’t perform this setup myself - so, if there is someone who successfully did this please share your experience here.
