For my personal use, i wrote a small WordPress plugin that allows me to embed a link to a Gitlab repository, a list of commits and a link to the releases of that project in a WP post.
Example (linebreaks added to shortcode for readability):
[gitlab-show-project url="https://tk-sls.de/gitlab" project_id=43 max=3 author="none" releases="latest"]
Output:
Project information not readable.
Developer notes:
- The plugin is developed for and tested with the most recent WordPress version (5.2.8 at the time of writing). I neither develop nor test using older releases of WordPress.
- The appearance can be customized using CSS; see styles.css for details.
- The plugin does not store login credentials or access tokens; support for non-public repositories (that would require login) is not on my roadmap.
- The plugin is translated to English and German, contributions are welcome; see also linuxfoo-gitlab.pot.
This article is part of series "WordPress":