AlanSun opened 2 years ago
|
|||||
The webhook will post json representation of OneDev event to your url. For instance, for code push event, below object will be posted as json: And for build event, below object will be posted: |
|||||
Thanks for your answer. I have tested it and I got this response,
I have some questions,1. Why the user is null, 2. Can I get the latest commit message? |
|||||
User is null as this type of event is not triggered by user explicitly on web UI. To get the commit message, you may get the commit object via RESTful api: https://code.onedev.io/help/api/io.onedev.server.rest.RepositoryResource/getCommit |
|||||
Robin Shen changed state to 'Closed' 2 years ago
|
Type |
Question
|
Priority |
Normal
|
Assignee |
Issue Votes (0)
Can webhook take parameters? In other words, what can I get out of a webhook. I would like to receive push messages so that I can tell if a build should be triggered. thanks