How to "build all branches except master, plus all pull requests"?
Right now I'm working on a single-repository Github project (nobody bothers to forks it). I setup one Appveyor project to build master branch only (and setup Github to not send PR notifications to the webhook) since I want to keep the build history "clean" (like how https://dolphin-emu.org/download/ only lists merges/commits, not pull requests).
Now I'm trying to setup another project to build all branch pushes, as well as all PRs (currently they go to master), but *not* commits to master. If I exclude "master" branch, all pull requests are excluded as well. How do I achieve my goal? (build all branches except master, plus all pull requests)
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
1 Posted by Ilya Finkelshte... on 06 Apr, 2018 05:13 PM
Unfortunately it is not possible right now. If you do not filter out branches, commits to the
master
will be built, but if you disablepush
in webhook, it will affect all branches.What is the intention of this? If you do not care how clean build history is for this another project, but only need to free up builds queue, you can do the following:
with it,
master
non-PR builds will exit with success immediately.If you care about clean history in this another project, you can also add script which will check couple of previous builds, and if it found finished
master
non-PR build, delete it. It all possible with AppVeyor REST API. We can help with scripting if you decide to go this direction.Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 AM.