How to prevent builds on creating of a Pull Request?

rgelb's Avatar

rgelb

29 Jun, 2023 12:41 AM

Our working branch is develop. Here is my flow.

  1. Create feature branch from develop. feature/sc-0000-do-stuff. Make changes to it locally, then push changes to bitbucket.
  2. Create Pull Request to merge changes back to develop.
  3. Some reviews, then merges the feature/sc-0000-do-stuff into develop.

I want AppVeyor to build on step 3. And it does. But it also builds on step 2 - upon creation of a pull request.

How can I stop AppVeyor from building upon creation of a pull request?

I've compared AppVeyor setting for my project with another project that doesn't build upon creation of a pull request and I can't find any differences or spot anything obvious.

What am I missing?

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Jun, 2023 01:05 AM

    Feodor Fitsner's Avatar

    Building pull requests could be disabled on "General" tab of project settings - see screenshot.

  2. 2 Posted by rgelb on 29 Jun, 2023 04:18 PM

    rgelb's Avatar

    @Feodor That did the trick. Thank you.

    This bring me to a question.
    The other project that I initially compared my problem project to... it doesn't have the Do not build on "Pull request" events checked, yet it doesn't build on creation of a PR. Why is that? (not that I want it to - just curious).

  3. Support Staff 3 Posted by Feodor Fitsner on 29 Jun, 2023 10:05 PM

    Feodor Fitsner's Avatar

    I guess it could be disabled on webhook level on Bitbucket?

  4. Feodor Fitsner closed this discussion on 30 Aug, 2023 09:02 PM.

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