GitHub Pull Requests - Multiple Projects In A Solution

bterry18's Avatar

bterry18

10 Mar, 2022 04:52 PM

Is there a way to make appveyor build based on the merge commit instead of the head commit for pull requests?
If I have two appveyor.yml files one for "Project A" and one for "Project B" I can setup the "only_commits: files:" to only start the build for the projects that are modified.
If I create a pull request on GitHub with Project A modifed it will run the build for Project A. If I add a commit with Project B modified to that PR it will build Project B but not show the status for Project A as a status check anymore. Is it possible to have the appveyor build check the merge commit instead of the head commit for these commit filters so that both A and B would be built for the last commit (since the PR modified both)?

  1. Support Staff 1 Posted by Feodor Fitsner on 10 Mar, 2022 05:29 PM

    Feodor Fitsner's Avatar

    You can set "Custom commit status context" on General tab of project settings to have project-specific build checks.

  2. 2 Posted by bterry18 on 10 Mar, 2022 06:00 PM

    bterry18's Avatar

    I have already setup the "Custom commit status context" for both builds so that the status checks show. The issue is that if I had project A, B, C in a single GitHub repository and the PR only modified A and B I would only like the build/tests for A and B to run not C. Currently the only way I can think to do that is to use:
    "only_commits:
     files: ProjectA/"
    and another for B
    but this seems to only work for the last commit of the PR. The only solution I think that is possible for me currently is to setup a single CI build that runs tests for all of the projects (A,B,C) and then add a build per project that deploys based on the commits so that only A and B would get deployed when the PR is squashed and merged into the main branch.

  3. 3 Posted by bterry18 on 10 Mar, 2022 06:59 PM

    bterry18's Avatar

    This issue from 2017 seems similar with what we are running into / trying to accomplish: https://github.com/appveyor/ci/issues/1923#issuecomment-537281418

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

13 Apr, 2024 04:43 PM
12 Apr, 2024 04:56 PM
11 Apr, 2024 11:16 PM
09 Apr, 2024 10:59 PM
08 Apr, 2024 07:50 AM

 

06 Apr, 2024 04:06 AM
05 Apr, 2024 01:26 PM
05 Apr, 2024 10:39 AM
04 Apr, 2024 03:41 PM
31 Mar, 2024 05:51 PM
30 Mar, 2024 01:59 PM