Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

WebHook with file changes

Taras Danylchuk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 10, 2018

as for standart webhook - https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash#Eventpayload-repositoryevents

- it does not provide list of changed files - but just refs.

Questions:

1. Was it done by purpose?

2. Will this hook request include changed files information in future?

1 answer

1 accepted

4 votes
Answer accepted
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 12, 2018

Was it done by purpose?

Yes, the webhook payload has intentionally kept lean for a number of reasons:

  • getting a list of commits or changed files involves running one or more git commands, which adds overhead to the sending of webhooks.
  • In a single push, many commits can be added, and many files could be changed, which would result in very large payloads
  • Many webhook listeners are only interested in learning that a branch has changed, in which case the added processing is wasted effort
  • It's hard to predict what information a webhook listener is interested in (commits/commits + paths/commits + paths + diffs per commit/diff per updated branch?)

With the information in the webhook payload, you should be able to use the REST API to obtain the information you're interested in.

 Will this hook request include changed files information in future?

No, for the reasons described above.

mattmadhavan2
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2018

Hello,

I am trying to extend a Monitor for the Spring Config server refresh. I do not want to refresh all the applications! I need to know which files changed! 

Can you please let me know how do I find out which config file changed so that I can only refresh only the application that the config file from belongs too.

 

We have 50 Microservices! I do not

Taras Danylchuk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events