Build only master and PRs

Mingus's Avatar

Mingus

Oct 21, 2016 @ 07:35 PM

Hi I'm working with a github repo, and want to trigger builds wenever there is a merge to master OR a pull request is created/ updated. Is there a way to do this without triggering a build on every change on branches without PRs?

Thanks!

  1. 1 Posted by Ilya Finkelshte... on Oct 22, 2016 @ 12:03 AM

    Ilya Finkelshteyn's Avatar

    Hello,

    I believe that this setting should help as described here

    branches:
      only:
        - master
    

    Thanks!

  2. 2 Posted by Mingus on Oct 24, 2016 @ 10:03 PM

    Mingus's Avatar

    Thanks!, I thought that setting wouldn't trigger builds on PR changes.

    Thanks again!

  3. Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:09 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac