gitlab-bta
Version:
Inspired from the GitLab Triage Bot, this bot only use the GitLab API (BTA for Bot Triage Api). So there is some functionnality more difficult to do but other more simple.
11 lines (9 loc) • 342 B
JavaScript
const gitlabAPI = require("../api.js");
module.exports = {
execute: function (resourceType, resource, value) {
return gitlabAPI.put(resourceType + "/" + resource.iid, value);
},
dry: function (resourceType, resource, value) {
console.debug(`Would edit the ${value} of ${resourceType} ${resource.iid}`);
},
};