Go to file
Robert Hunt 5b7ea782c4
Move the icons to the comment toolbar of the textarea
Moving the icons to the toolbar means they are always displayed for
easier use, as well as not getting in the way when you try to
continue editing longer text in the textarea

This change also updates the code to dynamically add these
buttons to any new textarea rather than waiting for the click

As a nice addition while restyling, it also now makes use of
the existing GitLab tooltips system
2021-02-11 16:24:33 +00:00
_locales/en Clean unused messages 2020-05-22 10:54:17 +02:00
icons Add same icon as homepage 2020-05-22 10:54:09 +02:00
src/inject Move the icons to the comment toolbar of the textarea 2021-02-11 16:24:33 +00:00
.gitignore feat: prototype 2020-05-06 11:52:05 +02:00
demo.gif Move the icons to the comment toolbar of the textarea 2021-02-11 16:24:33 +00:00
manifest.json Revert "Merge branch 'vs-firefox-support' into 'master'" 2020-06-05 14:21:47 +00:00
README.md feat: bundle and serve font awesome icons 2020-08-03 09:33:23 +02:00

Conventional Comments button

This is a tiny extension that adds a conventional comment button to GitLab file explorer comments, allowing to quickly leave a structured semantic comment during your MR reviews!

Demo

Demo

How to install

First, clone this repo git clone git@gitlab.com:conventionalcomments/conventional-comments-button.git and then see below for browser specific instructions.

Chrome

Recently chrome disallowed to install packed crx extension that are not listed on the Chrome Store, so to install this

  • On Chrome: Menu
    • More Tools
      • Extensions
  • In the Extension page: Load unpacked and select the cloned repository

Firefox

  • On Firefox: enter about:debugging#/runtime/this-firefox into the address bar
  • In the Extension page: Load Temporary Add-on... and select any file within the cloned repository

How to update

  • git pull

Chrome

  • On Chrome: Menu
    • More Tools
      • Extensions
  • In the Extension page find conventional comments button and hit the refresh button

Firefox

  • On Firefox: enter about:debugging#/runtime/this-firefox into the address bar
  • In the Extension page find conventional comments button and hit the reload button

How to run it on a self-hosted instance

  • Open manifest.json
  • Add your domain to permissions and content_scripts -> matches
  • Open the browser and install or update the extension

Credits

This project bundles some of the icon coming from font-awesome icons as SVG