How do I know if a build notification is for a pull request or not?

byron's Avatar

byron

02 Sep, 2014 10:14 PM

I like how I can see what builds result from pull requests in the AppVeyor UI. And I love how I can get a webhook POST when each build completes, whether it is a pull request or not. However, I don't see a way on the webhook notification payload to know if it is a pull request build or normal build. I would like to be able to send a differently formatted notification for pull requests. Can you please add some data to the webhook payload when the build is for a pull request?

  1. Support Staff 1 Posted by Feodor Fitsner on 02 Sep, 2014 10:18 PM

    Feodor Fitsner's Avatar

    No problem - will do that and deploy today.

  2. 2 Posted by byron on 02 Sep, 2014 10:19 PM

    byron's Avatar

    Wow. Can you please let me know when it's up? I'm working on that right now.

  3. Support Staff 3 Posted by Feodor Fitsner on 02 Sep, 2014 10:20 PM

    Feodor Fitsner's Avatar

    Sure!

  4. Support Staff 4 Posted by Feodor Fitsner on 03 Sep, 2014 03:12 AM

    Feodor Fitsner's Avatar

    Deployed!

    Added two more fields into notifications model/payload: http://www.appveyor.com/docs/notifications#webhooks

    isPullRequest
    pullRequestId
    
  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:47 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

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM