You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
395 B
19 lines
395 B
"use strict";
|
|
|
|
module.exports = function (params, processor) {
|
|
return {
|
|
process: function () {
|
|
if (params.owner && params.owner != processor.context.owner) {
|
|
return processor.done();
|
|
}
|
|
|
|
if (params.branch && params.branch != processor.context.branch) {
|
|
return processor.done();
|
|
}
|
|
|
|
processor.processTask(params.task, function () {
|
|
processor.done();
|
|
});
|
|
}
|
|
};
|
|
};
|
|
|