Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / server / event-listeners / repo-rename-detected-listener.js
blob96c115f766c84c01f895c31d26dac6cb3bc94078
1 'use strict';
3 var env = require('gitter-web-env');
4 var logger = env.logger;
5 var appEvents = require('gitter-web-appevents');
7 var installed = false;
8 exports.install = function() {
9 if (installed) return;
10 installed = true;
12 appEvents.onRepoRenameDetected(function(oldFullName, newFullName) {
13 logger.warn('Manual repo rename required', { oldName: oldFullName, newName: newFullName });
14 });