tibdex / autorebase

🐼 GitHub App to make the Rebase Workflow enjoyable and keep master always green
MIT License
160 stars 21 forks source link

Working with CI #15

Closed Nigui closed 5 years ago

Nigui commented 6 years ago

I'm currently using autorebase in one of my projects building with CircleCI.

The problem is that autorebase (through its dependencies) creates temporary branch in order to rebase. During the build, Circle tries to checkout this branch, and fails because it has been already removed.

My point is : can we imagine a workaround which lets us to choose the temporary branch name in order to be able to ignore it on CI tools ?

Today, temporary branch name seems to be based on these two lines :

tibdex commented 6 years ago

Hi Guillaume, I use CircleCI too in most of my projects and I always enable the option to only build pull requests. Then CircleCI completely ignores the temporary branches created by Autorebase dependencies. Have you considered enabling this option too?

zoetrope69 commented 5 years ago

@Nigui @tibdex Hi both, we had this problem and just so you're aware you can also ignore branches in CircleCI for example:

filters:
  branches:
    ignore:
      # ignore branches created by autorebase https://github.com/tibdex/autorebase
      - /rebase-pull-request-.*/
      - /cherry-pick-rebase-pull-request-.*/

https://circleci.com/docs/2.0/configuration-reference/#branches