mattermost-community / mattermost-plugin-bitbucket

Mattermost plugin for Bitbucket
Apache License 2.0
6 stars 16 forks source link

Bitbucket Server: Modularize usage of Bitbucket client to support both Bitbucket Cloud and Server #124

Open mickmister opened 9 months ago

mickmister commented 9 months ago

This ticket is related to both the API client task https://github.com/mattermost/mattermost-plugin-bitbucket/issues/121 and webhook processor task https://github.com/mattermost/mattermost-plugin-bitbucket/issues/122. Essentially the task here is to make common interfaces for the API client and webhook processor for Bitbucket Cloud and Server.

An example of a similar implementation can be found in the Jira plugin, which implements a common interface for Jira Cloud and Jira Server https://github.com/mattermost/mattermost-plugin-jira/blob/6109662e63375f22a332d0ce08bd0a6bcf3b7535/server/client.go#L33