jenkinsci / bitbucket-branch-source-plugin

Bitbucket Branch Source Plugin
https://plugins.jenkins.io/cloudbees-bitbucket-branch-source
MIT License
216 stars 353 forks source link

Fix backward compatibility of PullRequestSCMRevision #818

Closed andrey-fomin closed 7 months ago

andrey-fomin commented 7 months ago

Method getPull is used in some private plugins.

796 changed signature of this method.

Now signature is returned back. See also #817.

Your checklist for this pull request

rsandell commented 7 months ago

Thanks for the alternative approach, the small risk with this approach is that potentially some places might already have adapted to the new signature that is already in a couple of releases. And now it would be changed back again. So I think my approach is slightly safer.

basil commented 7 months ago

Yes safer in the short-term, but less maintainable in the long term since the bridge method injector is some complicated magic and only used in a handful of plugins. No strong preference, but I can see the wisdom in biting the bullet now with this approach (and dealing with any fallout) in order to avoid the long-term dependency on the bridge method injector.

andrey-fomin commented 7 months ago

817 was merges. So closing this one.