How to propagate data cross-plugin? I.e. from Hook to Merge-check

I want to be able to either notify or propagate data somehow from a hook to a merge-check. Maybe the merge-check can introspect the state of the hook?

In particular I want the processing done on a post-receive hook be able to inform the merge-check.

What's the best way to do this without combining the two plugins?

 

use-case: post-receive hook parses "core-reviewers" which are required for specific files touched, but they're not repository or project wide, so needs to be on an ad-hoc post-receive basis and enforced by the merge-check plugin.

1 answer

0 votes
Gonchik Tsymzhitov Community Champion Oct 20, 2017

I have own plugin hence I can check full cycle, I mean pre-receive, merge and post-receive.  like this one 

https://community.atlassian.com/t5/Bitbucket-questions/How-to-check-on-preceive-hook-merge-commit/qaq-p/645183/jump-to/first-unread-message

 

As I understand do you want fix your use case via one own custom plugin, is that correct?

 

 

Thanks for clarify.

 

Cheers, 

Gonchik Tsymzhitov

No, I want to propagate data from one plugin to another, so two plugins. I want the receive hook to be able to inform a separate merge-check plugin.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

683 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot