Is there an API in GitLab for a project’s integrations?
I’m having trouble finding it in the API docs.
My particular interest is with the JIRA integration. What I’m looking to do is simply get the JIRA project code via an API request. I understand that integrations aren’t a regular component of GitLab and thus might not be supported via an API. But I’m wondering if there’s any way to do this.
As an area of last resort I can try and hack the GitLab UI’s responses for the JIRA integration page and “scrape” the project code out of the HTML. But I’d like to avoid that.
I want to mention that I’m well into building a sort of “extended” GitLab Dashboard and API. The short story is that this returns the same data as the GitLab API but with extensions I call “derived properties” that are computed by " plugins ".
Plugins, in essence just add fields to the standard gitlab responses for things like projects, commits, pipelines, etc. So for example, I might want some data returned from the project’s
pom.xml (or `package.json’).
A plugin is thus somewhat like the IDE “framework” support in that it understands something about the usage. I might have a JIRA plugin that goes and assembles JIRA issues related to the project code, or SonarQube plugin that returns the code coverage of level of project smells.
In some some the plugin “discovers” the usage of the framework from the content of GitLab (source files, or integrations) and then makes requests to assemble the data.
In addition to adding this sorta extension to the GitLab models, it also has code to push these as documents to Elastic so one can build customized Kibana dashboards.
I’m hoping to get my company to allow me to contribute this to open source.