@atomist/automation-client
Version:
Atomist API for software low-level client
21 lines • 585 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function isCommandIncoming(event) {
return !!event.command;
}
exports.isCommandIncoming = isCommandIncoming;
function isEventIncoming(event) {
return !!event.data;
}
exports.isEventIncoming = isEventIncoming;
function workspaceId(event) {
if (isCommandIncoming(event)) {
return event.team.id;
}
else if (isEventIncoming(event)) {
return event.extensions.team_id;
}
return undefined;
}
exports.workspaceId = workspaceId;
//# sourceMappingURL=RequestProcessor.js.map