mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
04063d664b
* fix bin folder and workflows as far its possible cleanup of dockerfile changed paths of scripts add lock file fix working directory for workflows fix windows bin fix travis (is travis used anyway?) fix package refs remove pnpm-lock file in root as these conflicts with the docker volume setup optimize comments use install again refactor prod image call to run fix --workspace can only be used inside a workspace correct comment try fix pipeline try fix pipeline for upgrade-from-latest-release install all deps smaller adjustments save update dockerfile remove workspace command fix run test command start repair latest release workflow start repair latest release workflow start repair latest release workflow further repairs * remove test plugin from docker compose
20 lines
671 B
JavaScript
20 lines
671 B
JavaScript
'use strict';
|
|
|
|
// Returns a list of stale plugins and their authors email
|
|
|
|
const superagent = require('superagent');
|
|
const currentTime = new Date();
|
|
|
|
(async () => {
|
|
const res = await superagent.get('https://static.etherpad.org/plugins.full.json');
|
|
const plugins = JSON.parse(res.text);
|
|
for (const plugin of Object.keys(plugins)) {
|
|
const name = plugins[plugin].data.name;
|
|
const date = new Date(plugins[plugin].time);
|
|
const diffTime = Math.abs(currentTime - date);
|
|
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
|
if (diffDays > (365 * 2)) {
|
|
console.log(`${name}, ${plugins[plugin].data.maintainers[0].email}`);
|
|
}
|
|
}
|
|
})();
|