Hello,
I would like to know if there is any option in GitLab settings or some 3rd party browser plugin to check tick “Make this an internal note” bellow comment by default?
The point is that all coments by default are only internal.
Grega
Hello,
I would like to know if there is any option in GitLab settings or some 3rd party browser plugin to check tick “Make this an internal note” bellow comment by default?
The point is that all coments by default are only internal.
Grega
I came across the same problem and solved it by writing a custom TamperMonkey userscript that checks automatically if the comment is marked as an internal note (replace example.com
with the actual domain of your Gitlab instance). It’s not ideal that this cannot be configured but it’s better than unintentionally sending out internal comments to external parties.
// ==UserScript==
// @name Gitlab-Internal-Note-Default
// @namespace https://yahe.sh/
// @version 0.1
// @description This userscript makes sure that Gitlab comments are marked as internal notes by default.
// @author Yahe <hello@yahe.sh>
// @match https://example.com/*/*/-/issues/*
// @icon https://example.com/favicon.ico
// @run-at document-idle
// @grant none
// ==/UserScript==
(function() {
'use strict';
if (null === document.querySelector("[data-track-label=add_internal_note_button]")) {
document.querySelector("[data-testid=internal-note-checkbox]")?.click();
}
})();