diff --git a/config-example.php b/config-example.php index 4bac9e5..e49f84b 100644 --- a/config-example.php +++ b/config-example.php @@ -1,49 +1,53 @@ ClickUp bot # Copyright (C) 2022 Valerio Bozzolan, contributors # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . // ClickUp Team ID - you can find it from your home URL // Example: "123" if your home URL is "https://app.clickup.com/123/v/l/li/456456456456" define( 'CLICKUP_TEAM_ID', 123 ); // obtained after registering the webhook using register-webhook.php define( 'CLICKUP_REGISTERED_WEBHOOK_ID', '123-123-123-123-123' ); // https://app.clickup.com/36232585/settings/apps define( 'CLICKUP_API_TOKEN', 'pk_123_ASD123' ); // ClickUp cache (connecting its stuff to Phabricator, avoid creating duplicate tasks, etc.) define( 'CLICKUP_CACHE_JSON_FILE', __DIR__ . '/data/cache.json' ); // ClickUp cache pretty print define( 'CLICKUP_CACHE_JSON_PRETTY', true ); // Phabricator home URL (to call API) // MUST end with a slash define( 'PHABRICATOR_URL', 'https://sviluppo.erinformatica.it/' ); // path to the Arcanist library of your Phabricator installation (to call APIs) define( 'PHABRICATOR_ARCANIST_PATH', '/var/www/phabricator/arcanist/support/init/init-script.php' ); // Phabricator Conduit API token // at the moment it's in use the one from the user er.clickup.bot in ER Phabricator // https://sviluppo.erinformatica.it/p/er.clickup.bot/ // To generate a new one: // https://sviluppo.erinformatica.it/conduit/token/edit/15/ define( 'PHABRICATOR_CONDUIT_API_TOKEN', 'api-asd123' ); // not supported already :D sorry define( 'CLICKUP_VALIDATE_WEBHOOK', false ); + +// homepage of the project +// just to know where you can send bugs +define( 'REPOSITORY_URL', 'https://gitpull.it/source/clickup-phabricator-bot/' ); diff --git a/public/autoload.php b/public/autoload.php new file mode 100644 index 0000000..ebbe400 --- /dev/null +++ b/public/autoload.php @@ -0,0 +1,19 @@ + ClickUp bot +# Copyright (C) 2022 Valerio Bozzolan, contributors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +// just load the autoload from the parent directory +require realpath( __DIR__ ) . '/../autoload.php'; diff --git a/clickup-webhook-receiver/index.php b/public/clickup-webhook/index.php similarity index 100% rename from clickup-webhook-receiver/index.php rename to public/clickup-webhook/index.php diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..6b447c2 --- /dev/null +++ b/public/index.php @@ -0,0 +1,35 @@ + ClickUp bot +# Copyright (C) 2023 Valerio Bozzolan, contributors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +require realpath( __DIR__ ) . '/../autoload.php'; +?> + + + + ClickUp Phabricator/Phorge bot + + + +

ClickUp Phabricator/Phorge bot

+

Welcome in the bot able to keep in sync the proprietary ClickUp platform, together with Phorge or Phabricator.

+

Thank you for your love to Phabricator and Phorge, that are amazing libre software for libre developers.

+

+ Source code:
+ +

+ +