From a296ba5b18487d312acca2513d461a210a460fae Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 3 Jan 2016 16:43:13 -0500 Subject: Improve Automatic Actions plugin api --- app/Action/CommentCreation.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'app/Action/CommentCreation.php') diff --git a/app/Action/CommentCreation.php b/app/Action/CommentCreation.php index 73fedc3b..d6ea2074 100644 --- a/app/Action/CommentCreation.php +++ b/app/Action/CommentCreation.php @@ -14,6 +14,17 @@ use Kanboard\Integration\GitlabWebhook; */ class CommentCreation extends Base { + /** + * Get automatic action description + * + * @access public + * @return string + */ + public function getDescription() + { + return t('Create a comment from an external provider'); + } + /** * Get the list of compatible events * @@ -67,9 +78,9 @@ class CommentCreation extends Base { return (bool) $this->comment->create(array( 'reference' => isset($data['reference']) ? $data['reference'] : '', - 'comment' => empty($data['comment']) ? $data['commit_comment'] : $data['comment'], + 'comment' => $data['comment'], 'task_id' => $data['task_id'], - 'user_id' => empty($data['user_id']) ? 0 : $data['user_id'], + 'user_id' => isset($data['user_id']) && $this->projectPermission->isAssignable($this->getProjectId(), $data['user_id']) ? $data['user_id'] : 0, )); } @@ -82,6 +93,6 @@ class CommentCreation extends Base */ public function hasRequiredCondition(array $data) { - return ! empty($data['comment']) || ! empty($data['commit_comment']); + return ! empty($data['comment']); } } -- cgit v1.2.3 From 00e5a4c5b40610ec849567d30f88e3ab8d0720fb Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 6 Jan 2016 21:46:31 -0500 Subject: Move Github Webhook to external plugin See: https://github.com/kanboard/plugin-github-webhook --- ChangeLog | 2 + app/Action/Base.php | 7 +- app/Action/CommentCreation.php | 3 - app/Action/TaskAssignCategoryLabel.php | 6 +- app/Action/TaskAssignUser.php | 2 - app/Action/TaskClose.php | 3 - app/Action/TaskCreation.php | 2 - app/Action/TaskOpen.php | 2 - app/Controller/Webhook.php | 19 - app/Core/Base.php | 1 - app/Core/Event/EventManager.php | 8 - app/Integration/GithubWebhook.php | 380 ------------------ app/Locale/bs_BA/translations.php | 12 - app/Locale/cs_CZ/translations.php | 12 - app/Locale/da_DK/translations.php | 12 - app/Locale/de_DE/translations.php | 12 - app/Locale/es_ES/translations.php | 12 - app/Locale/fi_FI/translations.php | 12 - app/Locale/fr_FR/translations.php | 12 - app/Locale/hu_HU/translations.php | 12 - app/Locale/id_ID/translations.php | 12 - app/Locale/it_IT/translations.php | 12 - app/Locale/ja_JP/translations.php | 12 - app/Locale/nb_NO/translations.php | 12 - app/Locale/nl_NL/translations.php | 12 - app/Locale/pl_PL/translations.php | 12 - app/Locale/pt_BR/translations.php | 12 - app/Locale/pt_PT/translations.php | 12 - app/Locale/ru_RU/translations.php | 12 - app/Locale/sr_Latn_RS/translations.php | 12 - app/Locale/sv_SE/translations.php | 12 - app/Locale/th_TH/translations.php | 12 - app/Locale/tr_TR/translations.php | 12 - app/Locale/zh_CN/translations.php | 12 - app/ServiceProvider/ClassProvider.php | 1 - app/Template/project/integrations.php | 8 +- doc/index.markdown | 3 +- tests/units/Integration/GithubWebhookTest.php | 460 ---------------------- tests/units/fixtures/github_comment_created.json | 187 --------- tests/units/fixtures/github_issue_assigned.json | 196 --------- tests/units/fixtures/github_issue_closed.json | 159 -------- tests/units/fixtures/github_issue_labeled.json | 170 -------- tests/units/fixtures/github_issue_opened.json | 159 -------- tests/units/fixtures/github_issue_reopened.json | 159 -------- tests/units/fixtures/github_issue_unassigned.json | 178 --------- tests/units/fixtures/github_issue_unlabeled.json | 164 -------- tests/units/fixtures/github_push.json | 165 -------- 47 files changed, 10 insertions(+), 2698 deletions(-) delete mode 100644 app/Integration/GithubWebhook.php delete mode 100644 tests/units/Integration/GithubWebhookTest.php delete mode 100644 tests/units/fixtures/github_comment_created.json delete mode 100644 tests/units/fixtures/github_issue_assigned.json delete mode 100644 tests/units/fixtures/github_issue_closed.json delete mode 100644 tests/units/fixtures/github_issue_labeled.json delete mode 100644 tests/units/fixtures/github_issue_opened.json delete mode 100644 tests/units/fixtures/github_issue_reopened.json delete mode 100644 tests/units/fixtures/github_issue_unassigned.json delete mode 100644 tests/units/fixtures/github_issue_unlabeled.json delete mode 100644 tests/units/fixtures/github_push.json (limited to 'app/Action/CommentCreation.php') diff --git a/ChangeLog b/ChangeLog index 25d2cbaa..33539bb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ Breaking changes: * Plugin API changes for Automatic Actions * Automatic Action to close a task doesn't have the column parameter anymore (use the action "Close a task in a specific column") * Action name stored in the database is now the absolute class name +* Core functionalities moved to external plugins: + - Github Webhook: https://github.com/kanboard/plugin-github-webhook New features: diff --git a/app/Action/Base.php b/app/Action/Base.php index febd6cfc..1298aec2 100644 --- a/app/Action/Base.php +++ b/app/Action/Base.php @@ -265,9 +265,12 @@ abstract class Base extends \Kanboard\Core\Base * @param string $event * @param string $description */ - public function addEvent($event, $description) + public function addEvent($event, $description = '') { - $this->eventManager->register($event, $description); + if ($description !== '') { + $this->eventManager->register($event, $description); + } + $this->compatibleEvents[] = $event; return $this; } diff --git a/app/Action/CommentCreation.php b/app/Action/CommentCreation.php index d6ea2074..d7051d4d 100644 --- a/app/Action/CommentCreation.php +++ b/app/Action/CommentCreation.php @@ -3,7 +3,6 @@ namespace Kanboard\Action; use Kanboard\Integration\BitbucketWebhook; -use Kanboard\Integration\GithubWebhook; use Kanboard\Integration\GitlabWebhook; /** @@ -34,8 +33,6 @@ class CommentCreation extends Base public function getCompatibleEvents() { return array( - GithubWebhook::EVENT_ISSUE_COMMENT, - GithubWebhook::EVENT_COMMIT, BitbucketWebhook::EVENT_ISSUE_COMMENT, BitbucketWebhook::EVENT_COMMIT, GitlabWebhook::EVENT_COMMIT, diff --git a/app/Action/TaskAssignCategoryLabel.php b/app/Action/TaskAssignCategoryLabel.php index 8d291e89..95fa116e 100644 --- a/app/Action/TaskAssignCategoryLabel.php +++ b/app/Action/TaskAssignCategoryLabel.php @@ -2,8 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\GithubWebhook; - /** * Set a category automatically according to a label * @@ -31,9 +29,7 @@ class TaskAssignCategoryLabel extends Base */ public function getCompatibleEvents() { - return array( - GithubWebhook::EVENT_ISSUE_LABEL_CHANGE, - ); + return array(); } /** diff --git a/app/Action/TaskAssignUser.php b/app/Action/TaskAssignUser.php index bb3a83c2..0b4b55f5 100644 --- a/app/Action/TaskAssignUser.php +++ b/app/Action/TaskAssignUser.php @@ -2,7 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\GithubWebhook; use Kanboard\Integration\BitbucketWebhook; /** @@ -33,7 +32,6 @@ class TaskAssignUser extends Base public function getCompatibleEvents() { return array( - GithubWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, BitbucketWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, ); } diff --git a/app/Action/TaskClose.php b/app/Action/TaskClose.php index a4b093a4..216d0f17 100644 --- a/app/Action/TaskClose.php +++ b/app/Action/TaskClose.php @@ -3,7 +3,6 @@ namespace Kanboard\Action; use Kanboard\Integration\GitlabWebhook; -use Kanboard\Integration\GithubWebhook; use Kanboard\Integration\BitbucketWebhook; use Kanboard\Model\Task; @@ -35,8 +34,6 @@ class TaskClose extends Base public function getCompatibleEvents() { return array( - GithubWebhook::EVENT_COMMIT, - GithubWebhook::EVENT_ISSUE_CLOSED, GitlabWebhook::EVENT_COMMIT, GitlabWebhook::EVENT_ISSUE_CLOSED, BitbucketWebhook::EVENT_COMMIT, diff --git a/app/Action/TaskCreation.php b/app/Action/TaskCreation.php index 23ff4592..909ee78c 100644 --- a/app/Action/TaskCreation.php +++ b/app/Action/TaskCreation.php @@ -2,7 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\GithubWebhook; use Kanboard\Integration\GitlabWebhook; use Kanboard\Integration\BitbucketWebhook; @@ -34,7 +33,6 @@ class TaskCreation extends Base public function getCompatibleEvents() { return array( - GithubWebhook::EVENT_ISSUE_OPENED, GitlabWebhook::EVENT_ISSUE_OPENED, BitbucketWebhook::EVENT_ISSUE_OPENED, ); diff --git a/app/Action/TaskOpen.php b/app/Action/TaskOpen.php index a1ab622c..5cb626c3 100644 --- a/app/Action/TaskOpen.php +++ b/app/Action/TaskOpen.php @@ -2,7 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\GithubWebhook; use Kanboard\Integration\GitlabWebhook; use Kanboard\Integration\BitbucketWebhook; @@ -34,7 +33,6 @@ class TaskOpen extends Base public function getCompatibleEvents() { return array( - GithubWebhook::EVENT_ISSUE_REOPENED, GitlabWebhook::EVENT_ISSUE_REOPENED, BitbucketWebhook::EVENT_ISSUE_REOPENED, ); diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index a7e9bde4..82e9d635 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -40,25 +40,6 @@ class Webhook extends Base $this->response->text('FAILED'); } - /** - * Handle Github webhooks - * - * @access public - */ - public function github() - { - $this->checkWebhookToken(); - - $this->githubWebhook->setProjectId($this->request->getIntegerParam('project_id')); - - $result = $this->githubWebhook->parsePayload( - $this->request->getHeader('X-Github-Event'), - $this->request->getJson() - ); - - echo $result ? 'PARSED' : 'IGNORED'; - } - /** * Handle Gitlab webhooks * diff --git a/app/Core/Base.php b/app/Core/Base.php index 11a0be68..4d0b3a2c 100644 --- a/app/Core/Base.php +++ b/app/Core/Base.php @@ -46,7 +46,6 @@ use Pimple\Container; * @property \Kanboard\Core\Paginator $paginator * @property \Kanboard\Core\Template $template * @property \Kanboard\Integration\BitbucketWebhook $bitbucketWebhook - * @property \Kanboard\Integration\GithubWebhook $githubWebhook * @property \Kanboard\Integration\GitlabWebhook $gitlabWebhook * @property \Kanboard\Formatter\ProjectGanttFormatter $projectGanttFormatter * @property \Kanboard\Formatter\TaskFilterGanttFormatter $taskFilterGanttFormatter diff --git a/app/Core/Event/EventManager.php b/app/Core/Event/EventManager.php index 8e66cc12..dd70f847 100644 --- a/app/Core/Event/EventManager.php +++ b/app/Core/Event/EventManager.php @@ -3,7 +3,6 @@ namespace Kanboard\Core\Event; use Kanboard\Integration\GitlabWebhook; -use Kanboard\Integration\GithubWebhook; use Kanboard\Integration\BitbucketWebhook; use Kanboard\Model\Task; use Kanboard\Model\TaskLink; @@ -55,13 +54,6 @@ class EventManager Task::EVENT_CLOSE => t('Closing a task'), Task::EVENT_CREATE_UPDATE => t('Task creation or modification'), Task::EVENT_ASSIGNEE_CHANGE => t('Task assignee change'), - GithubWebhook::EVENT_COMMIT => t('Github commit received'), - GithubWebhook::EVENT_ISSUE_OPENED => t('Github issue opened'), - GithubWebhook::EVENT_ISSUE_CLOSED => t('Github issue closed'), - GithubWebhook::EVENT_ISSUE_REOPENED => t('Github issue reopened'), - GithubWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE => t('Github issue assignee change'), - GithubWebhook::EVENT_ISSUE_LABEL_CHANGE => t('Github issue label change'), - GithubWebhook::EVENT_ISSUE_COMMENT => t('Github issue comment created'), GitlabWebhook::EVENT_COMMIT => t('Gitlab commit received'), GitlabWebhook::EVENT_ISSUE_OPENED => t('Gitlab issue opened'), GitlabWebhook::EVENT_ISSUE_REOPENED => t('Gitlab issue reopened'), diff --git a/app/Integration/GithubWebhook.php b/app/Integration/GithubWebhook.php deleted file mode 100644 index cdd2fc48..00000000 --- a/app/Integration/GithubWebhook.php +++ /dev/null @@ -1,380 +0,0 @@ -project_id = $project_id; - } - - /** - * Parse Github events - * - * @access public - * @param string $type Github event type - * @param array $payload Github event - * @return boolean - */ - public function parsePayload($type, array $payload) - { - switch ($type) { - case 'push': - return $this->parsePushEvent($payload); - case 'issues': - return $this->parseIssueEvent($payload); - case 'issue_comment': - return $this->parseCommentIssueEvent($payload); - } - - return false; - } - - /** - * Parse Push events (list of commits) - * - * @access public - * @param array $payload Event data - * @return boolean - */ - public function parsePushEvent(array $payload) - { - foreach ($payload['commits'] as $commit) { - $task_id = $this->task->getTaskIdFromText($commit['message']); - - if (empty($task_id)) { - continue; - } - - $task = $this->taskFinder->getById($task_id); - - if (empty($task)) { - continue; - } - - if ($task['project_id'] != $this->project_id) { - continue; - } - - $this->container['dispatcher']->dispatch( - self::EVENT_COMMIT, - new GenericEvent(array( - 'task_id' => $task_id, - 'commit_message' => $commit['message'], - 'commit_url' => $commit['url'], - 'comment' => $commit['message']."\n\n[".t('Commit made by @%s on Github', $commit['author']['username']).']('.$commit['url'].')' - ) + $task) - ); - } - - return true; - } - - /** - * Parse issue events - * - * @access public - * @param array $payload Event data - * @return boolean - */ - public function parseIssueEvent(array $payload) - { - switch ($payload['action']) { - case 'opened': - return $this->handleIssueOpened($payload['issue']); - case 'closed': - return $this->handleIssueClosed($payload['issue']); - case 'reopened': - return $this->handleIssueReopened($payload['issue']); - case 'assigned': - return $this->handleIssueAssigned($payload['issue']); - case 'unassigned': - return $this->handleIssueUnassigned($payload['issue']); - case 'labeled': - return $this->handleIssueLabeled($payload['issue'], $payload['label']); - case 'unlabeled': - return $this->handleIssueUnlabeled($payload['issue'], $payload['label']); - } - - return false; - } - - /** - * Parse comment issue events - * - * @access public - * @param array $payload Event data - * @return boolean - */ - public function parseCommentIssueEvent(array $payload) - { - $task = $this->taskFinder->getByReference($this->project_id, $payload['issue']['number']); - - if (! empty($task)) { - $user = $this->user->getByUsername($payload['comment']['user']['login']); - - if (! empty($user) && ! $this->projectPermission->isAssignable($this->project_id, $user['id'])) { - $user = array(); - } - - $event = array( - 'project_id' => $this->project_id, - 'reference' => $payload['comment']['id'], - 'comment' => $payload['comment']['body']."\n\n[".t('By @%s on Github', $payload['comment']['user']['login']).']('.$payload['comment']['html_url'].')', - 'user_id' => ! empty($user) ? $user['id'] : 0, - 'task_id' => $task['id'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_COMMENT, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - /** - * Handle new issues - * - * @access public - * @param array $issue Issue data - * @return boolean - */ - public function handleIssueOpened(array $issue) - { - $event = array( - 'project_id' => $this->project_id, - 'reference' => $issue['number'], - 'title' => $issue['title'], - 'description' => $issue['body']."\n\n[".t('Github Issue').']('.$issue['html_url'].')', - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_OPENED, - new GenericEvent($event) - ); - - return true; - } - - /** - * Handle issue closing - * - * @access public - * @param array $issue Issue data - * @return boolean - */ - public function handleIssueClosed(array $issue) - { - $task = $this->taskFinder->getByReference($this->project_id, $issue['number']); - - if (! empty($task)) { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'reference' => $issue['number'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_CLOSED, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - /** - * Handle issue reopened - * - * @access public - * @param array $issue Issue data - * @return boolean - */ - public function handleIssueReopened(array $issue) - { - $task = $this->taskFinder->getByReference($this->project_id, $issue['number']); - - if (! empty($task)) { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'reference' => $issue['number'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_REOPENED, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - /** - * Handle issue assignee change - * - * @access public - * @param array $issue Issue data - * @return boolean - */ - public function handleIssueAssigned(array $issue) - { - $user = $this->user->getByUsername($issue['assignee']['login']); - $task = $this->taskFinder->getByReference($this->project_id, $issue['number']); - - if (! empty($user) && ! empty($task) && $this->projectPermission->isAssignable($this->project_id, $user['id'])) { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'owner_id' => $user['id'], - 'reference' => $issue['number'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_ASSIGNEE_CHANGE, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - /** - * Handle unassigned issue - * - * @access public - * @param array $issue Issue data - * @return boolean - */ - public function handleIssueUnassigned(array $issue) - { - $task = $this->taskFinder->getByReference($this->project_id, $issue['number']); - - if (! empty($task)) { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'owner_id' => 0, - 'reference' => $issue['number'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_ASSIGNEE_CHANGE, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - /** - * Handle labeled issue - * - * @access public - * @param array $issue Issue data - * @param array $label Label data - * @return boolean - */ - public function handleIssueLabeled(array $issue, array $label) - { - $task = $this->taskFinder->getByReference($this->project_id, $issue['number']); - - if (! empty($task)) { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'reference' => $issue['number'], - 'label' => $label['name'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_LABEL_CHANGE, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - /** - * Handle unlabeled issue - * - * @access public - * @param array $issue Issue data - * @param array $label Label data - * @return boolean - */ - public function handleIssueUnlabeled(array $issue, array $label) - { - $task = $this->taskFinder->getByReference($this->project_id, $issue['number']); - - if (! empty($task)) { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'reference' => $issue['number'], - 'label' => $label['name'], - 'category_id' => 0, - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_LABEL_CHANGE, - new GenericEvent($event) - ); - - return true; - } - - return false; - } -} diff --git a/app/Locale/bs_BA/translations.php b/app/Locale/bs_BA/translations.php index 65ce68f5..f58c3d6b 100644 --- a/app/Locale/bs_BA/translations.php +++ b/app/Locale/bs_BA/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s promijenio izvršioca za zadatak %s u %s', 'New password for the user "%s"' => 'Nova šifra korisnika "%s"', 'Choose an event' => 'Izaberi događaj', - 'Github commit received' => 'Github: commit dobijen', - 'Github issue opened' => 'Github: otvoren problem', - 'Github issue closed' => 'Github: zatvoren problem', - 'Github issue reopened' => 'Github: ponovo otvoren problem', - 'Github issue assignee change' => 'Github: izmijenjen izvršioc problema', - 'Github issue label change' => 'Github: izmjena etikete problema', 'Create a task from an external provider' => 'Kreiraj zadatak preko posrednika', 'Change the assignee based on an external username' => 'Izmijene izvršioca bazirano na vanjskom korisničkom imenu', 'Change the category based on an external label' => 'Izmijene kategorije bazirano na vanjskoj etiketi', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Svima je dozvoljen pristup ovom projektu.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github webhooks', - 'Help on Github webhooks' => 'Pomoć na Github webhooks', 'Create a comment from an external provider' => 'Napravi komentar preko vanjskog posrednika', - 'Github issue comment created' => 'Github: dodan komentar za problem', 'Project management' => 'Upravljanje projektima', 'My projects' => 'Moji projekti', 'Columns' => 'Kolone', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Zaduženja korisnika za "%s"', 'Clone this project' => 'Kloniraj ovaj projekat', 'Column removed successfully.' => 'Kolona uspješno uklonjena.', - 'Github Issue' => 'Github problemi', 'Not enough data to show the graph.' => 'Nedovoljno podataka za prikaz na grafikonu.', 'Previous' => 'Prethodni', 'The id must be an integer' => 'ID mora biti cjeloviti broj', @@ -763,8 +753,6 @@ return array( 'By @%s on Bitbucket' => 'Od @%s na Bitbucket', 'Bitbucket Issue' => 'Bitbucket problem', 'Commit made by @%s on Bitbucket' => 'Commit-ao @%s na Bitbucket', - 'Commit made by @%s on Github' => 'Commit-ao @%s na Github', - 'By @%s on Github' => '@%s na Github', 'Commit made by @%s on Gitlab' => 'Commit-ao @%s na Gitlab', 'Add a comment log when moving the task between columns' => 'Dodaj komentar u dnevnik kada se pomjeri zadatak između kolona', 'Move the task to another column when the category is changed' => 'Pomjeri zadatak u drugu kolonu kada je kategorija promijenjena', diff --git a/app/Locale/cs_CZ/translations.php b/app/Locale/cs_CZ/translations.php index df9a01dd..9b65bd3b 100644 --- a/app/Locale/cs_CZ/translations.php +++ b/app/Locale/cs_CZ/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s změnil řešitele úkolu %s na uživatele %s', 'New password for the user "%s"' => 'Nové heslo pro uživatele "%s"', 'Choose an event' => 'Vybrat událost', - 'Github commit received' => 'Github commit empfangen', - 'Github issue opened' => 'Github Fehler geöffnet', - 'Github issue closed' => 'Github Fehler geschlossen', - 'Github issue reopened' => 'Github Fehler erneut geöffnet', - 'Github issue assignee change' => 'Github Fehlerzuständigkeit geändert', - 'Github issue label change' => 'Github Fehlerkennzeichnung verändert', 'Create a task from an external provider' => 'Vytvořit úkol externím poskytovatelem', 'Change the assignee based on an external username' => 'Změna přiřazení uživatele závislá na externím uživateli', 'Change the category based on an external label' => 'Změna kategorie závislá na externím popisku', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Přístup k tomuto projektu má kdokoliv.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github Webhook', - 'Help on Github webhooks' => 'Hilfe für Github Webhooks', 'Create a comment from an external provider' => 'Vytvořit komentář pomocí externího poskytovatele', - 'Github issue comment created' => 'Github Fehler Kommentar hinzugefügt', 'Project management' => 'Správa projektů', 'My projects' => 'Moje projekty', 'Columns' => 'Sloupce', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Rozdělení podle uživatelů pro "%s"', 'Clone this project' => 'Duplokovat projekt', 'Column removed successfully.' => 'Sloupec byl odstraněn.', - 'Github Issue' => 'Github Issue', 'Not enough data to show the graph.' => 'Pro zobrazení grafu není dostatek dat.', 'Previous' => 'Předchozí', 'The id must be an integer' => 'ID musí být celé číslo', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', 'Add a comment log when moving the task between columns' => 'Přidat komentář když je úkol přesouván mezi sloupci', 'Move the task to another column when the category is changed' => 'Přesun úkolu do jiného sloupce když je změněna kategorie', diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php index f082b663..99cf7ffb 100644 --- a/app/Locale/da_DK/translations.php +++ b/app/Locale/da_DK/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s skift ansvarlig for opgaven %s til %s', 'New password for the user "%s"' => 'Ny adgangskode for brugeren "%s"', 'Choose an event' => 'Vælg et event', - 'Github commit received' => 'Github commit modtaget', - 'Github issue opened' => 'Github problem åbet', - 'Github issue closed' => 'Github problem lukket', - 'Github issue reopened' => 'Github problem genåbnet', - 'Github issue assignee change' => 'Github problem ansvarlig skift', - 'Github issue label change' => 'Github problem label skift', 'Create a task from an external provider' => 'Opret en opgave fra en ekstern udbyder', 'Change the assignee based on an external username' => 'Skift den ansvarlige baseret på et eksternt brugernavn', 'Change the category based on an external label' => 'Skift kategorien baseret på en ekstern label', @@ -487,10 +481,7 @@ return array( // 'Everybody have access to this project.' => '', // 'Webhooks' => '', // 'API' => '', - // 'Github webhooks' => '', - // 'Help on Github webhooks' => '', // 'Create a comment from an external provider' => '', - // 'Github issue comment created' => '', // 'Project management' => '', // 'My projects' => '', // 'Columns' => '', @@ -508,7 +499,6 @@ return array( // 'User repartition for "%s"' => '', // 'Clone this project' => '', // 'Column removed successfully.' => '', - // 'Github Issue' => '', // 'Not enough data to show the graph.' => '', // 'Previous' => '', // 'The id must be an integer' => '', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php index c028cb9b..cbdc1fde 100644 --- a/app/Locale/de_DE/translations.php +++ b/app/Locale/de_DE/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s hat die Zuständigkeit der Aufgabe %s geändert um %s', 'New password for the user "%s"' => 'Neues Passwort des Benutzers "%s"', 'Choose an event' => 'Aktion wählen', - 'Github commit received' => 'Github commit empfangen', - 'Github issue opened' => 'Github Fehler geöffnet', - 'Github issue closed' => 'Github Fehler geschlossen', - 'Github issue reopened' => 'Github Fehler erneut geöffnet', - 'Github issue assignee change' => 'Github Fehlerzuständigkeit geändert', - 'Github issue label change' => 'Github Fehlerkennzeichnung verändert', 'Create a task from an external provider' => 'Eine Aufgabe durch einen externen Provider hinzufügen', 'Change the assignee based on an external username' => 'Zuordnung ändern basierend auf externem Benutzernamen', 'Change the category based on an external label' => 'Kategorie basierend auf einer externen Kennzeichnung ändern', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Jeder hat Zugriff zu diesem Projekt', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github-Webhook', - 'Help on Github webhooks' => 'Hilfe für Github-Webhooks', 'Create a comment from an external provider' => 'Kommentar eines externen Providers hinzufügen', - 'Github issue comment created' => 'Kommentar zum Github-Issue hinzugefügt', 'Project management' => 'Projektmanagement', 'My projects' => 'Meine Projekte', 'Columns' => 'Spalten', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Benutzerverteilung für "%s"', 'Clone this project' => 'Projekt kopieren', 'Column removed successfully.' => 'Spalte erfolgreich entfernt.', - 'Github Issue' => 'Github Issue', 'Not enough data to show the graph.' => 'Nicht genügend Daten, um die Grafik zu zeigen.', 'Previous' => 'Vorherige', 'The id must be an integer' => 'Die Id muss eine ganze Zahl sein', @@ -763,8 +753,6 @@ return array( 'By @%s on Bitbucket' => 'Durch @%s auf Bitbucket', 'Bitbucket Issue' => 'Bitbucket-Issue', 'Commit made by @%s on Bitbucket' => 'Commit von @%s auf Bitbucket', - 'Commit made by @%s on Github' => 'Commit von @%s auf Github', - 'By @%s on Github' => 'Durch @%s auf Github', 'Commit made by @%s on Gitlab' => 'Commit von @%s auf Gitlab', 'Add a comment log when moving the task between columns' => 'Kommentar hinzufügen, wenn Aufgabe in andere Spalte verschoben wird', 'Move the task to another column when the category is changed' => 'Aufgabe in andere Spalte verschieben, wenn Kategorie geändert wird', diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php index d42ff171..03a62976 100644 --- a/app/Locale/es_ES/translations.php +++ b/app/Locale/es_ES/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s cambió el concesionario de la tarea %s por %s', 'New password for the user "%s"' => 'Nueva contraseña para el usuario "%s"', 'Choose an event' => 'Seleccione un evento', - 'Github commit received' => 'Envío a Github recibido', - 'Github issue opened' => 'Abierto asunto en Github', - 'Github issue closed' => 'Cerrado asunto en Github', - 'Github issue reopened' => 'Reabierto asunto en Github', - 'Github issue assignee change' => 'Cambio en concesionario de asunto de Github', - 'Github issue label change' => 'Cambio en etiqueta de asunto de Github', 'Create a task from an external provider' => 'Crear una tarea a partir de un proveedor externo', 'Change the assignee based on an external username' => 'Cambiar el concesionario basado en un nombre de usuario externo', 'Change the category based on an external label' => 'Cambiar la categoría basado en una etiqueta externa', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Cualquiera tiene acceso a este proyecto', 'Webhooks' => 'Disparadores Web (Webhooks)', 'API' => 'API', - 'Github webhooks' => 'Disparadores Web (Webhooks) de Github', - 'Help on Github webhooks' => 'Ayuda con los Disparadores Web (Webhook) de Github', 'Create a comment from an external provider' => 'Crear un comentario a partir de un proveedor externo', - 'Github issue comment created' => 'Creado el comentario del problema en Github', 'Project management' => 'Administración del proyecto', 'My projects' => 'Mis proyectos', 'Columns' => 'Columnas', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Repartición para "%s"', 'Clone this project' => 'Clonar este proyecto', 'Column removed successfully.' => 'Columna eliminada correctamente', - 'Github Issue' => 'Problema con Github', 'Not enough data to show the graph.' => 'No hay suficiente información para mostrar el gráfico.', 'Previous' => 'Anterior', 'The id must be an integer' => 'El id debe ser un entero', @@ -763,8 +753,6 @@ return array( 'By @%s on Bitbucket' => 'Mediante @%s en Bitbucket', 'Bitbucket Issue' => 'Asunto de Bitbucket', 'Commit made by @%s on Bitbucket' => 'Envío realizado por @%s en Bitbucket', - 'Commit made by @%s on Github' => 'Envío realizado por @%s en Github', - 'By @%s on Github' => 'Por @%s en Github', 'Commit made by @%s on Gitlab' => 'Envío realizado por @%s en Gitlab', 'Add a comment log when moving the task between columns' => 'Añadir un comentario al mover la tarea entre columnas', 'Move the task to another column when the category is changed' => 'Mover la tarea a otra columna cuando cambia la categoría', diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php index 53fde67c..1e72850d 100644 --- a/app/Locale/fi_FI/translations.php +++ b/app/Locale/fi_FI/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s vaihtoi tehtävän %s saajaksi %s', 'New password for the user "%s"' => 'Uusi salasana käyttäjälle "%s"', 'Choose an event' => 'Valitse toiminta', - 'Github commit received' => 'Github-kommitti vastaanotettu', - 'Github issue opened' => 'Github-issue avattu', - 'Github issue closed' => 'Github-issue suljettu', - 'Github issue reopened' => 'Github-issue uudelleenavattu', - 'Github issue assignee change' => 'Github-issuen saajan vaihto', - 'Github issue label change' => 'Github-issuen labelin vaihto', 'Create a task from an external provider' => 'Luo tehtävä ulkoiselta tarjoajalta', 'Change the assignee based on an external username' => 'Vaihda tehtävän saajaa perustuen ulkoiseen käyttäjänimeen', 'Change the category based on an external label' => 'Vaihda kategoriaa perustuen ulkoiseen labeliin', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Kaikilla on käyttöoikeus projektiin.', // 'Webhooks' => '', // 'API' => '', - // 'Github webhooks' => '', - // 'Help on Github webhooks' => '', // 'Create a comment from an external provider' => '', - // 'Github issue comment created' => '', 'Project management' => 'Projektin hallinta', 'My projects' => 'Minun projektini', 'Columns' => 'Sarakkeet', @@ -508,7 +499,6 @@ return array( // 'User repartition for "%s"' => '', 'Clone this project' => 'Kahdenna projekti', 'Column removed successfully.' => 'Sarake poistettu onnstuneesti.', - 'Github Issue' => 'Github-issue', 'Not enough data to show the graph.' => 'Ei riittävästi dataa graafin näyttämiseksi.', 'Previous' => 'Edellinen', 'The id must be an integer' => 'ID:n on oltava kokonaisluku', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php index 6dc31aff..1d85232b 100644 --- a/app/Locale/fr_FR/translations.php +++ b/app/Locale/fr_FR/translations.php @@ -439,12 +439,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s a changé la personne assignée à la tâche %s pour %s', 'New password for the user "%s"' => 'Nouveau mot de passe pour l\'utilisateur « %s »', 'Choose an event' => 'Choisir un événement', - 'Github commit received' => 'Commit reçu via Github', - 'Github issue opened' => 'Ouverture d\'un ticket sur Github', - 'Github issue closed' => 'Fermeture d\'un ticket sur Github', - 'Github issue reopened' => 'Réouverture d\'un ticket sur Github', - 'Github issue assignee change' => 'Changement d\'assigné sur un ticket Github', - 'Github issue label change' => 'Changement de libellé sur un ticket Github', 'Create a task from an external provider' => 'Créer une tâche depuis un fournisseur externe', 'Change the assignee based on an external username' => 'Changer l\'assigné en fonction d\'un utilisateur externe', 'Change the category based on an external label' => 'Changer la catégorie en fonction d\'un libellé externe', @@ -489,10 +483,7 @@ return array( 'Everybody have access to this project.' => 'Tout le monde a accès à ce projet.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Webhook Github', - 'Help on Github webhooks' => 'Aide sur les webhooks Github', 'Create a comment from an external provider' => 'Créer un commentaire depuis un fournisseur externe', - 'Github issue comment created' => 'Commentaire créé sur un ticket Github', 'Project management' => 'Gestion des projets', 'My projects' => 'Mes projets', 'Columns' => 'Colonnes', @@ -510,7 +501,6 @@ return array( 'User repartition for "%s"' => 'Répartition des utilisateurs pour « %s »', 'Clone this project' => 'Cloner ce projet', 'Column removed successfully.' => 'Colonne supprimée avec succès.', - 'Github Issue' => 'Ticket Github', 'Not enough data to show the graph.' => 'Pas assez de données pour afficher le graphique.', 'Previous' => 'Précédent', 'The id must be an integer' => 'L\'id doit être un entier', @@ -765,8 +755,6 @@ return array( 'By @%s on Bitbucket' => 'Par @%s sur Bitbucket', 'Bitbucket Issue' => 'Ticket Bitbucket', 'Commit made by @%s on Bitbucket' => 'Commit fait par @%s sur Bitbucket', - 'Commit made by @%s on Github' => 'Commit fait par @%s sur Github', - 'By @%s on Github' => 'Par @%s sur Github', 'Commit made by @%s on Gitlab' => 'Commit fait par @%s sur Gitlab', 'Add a comment log when moving the task between columns' => 'Ajouter un commentaire d\'information lorsque une tâche est déplacée dans une autre colonne', 'Move the task to another column when the category is changed' => 'Déplacer une tâche vers une autre colonne lorsque la catégorie a changé', diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php index d8dad6dc..1c220016 100644 --- a/app/Locale/hu_HU/translations.php +++ b/app/Locale/hu_HU/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s a felelőst %s módosította: %s', 'New password for the user "%s"' => 'Felhasználó új jelszava: %s', 'Choose an event' => 'Válasszon eseményt', - 'Github commit received' => 'Github commit érkezett', - 'Github issue opened' => 'Github issue nyitás', - 'Github issue closed' => 'Github issue zárás', - 'Github issue reopened' => 'Github issue újranyitva', - 'Github issue assignee change' => 'Github issue felelős változás', - 'Github issue label change' => 'Github issue címke változás', 'Create a task from an external provider' => 'Feladat létrehozása külsős számára', 'Change the assignee based on an external username' => 'Felelős módosítása külső felhasználónév alapján', 'Change the category based on an external label' => 'Kategória módosítása külső címke alapján', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Mindenki elérheti a projektet', 'Webhooks' => 'Webhook', 'API' => 'API', - 'Github webhooks' => 'Github webhooks', - 'Help on Github webhooks' => 'Github Webhook súgó', 'Create a comment from an external provider' => 'Megjegyzés létrehozása külső felhasználótól', - 'Github issue comment created' => 'Github issue megjegyzés létrehozva', 'Project management' => 'Projekt menedzsment', 'My projects' => 'Projektjeim', 'Columns' => 'Oszlopok', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Felhasználó újrafelosztás: %s', 'Clone this project' => 'Projekt másolása', 'Column removed successfully.' => 'Oszlop sikeresen törölve.', - 'Github Issue' => 'Github issue', 'Not enough data to show the graph.' => 'Nincs elég adat a grafikonhoz.', 'Previous' => 'Előző', 'The id must be an integer' => 'Az ID csak egész szám lehet', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/id_ID/translations.php b/app/Locale/id_ID/translations.php index 405a6a37..b9e8948d 100644 --- a/app/Locale/id_ID/translations.php +++ b/app/Locale/id_ID/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s mengubah orang yang ditugaskan dari tugas %s ke %s', 'New password for the user "%s"' => 'Kata sandi baru untuk pengguna « %s »', 'Choose an event' => 'Pilih acara', - 'Github commit received' => 'Menerima komit dari Github', - 'Github issue opened' => 'Tiket Github dibuka', - 'Github issue closed' => 'Tiket Github ditutup', - 'Github issue reopened' => 'Tiket Github dibuka kembali', - 'Github issue assignee change' => 'Rubah penugasan tiket Github', - 'Github issue label change' => 'Perubahan label pada tiket Github', 'Create a task from an external provider' => 'Buat tugas dari pemasok eksternal', 'Change the assignee based on an external username' => 'Rubah penugasan berdasarkan nama pengguna eksternal', 'Change the category based on an external label' => 'Rubah kategori berdasarkan label eksternal', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Semua orang mendapat akses untuk proyek ini.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Webhook Github', - 'Help on Github webhooks' => 'Bantuan pada webhook Github', 'Create a comment from an external provider' => 'Buat komentar dari pemasok eksternal', - 'Github issue comment created' => 'Komentar dibuat pada tiket Github', 'Project management' => 'Manajemen proyek', 'My projects' => 'Proyek saya', 'Columns' => 'Kolom', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Partisi ulang pengguna untuk « %s »', 'Clone this project' => 'Gandakan proyek ini', 'Column removed successfully.' => 'Kolom berhasil dihapus.', - 'Github Issue' => 'Tiket Github', 'Not enough data to show the graph.' => 'Tidak cukup data untuk menampilkan grafik.', 'Previous' => 'Sebelumnya', 'The id must be an integer' => 'Id harus integer', @@ -763,8 +753,6 @@ return array( 'By @%s on Bitbucket' => 'Oleh @%s pada Bitbucket', 'Bitbucket Issue' => 'Tiket Bitbucket', 'Commit made by @%s on Bitbucket' => 'Komit dibuat oleh @%s pada Bitbucket', - 'Commit made by @%s on Github' => 'Komit dibuat oleh @%s pada Github', - 'By @%s on Github' => 'Oleh @%s pada Github', 'Commit made by @%s on Gitlab' => 'Komit dibuat oleh @%s pada Gitlab', 'Add a comment log when moving the task between columns' => 'Menambahkan log komentar ketika memindahkan tugas antara kolom', 'Move the task to another column when the category is changed' => 'Pindahkan tugas ke kolom lain ketika kategori berubah', diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php index 67e49263..4d01d70c 100644 --- a/app/Locale/it_IT/translations.php +++ b/app/Locale/it_IT/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s ha cambiato l\'assegnatario del compito %s a %s', 'New password for the user "%s"' => 'Nuova password per l\'utente "%s"', 'Choose an event' => 'Scegli un evento', - 'Github commit received' => 'Commit di Github ricevuto', - 'Github issue opened' => 'Issue di Github ricevuto', - 'Github issue closed' => 'Issue di Github chiusa', - 'Github issue reopened' => 'Issue di Github riaperta', - 'Github issue assignee change' => 'Assegnatario dell\'issue di Github cambiato', - 'Github issue label change' => 'Etichetta dell\'issue di Github cambiata', 'Create a task from an external provider' => 'Crea un compito da un provider esterno', 'Change the assignee based on an external username' => 'Cambia l\'assegnatario basandosi su un username esterno', 'Change the category based on an external label' => 'Cambia la categoria basandosi su un\'etichetta esterna', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Tutti hanno accesso a questo progetto', // 'Webhooks' => '', // 'API' => '', - 'Github webhooks' => 'Webhooks di Github', - 'Help on Github webhooks' => 'Guida ai Webhooks di Github', 'Create a comment from an external provider' => 'Crea un commit da un provider esterno', - 'Github issue comment created' => 'Commento ad un Issue di Github creato', 'Project management' => 'Gestione del progetto', 'My projects' => 'I miei progetti', 'Columns' => 'Colonne', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Ripartizione utente per "%s"', 'Clone this project' => 'Clona questo progetto', 'Column removed successfully.' => 'Colonna rimossa con successo', - 'Github Issue' => 'Issue di Github', 'Not enough data to show the graph.' => 'Non ci sono abbastanza dati per visualizzare il grafico.', 'Previous' => 'Precendete', 'The id must be an integer' => 'L\'id deve essere un intero', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php index e88ccf24..f98d96ee 100644 --- a/app/Locale/ja_JP/translations.php +++ b/app/Locale/ja_JP/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s がタスク %s の担当を %s に変更しました', 'New password for the user "%s"' => 'ユーザ「%s」の新しいパスワード', 'Choose an event' => 'イベントの選択', - 'Github commit received' => 'Github のコミットを受け取った', - 'Github issue opened' => 'Github Issue がオープンされた', - 'Github issue closed' => 'Github Issue がクローズされた', - 'Github issue reopened' => 'Github Issue が再オープンされた', - 'Github issue assignee change' => 'Github Issue の担当が変更された', - 'Github issue label change' => 'Github のラベルが変更された', 'Create a task from an external provider' => 'タスクを外部サービスから作成する', 'Change the assignee based on an external username' => '担当者を外部サービスに基いて変更する', 'Change the category based on an external label' => 'カテゴリを外部サービスに基いて変更する', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => '誰でもこのプロジェクトにアクセスできます。', 'Webhooks' => 'Webhook', 'API' => 'API', - 'Github webhooks' => 'Github Webhook', - 'Help on Github webhooks' => 'Github webhook のヘルプ', 'Create a comment from an external provider' => '外部サービスからコメントを作成する', - 'Github issue comment created' => 'Github Issue コメントが作られました', 'Project management' => 'プロジェクト・マネジメント', 'My projects' => '自分のプロジェクト', 'Columns' => 'カラム', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => '「%s」の担当者分布', 'Clone this project' => 'このプロジェクトを複製する', 'Column removed successfully.' => 'カラムを削除しました', - 'Github Issue' => 'Github Issue', 'Not enough data to show the graph.' => 'グラフを描画するには出たが足りません', 'Previous' => '戻る', 'The id must be an integer' => 'id は数字でなければなりません', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/nb_NO/translations.php b/app/Locale/nb_NO/translations.php index d2b8f4ad..749630d9 100644 --- a/app/Locale/nb_NO/translations.php +++ b/app/Locale/nb_NO/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s endret ansvarlig for oppgaven %s til %s', 'New password for the user "%s"' => 'Nytt passord for brukeren "%s"', 'Choose an event' => 'Velg en hendelse', - 'Github commit received' => 'Github forpliktelse mottatt', - 'Github issue opened' => 'Github problem åpnet', - 'Github issue closed' => 'Github problem lukket', - 'Github issue reopened' => 'Github problem gjenåpnet', - 'Github issue assignee change' => 'Endre ansvarlig for Github problem', - 'Github issue label change' => 'Endre etikett for Github problem', 'Create a task from an external provider' => 'Oppret en oppgave fra en ekstern tilbyder', 'Change the assignee based on an external username' => 'Endre ansvarlige baseret på et eksternt brukernavn', 'Change the category based on an external label' => 'Endre kategorien basert på en ekstern etikett', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Alle har tilgang til dette prosjektet', // 'Webhooks' => '', // 'API' => '', - // 'Github webhooks' => '', - // 'Help on Github webhooks' => '', 'Create a comment from an external provider' => 'Opprett en kommentar fra en ekstern tilbyder', - // 'Github issue comment created' => '', 'Project management' => 'Prosjektinnstillinger', 'My projects' => 'Mine prosjekter', 'Columns' => 'Kolonner', @@ -508,7 +499,6 @@ return array( // 'User repartition for "%s"' => '', 'Clone this project' => 'Kopier dette prosjektet', 'Column removed successfully.' => 'Kolonne flyttet', - // 'Github Issue' => '', // 'Not enough data to show the graph.' => '', 'Previous' => 'Forrige', // 'The id must be an integer' => '', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', 'Add a comment log when moving the task between columns' => 'Legg til en kommentar i loggen når en oppgave flyttes mellom kolonnene', 'Move the task to another column when the category is changed' => 'Flytt oppgaven til en annen kolonne når kategorien endres', diff --git a/app/Locale/nl_NL/translations.php b/app/Locale/nl_NL/translations.php index 055a7ef1..51148db5 100644 --- a/app/Locale/nl_NL/translations.php +++ b/app/Locale/nl_NL/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s heeft de toegewezene voor taak %s veranderd in %s', 'New password for the user "%s"' => 'Nieuw wachtwoord voor gebruiker « %s »', 'Choose an event' => 'Kies een gebeurtenis', - 'Github commit received' => 'Github commentaar ontvangen', - 'Github issue opened' => 'Github issue geopend', - 'Github issue closed' => 'Github issue gesloten', - 'Github issue reopened' => 'Github issue heropend', - 'Github issue assignee change' => 'Github toegewezen veranderd', - 'Github issue label change' => 'Github issue label verander', 'Create a task from an external provider' => 'Maak een taak aan vanuit een externe provider', 'Change the assignee based on an external username' => 'Verander de toegewezene aan de hand van de externe gebruikersnaam', 'Change the category based on an external label' => 'Verander de categorie aan de hand van een extern label', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Iedereen heeft toegang tot dit project.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github webhooks', - 'Help on Github webhooks' => 'Hulp bij Github webhooks', 'Create a comment from an external provider' => 'Voeg een commentaar toe van een externe provider', - 'Github issue comment created' => 'Github issue commentaar aangemaakt', 'Project management' => 'Project management', 'My projects' => 'Mijn projecten', 'Columns' => 'Kolommen', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Gebruikerverdeling voor « %s »', 'Clone this project' => 'Kloon dit project', 'Column removed successfully.' => 'Kolom succesvol verwijderd.', - 'Github Issue' => 'Github issue', 'Not enough data to show the graph.' => 'Niet genoeg data om de grafiek te laten zien.', // 'Previous' => '', 'The id must be an integer' => 'Het id moet een integer zijn', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php index 918dddf5..0356ab62 100644 --- a/app/Locale/pl_PL/translations.php +++ b/app/Locale/pl_PL/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s zmienił osobę odpowiedzialną za zadanie %s na %s', 'New password for the user "%s"' => 'Nowe hasło użytkownika "%s"', 'Choose an event' => 'Wybierz zdarzenie', - // 'Github commit received' => '', - // 'Github issue opened' => '', - // 'Github issue closed' => '', - // 'Github issue reopened' => '', - // 'Github issue assignee change' => '', - // 'Github issue label change' => '', 'Create a task from an external provider' => 'Utwórz zadanie z dostawcy zewnętrznego', 'Change the assignee based on an external username' => 'Zmień osobę odpowiedzialną na podstawie zewnętrznej nazwy użytkownika', 'Change the category based on an external label' => 'Zmień kategorię na podstawie zewnętrznej etykiety', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Wszyscy mają dostęp do tego projektu.', // 'Webhooks' => '', // 'API' => '', - // 'Github webhooks' => '', - // 'Help on Github webhooks' => '', 'Create a comment from an external provider' => 'Utwórz komentarz od zewnętrznego dostawcy', - // 'Github issue comment created' => '', 'Project management' => 'Menadżer projektu', 'My projects' => 'Moje projekty', 'Columns' => 'Kolumny', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Przydział użytkownika dla "%s"', 'Clone this project' => 'Sklonuj ten projekt', 'Column removed successfully.' => 'Kolumna usunięta pomyślnie.', - // 'Github Issue' => '', 'Not enough data to show the graph.' => 'Za mało danych do utworzenia wykresu.', 'Previous' => 'Poprzedni', 'The id must be an integer' => 'ID musi być liczbą całkowitą', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php index 1ffb115c..3873a4f9 100644 --- a/app/Locale/pt_BR/translations.php +++ b/app/Locale/pt_BR/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s mudou a designação da tarefa %s para %s', 'New password for the user "%s"' => 'Nova senha para o usuário "%s"', 'Choose an event' => 'Escolher um evento', - 'Github commit received' => 'Github commit received', - 'Github issue opened' => 'Github issue opened', - 'Github issue closed' => 'Github issue closed', - 'Github issue reopened' => 'Github issue reopened', - 'Github issue assignee change' => 'Github issue assignee change', - 'Github issue label change' => 'Github issue label change', 'Create a task from an external provider' => 'Criar uma tarefa por meio de um serviço externo', 'Change the assignee based on an external username' => 'Alterar designação com base em um usuário externo', 'Change the category based on an external label' => 'Alterar categoria com base em um rótulo externo', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Todos possuem acesso a este projeto.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github webhooks', - 'Help on Github webhooks' => 'Ajuda sobre os webhooks do GitHub', 'Create a comment from an external provider' => 'Criar um comentário por meio de um serviço externo', - 'Github issue comment created' => 'Github issue comment created', 'Project management' => 'Gerenciamento de projetos', 'My projects' => 'Meus projetos', 'Columns' => 'Colunas', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Redistribuição de usuário para "%s"', 'Clone this project' => 'Clonar este projeto', 'Column removed successfully.' => 'Coluna removida com sucesso.', - 'Github Issue' => 'Github Issue', 'Not enough data to show the graph.' => 'Não há dados suficientes para mostrar o gráfico.', 'Previous' => 'Anterior', 'The id must be an integer' => 'O ID deve ser um número inteiro', @@ -763,8 +753,6 @@ return array( 'By @%s on Bitbucket' => 'Por @%s no Bitbucket', 'Bitbucket Issue' => 'Bitbucket Issue', 'Commit made by @%s on Bitbucket' => 'Commit feito por @%s no Bitbucket', - 'Commit made by @%s on Github' => 'Commit feito por @%s no Github', - 'By @%s on Github' => 'Por @%s no Github', 'Commit made by @%s on Gitlab' => 'Commit feito por @%s no Gitlab', 'Add a comment log when moving the task between columns' => 'Adicionar um comentário de log quando uma tarefa é movida para uma outra coluna', 'Move the task to another column when the category is changed' => 'Mover uma tarefa para outra coluna quando a categoria mudou', diff --git a/app/Locale/pt_PT/translations.php b/app/Locale/pt_PT/translations.php index 2e5c6e61..b7b154b8 100644 --- a/app/Locale/pt_PT/translations.php +++ b/app/Locale/pt_PT/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s mudou a assignação da tarefa %s para %s', 'New password for the user "%s"' => 'Nova senha para o utilizador "%s"', 'Choose an event' => 'Escolher um evento', - 'Github commit received' => 'Recebido commit do Github', - 'Github issue opened' => 'Problema aberto no Github', - 'Github issue closed' => 'Problema fechado no Github', - 'Github issue reopened' => 'Problema reaberto no Github', - 'Github issue assignee change' => 'Alterar assignação ao problema no Githubnge', - 'Github issue label change' => 'Alterar etiqueta do problema no Github', 'Create a task from an external provider' => 'Criar uma tarefa por meio de um serviço externo', 'Change the assignee based on an external username' => 'Alterar assignação com base num utilizador externo', 'Change the category based on an external label' => 'Alterar categoria com base num rótulo externo', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Todos possuem acesso a este projecto.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github webhooks', - 'Help on Github webhooks' => 'Ajuda para o Github webhooks', 'Create a comment from an external provider' => 'Criar um comentário por meio de um serviço externo', - 'Github issue comment created' => 'Criado comentário ao problema no Github', 'Project management' => 'Gestão de projectos', 'My projects' => 'Os meus projectos', 'Columns' => 'Colunas', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Redistribuição de utilizador para "%s"', 'Clone this project' => 'Clonar este projecto', 'Column removed successfully.' => 'Coluna removida com sucesso.', - 'Github Issue' => 'Problema no Github', 'Not enough data to show the graph.' => 'Não há dados suficientes para mostrar o gráfico.', 'Previous' => 'Anterior', 'The id must be an integer' => 'O ID deve ser um número inteiro', @@ -763,8 +753,6 @@ return array( 'By @%s on Bitbucket' => 'Por @%s no Bitbucket', 'Bitbucket Issue' => 'Problema Bitbucket', 'Commit made by @%s on Bitbucket' => 'Commit feito por @%s no Bitbucket', - 'Commit made by @%s on Github' => 'Commit feito por @%s no Github', - 'By @%s on Github' => 'Por @%s no Github', 'Commit made by @%s on Gitlab' => 'Commit feito por @%s no Gitlab', 'Add a comment log when moving the task between columns' => 'Adicionar um comentário de log quando uma tarefa é movida para uma outra coluna', 'Move the task to another column when the category is changed' => 'Mover uma tarefa para outra coluna quando a categoria mudar', diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php index 816b7aae..0afd9b96 100644 --- a/app/Locale/ru_RU/translations.php +++ b/app/Locale/ru_RU/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s сменил назначенного для задачи %s на %s', 'New password for the user "%s"' => 'Новый пароль для пользователя "%s"', 'Choose an event' => 'Выберите событие', - 'Github commit received' => 'Github: коммит получен', - 'Github issue opened' => 'Github: новая проблема', - 'Github issue closed' => 'Github: проблема закрыта', - 'Github issue reopened' => 'Github: проблема переоткрыта', - 'Github issue assignee change' => 'Github: сменить ответственного за проблему', - 'Github issue label change' => 'Github: ярлык проблемы изменен', 'Create a task from an external provider' => 'Создать задачу из внешнего источника', 'Change the assignee based on an external username' => 'Изменить назначенного основываясь на внешнем имени пользователя', 'Change the category based on an external label' => 'Изменить категорию основываясь на внешнем ярлыке', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Любой может получить доступ к этому проекту.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github webhooks', - 'Help on Github webhooks' => 'Помощь по Github webhooks', 'Create a comment from an external provider' => 'Создать комментарий из внешнего источника', - 'Github issue comment created' => 'Github issue комментарий создан', 'Project management' => 'Управление проектом', 'My projects' => 'Мои проекты', 'Columns' => 'Колонки', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Перераспределение пользователей для "%s"', 'Clone this project' => 'Клонировать проект', 'Column removed successfully.' => 'Колонка успешно удалена.', - 'Github Issue' => 'Вопрос на Github', 'Not enough data to show the graph.' => 'Недостаточно данных, чтобы показать график.', 'Previous' => 'Предыдущий', 'The id must be an integer' => 'Этот id должен быть целочисленным', @@ -763,8 +753,6 @@ return array( 'By @%s on Bitbucket' => 'Польз. @%s на Bitbucket', 'Bitbucket Issue' => 'Задача Bitbucket', 'Commit made by @%s on Bitbucket' => 'Коммит сделан польз. @%s на Bitbucket', - 'Commit made by @%s on Github' => 'Коммит сделан польз. @%s на Github', - 'By @%s on Github' => 'Польз. @%s на Github', 'Commit made by @%s on Gitlab' => 'Коммит сделан польз. @%s в Gitlab', 'Add a comment log when moving the task between columns' => 'Добавлять запись при перемещении задачи между колонками', 'Move the task to another column when the category is changed' => 'Переносить задачи в другую колонку при изменении категории', diff --git a/app/Locale/sr_Latn_RS/translations.php b/app/Locale/sr_Latn_RS/translations.php index 73e8b263..5e56d805 100644 --- a/app/Locale/sr_Latn_RS/translations.php +++ b/app/Locale/sr_Latn_RS/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s zamena dodele za zadatak %s na %s', 'New password for the user "%s"' => 'Nova lozinka za korisnika "%s"', 'Choose an event' => 'Izaberi događaj', - // 'Github commit received' => '', - // 'Github issue opened' => '', - // 'Github issue closed' => '', - // 'Github issue reopened' => '', - // 'Github issue assignee change' => '', - // 'Github issue label change' => '', 'Create a task from an external provider' => 'Kreiraj zadatak preko posrednika', 'Change the assignee based on an external username' => 'Zmień osobę odpowiedzialną na podstawie zewnętrznej nazwy użytkownika', 'Change the category based on an external label' => 'Zmień kategorię na podstawie zewnętrzenj etykiety', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Svima je dozvoljen pristup.', // 'Webhooks' => '', // 'API' => '', - // 'Github webhooks' => '', - // 'Help on Github webhooks' => '', // 'Create a comment from an external provider' => '', - // 'Github issue comment created' => '', 'Project management' => 'Uređivanje projekata', 'My projects' => 'Moji projekti', 'Columns' => 'Kolone', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Zaduženja korisnika za "%s"', 'Clone this project' => 'Kopiraj projekat', 'Column removed successfully.' => 'Kolumna usunięta pomyslnie.', - // 'Github Issue' => '', 'Not enough data to show the graph.' => 'Nedovoljno podataka za grafikon.', 'Previous' => 'Prethodni', 'The id must be an integer' => 'ID musi być liczbą całkowitą', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php index 349a5160..67d0251f 100644 --- a/app/Locale/sv_SE/translations.php +++ b/app/Locale/sv_SE/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s byt tilldelning av uppgiften %s till %s', 'New password for the user "%s"' => 'Nytt lösenord för användaren "%s"', 'Choose an event' => 'Välj en händelse', - 'Github commit received' => 'Github-bidrag mottaget', - 'Github issue opened' => 'Github-fråga öppnad', - 'Github issue closed' => 'Github-fråga stängd', - 'Github issue reopened' => 'Github-fråga öppnad på nytt', - 'Github issue assignee change' => 'Github-fråga ny tilldelning', - 'Github issue label change' => 'Github-fråga etikettförändring', 'Create a task from an external provider' => 'Skapa en uppgift från en extern leverantör', 'Change the assignee based on an external username' => 'Ändra tilldelning baserat på ett externt användarnamn', 'Change the category based on an external label' => 'Ändra kategori baserat på en extern etikett', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Alla har tillgång till projektet', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github webhooks', - 'Help on Github webhooks' => 'Hjälp för Github webhooks', 'Create a comment from an external provider' => 'Skapa en kommentar från en extern leverantör', - 'Github issue comment created' => 'Github frågekommentar skapad', 'Project management' => 'Projekthantering', 'My projects' => 'Mina projekt', 'Columns' => 'Kolumner', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'Användardeltagande för "%s"', 'Clone this project' => 'Klona projektet', 'Column removed successfully.' => 'Kolumnen togs bort', - 'Github Issue' => 'Github fråga', 'Not enough data to show the graph.' => 'Inte tillräckligt med data för att visa graf', 'Previous' => 'Föregående', 'The id must be an integer' => 'ID måste vara ett heltal', @@ -763,8 +753,6 @@ return array( 'By @%s on Bitbucket' => 'Av @%s på Bitbucket', 'Bitbucket Issue' => 'Bitbucket fråga', 'Commit made by @%s on Bitbucket' => 'Bidrag gjort av @%s på Bitbucket', - 'Commit made by @%s on Github' => 'Bidrag gjort av @%s på Github', - 'By @%s on Github' => 'Av @%s på Github', 'Commit made by @%s on Gitlab' => 'Bidrag gjort av @%s på Gitlab', 'Add a comment log when moving the task between columns' => 'Lägg till en kommentarslogg när en uppgift flyttas mellan kolumner', 'Move the task to another column when the category is changed' => 'Flyttas uppgiften till en annan kolumn när kategorin ändras', diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php index 6da653ff..85197bc4 100644 --- a/app/Locale/th_TH/translations.php +++ b/app/Locale/th_TH/translations.php @@ -437,12 +437,6 @@ return array( // '%s changed the assignee of the task %s to %s' => '', 'New password for the user "%s"' => 'รหัสผ่านใหม่สำหรับผู้ใช้ "%s"', 'Choose an event' => 'เลือกเหตุการณ์', - // 'Github commit received' => '', - // 'Github issue opened' => '', - // 'Github issue closed' => '', - // 'Github issue reopened' => '', - // 'Github issue assignee change' => '', - // 'Github issue label change' => '', // 'Create a task from an external provider' => '', // 'Change the assignee based on an external username' => '', // 'Change the category based on an external label' => '', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'ทุกคนสามารถเข้าถึงโปรเจคนี้', // 'Webhooks' => '', // 'API' => '', - // 'Github webhooks' => '', - // 'Help on Github webhooks' => '', // 'Create a comment from an external provider' => '', - // 'Github issue comment created' => '', 'Project management' => 'การจัดการโปรเจค', 'My projects' => 'โปรเจคของฉัน', 'Columns' => 'คอลัมน์', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => 'การแบ่งงานของผู้ใช้ "%s"', 'Clone this project' => 'เลียนแบบโปรเจคนี้', 'Column removed successfully.' => 'ลบคอลัมน์สำเร็จ', - // 'Github Issue' => '', 'Not enough data to show the graph.' => 'ไม่มีข้อมูลแสดงเป็นกราฟ', 'Previous' => 'ก่อนหน้า', 'The id must be an integer' => 'ไอดีต้องเป็นตัวเลขจำนวนเต็ม', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/tr_TR/translations.php b/app/Locale/tr_TR/translations.php index 6d179a9e..25adf099 100644 --- a/app/Locale/tr_TR/translations.php +++ b/app/Locale/tr_TR/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s kullanıcısı %s görevinin sorumlusunu %s olarak değiştirdi', 'New password for the user "%s"' => '"%s" kullanıcısı için yeni şifre', 'Choose an event' => 'Bir durum seçin', - // 'Github commit received' => '', - // 'Github issue opened' => '', - // 'Github issue closed' => '', - // 'Github issue reopened' => '', - // 'Github issue assignee change' => '', - // 'Github issue label change' => '', 'Create a task from an external provider' => 'Dış sağlayıcı ile bir görev oluştur', 'Change the assignee based on an external username' => 'Dış kaynaklı kullanıcı adı ile göreve atananı değiştir', 'Change the category based on an external label' => 'Dış kaynaklı bir etiket ile kategori değiştir', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => 'Bu projeye herkesin erişimi var.', 'Webhooks' => 'Webhooks', 'API' => 'API', - 'Github webhooks' => 'Github Webhook', - 'Help on Github webhooks' => 'Github Webhooks hakkında yardım', 'Create a comment from an external provider' => 'Dış sağlayıcı ile bir yorum oluştur', - 'Github issue comment created' => 'Github hata yorumu oluşturuldu', 'Project management' => 'Proje yönetimi', 'My projects' => 'Projelerim', 'Columns' => 'Sütunlar', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => '"%s" için kullanıcı dağılımı', 'Clone this project' => 'Projenin kopyasını oluştur', 'Column removed successfully.' => 'Sütun başarıyla kaldırıldı.', - 'Github Issue' => 'Github Issue', 'Not enough data to show the graph.' => 'Grafik gösterimi için yeterli veri yok.', 'Previous' => 'Önceki', 'The id must be an integer' => 'ID bir tamsayı olmalı', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php index 736bcd5d..53caba72 100644 --- a/app/Locale/zh_CN/translations.php +++ b/app/Locale/zh_CN/translations.php @@ -437,12 +437,6 @@ return array( '%s changed the assignee of the task %s to %s' => '%s 将任务 %s 分配给 %s', 'New password for the user "%s"' => '用户"%s"的新密码', 'Choose an event' => '选择一个事件', - 'Github commit received' => '收到了Github提交', - 'Github issue opened' => '开启了Github问题报告', - 'Github issue closed' => '关闭了Github问题报告', - 'Github issue reopened' => '重新开启Github问题', - 'Github issue assignee change' => 'Github问题负责人已经变更', - 'Github issue label change' => 'Github任务标签修改', 'Create a task from an external provider' => '从外部创建任务', 'Change the assignee based on an external username' => '根据外部用户名修改任务分配', 'Change the category based on an external label' => '根据外部标签修改分类', @@ -487,10 +481,7 @@ return array( 'Everybody have access to this project.' => '所有人都可以访问此项目', 'Webhooks' => '网络钩子', 'API' => '应用程序接口', - 'Github webhooks' => 'Github 网络钩子', - 'Help on Github webhooks' => 'Github 网络钩子帮助', 'Create a comment from an external provider' => '从外部创建一个评论', - 'Github issue comment created' => '已经创建了Github问题评论', 'Project management' => '项目管理', 'My projects' => '我的项目', 'Columns' => '栏目', @@ -508,7 +499,6 @@ return array( 'User repartition for "%s"' => '"%s"的用户分析', 'Clone this project' => '复制此项目', 'Column removed successfully.' => '成功删除了栏目。', - 'Github Issue' => 'Github 任务报告', 'Not enough data to show the graph.' => '数据不足,无法绘图。', 'Previous' => '后退', 'The id must be an integer' => '编号必须为整数', @@ -763,8 +753,6 @@ return array( // 'By @%s on Bitbucket' => '', // 'Bitbucket Issue' => '', // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Github' => '', - // 'By @%s on Github' => '', // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', diff --git a/app/ServiceProvider/ClassProvider.php b/app/ServiceProvider/ClassProvider.php index 57e63746..659d95b6 100644 --- a/app/ServiceProvider/ClassProvider.php +++ b/app/ServiceProvider/ClassProvider.php @@ -117,7 +117,6 @@ class ClassProvider implements ServiceProviderInterface ), 'Integration' => array( 'BitbucketWebhook', - 'GithubWebhook', 'GitlabWebhook', ) ); diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php index c4d9385b..6a149dbe 100644 --- a/app/Template/project/integrations.php +++ b/app/Template/project/integrations.php @@ -5,13 +5,7 @@
form->csrf() ?> - hook->render('template:project:integrations', array('values' => $values)) ?> - -

 

-
-
-

url->doc(t('Help on Github webhooks'), 'github-webhooks') ?>

-
+ hook->render('template:project:integrations', array('project' => $project, 'values' => $values, 'webhook_token' => $webhook_token)) ?>

 

diff --git a/doc/index.markdown b/doc/index.markdown index 312c194d..0030e6d0 100644 --- a/doc/index.markdown +++ b/doc/index.markdown @@ -69,7 +69,6 @@ Using Kanboard ### Integrations - [Bitbucket webhooks](bitbucket-webhooks.markdown) -- [Github webhooks](github-webhooks.markdown) - [Gitlab webhooks](gitlab-webhooks.markdown) - [iCalendar subscriptions](ical.markdown) - [RSS/Atom subscriptions](rss.markdown) @@ -118,7 +117,7 @@ Technical details ### Authentication - [LDAP authentication](ldap-authentication.markdown) -- [LDAP group sync](ldap-group-sync.markdown) +- [LDAP group synchronization](ldap-group-sync.markdown) - [LDAP parameters](ldap-parameters.markdown) - [Google authentication](google-authentication.markdown) - [Github authentication](github-authentication.markdown) diff --git a/tests/units/Integration/GithubWebhookTest.php b/tests/units/Integration/GithubWebhookTest.php deleted file mode 100644 index 6b5e19a5..00000000 --- a/tests/units/Integration/GithubWebhookTest.php +++ /dev/null @@ -1,460 +0,0 @@ -container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_OPENED, array($this, 'onIssueOpened')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issues', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_opened.json'), true) - )); - } - - public function testIssueAssigned() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, array($this, 'onIssueAssigned')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'fguillot'))); - - $pp = new ProjectUserRole($this->container); - $this->assertTrue($pp->addUser(1, 2, Role::PROJECT_MEMBER)); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issues', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_assigned.json'), true) - )); - } - - public function testIssueAssignedWithNoExistingTask() - { - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_assigned.json'), true); - - $this->assertFalse($g->handleIssueAssigned($payload['issue'])); - } - - public function testIssueAssignedWithNoExistingUser() - { - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_assigned.json'), true); - - $this->assertFalse($g->handleIssueAssigned($payload['issue'])); - } - - public function testIssueAssignedWithNoMember() - { - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'fguillot'))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_assigned.json'), true); - - $this->assertFalse($g->handleIssueAssigned($payload['issue'])); - } - - public function testIssueAssignedWithMember() - { - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'fguillot'))); - - $pp = new ProjectUserRole($this->container); - $this->assertTrue($pp->addUser(1, 2, ROLE::PROJECT_MANAGER)); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_assigned.json'), true); - - $this->assertTrue($g->handleIssueAssigned($payload['issue'])); - } - - public function testIssueUnassigned() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, array($this, 'onIssueUnassigned')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issues', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_unassigned.json'), true) - )); - } - - public function testIssueClosed() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_CLOSED, array($this, 'onIssueClosed')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issues', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_closed.json'), true) - )); - } - - public function testIssueClosedWithTaskNotFound() - { - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_closed.json'), true); - - $this->assertFalse($g->handleIssueClosed($payload['issue'])); - } - - public function testIssueReopened() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_REOPENED, array($this, 'onIssueReopened')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issues', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_reopened.json'), true) - )); - } - - public function testIssueReopenedWithTaskNotFound() - { - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_reopened.json'), true); - - $this->assertFalse($g->handleIssueReopened($payload['issue'])); - } - - public function testIssueLabeled() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_LABEL_CHANGE, array($this, 'onIssueLabeled')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issues', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_labeled.json'), true) - )); - } - - public function testIssueLabeledWithTaskNotFound() - { - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_labeled.json'), true); - - $this->assertFalse($g->handleIssueLabeled($payload['issue'], $payload['label'])); - } - - public function testIssueUnLabeled() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_LABEL_CHANGE, array($this, 'onIssueUnlabeled')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issues', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_unlabeled.json'), true) - )); - } - - public function testIssueUnLabeledWithTaskNotFound() - { - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/github_issue_unlabeled.json'), true); - - $this->assertFalse($g->handleIssueUnlabeled($payload['issue'], $payload['label'])); - } - - public function testCommentCreatedWithNoUser() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithNoUser')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue_comment', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_comment_created.json'), true) - )); - } - - public function testCommentCreatedWithNotMember() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithNotMember')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'fguillot'))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue_comment', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_comment_created.json'), true) - )); - } - - public function testCommentCreatedWithUser() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithUser')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 3, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'fguillot'))); - - $pp = new ProjectUserRole($this->container); - $this->assertTrue($pp->addUser(1, 2, Role::PROJECT_MEMBER)); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue_comment', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_comment_created.json'), true) - )); - } - - public function testPush() - { - $this->container['dispatcher']->addListener(GithubWebhook::EVENT_COMMIT, array($this, 'onPush')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'project_id' => 1))); - - $g = new GithubWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'push', - json_decode(file_get_contents(__DIR__.'/../fixtures/github_push.json'), true) - )); - } - - public function onIssueOpened($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(3, $data['reference']); - $this->assertEquals('Test Webhook', $data['title']); - $this->assertEquals("plop\n\n[Github Issue](https://github.com/kanboardapp/webhook/issues/3)", $data['description']); - } - - public function onIssueAssigned($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(3, $data['reference']); - $this->assertEquals(2, $data['owner_id']); - } - - public function onIssueUnassigned($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(3, $data['reference']); - $this->assertEquals(0, $data['owner_id']); - } - - public function onIssueClosed($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(3, $data['reference']); - } - - public function onIssueReopened($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(3, $data['reference']); - } - - public function onIssueLabeled($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(3, $data['reference']); - $this->assertEquals('bug', $data['label']); - } - - public function onIssueUnlabeled($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(3, $data['reference']); - $this->assertEquals('bug', $data['label']); - $this->assertEquals(0, $data['category_id']); - } - - public function onCommentCreatedWithNoUser($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(0, $data['user_id']); - $this->assertEquals(113834672, $data['reference']); - $this->assertEquals("test\n\n[By @fguillot on Github](https://github.com/kanboardapp/webhook/issues/3#issuecomment-113834672)", $data['comment']); - } - - public function onCommentCreatedWithNotMember($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(0, $data['user_id']); - $this->assertEquals(113834672, $data['reference']); - $this->assertEquals("test\n\n[By @fguillot on Github](https://github.com/kanboardapp/webhook/issues/3#issuecomment-113834672)", $data['comment']); - } - - public function onCommentCreatedWithUser($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(2, $data['user_id']); - $this->assertEquals(113834672, $data['reference']); - $this->assertEquals("test\n\n[By @fguillot on Github](https://github.com/kanboardapp/webhook/issues/3#issuecomment-113834672)", $data['comment']); - } - - public function onPush($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals('boo', $data['title']); - $this->assertEquals("Update README to fix #1\n\n[Commit made by @fguillot on Github](https://github.com/kanboardapp/webhook/commit/98dee3e49ee7aa66ffec1f761af93da5ffd711f6)", $data['comment']); - $this->assertEquals('Update README to fix #1', $data['commit_message']); - $this->assertEquals('https://github.com/kanboardapp/webhook/commit/98dee3e49ee7aa66ffec1f761af93da5ffd711f6', $data['commit_url']); - } -} diff --git a/tests/units/fixtures/github_comment_created.json b/tests/units/fixtures/github_comment_created.json deleted file mode 100644 index bb601c7c..00000000 --- a/tests/units/fixtures/github_comment_created.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "action": "created", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 1, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:45:51Z", - "closed_at": null, - "body": "plop" - }, - "comment": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments/113834672", - "html_url": "https://github.com/kanboardapp/webhook/issues/3#issuecomment-113834672", - "issue_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "id": 113834672, - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "created_at": "2015-06-20T22:45:51Z", - "updated_at": "2015-06-20T22:45:51Z", - "body": "test" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file diff --git a/tests/units/fixtures/github_issue_assigned.json b/tests/units/fixtures/github_issue_assigned.json deleted file mode 100644 index 9125e976..00000000 --- a/tests/units/fixtures/github_issue_assigned.json +++ /dev/null @@ -1,196 +0,0 @@ -{ - "action": "assigned", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:12:15Z", - "closed_at": null, - "body": "plop" - }, - "assignee": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file diff --git a/tests/units/fixtures/github_issue_closed.json b/tests/units/fixtures/github_issue_closed.json deleted file mode 100644 index 5d2393eb..00000000 --- a/tests/units/fixtures/github_issue_closed.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "closed", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:28:32Z", - "closed_at": "2015-06-20T22:28:32Z", - "body": "plop" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 2, - "forks": 0, - "open_issues": 2, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file diff --git a/tests/units/fixtures/github_issue_labeled.json b/tests/units/fixtures/github_issue_labeled.json deleted file mode 100644 index 4576b04f..00000000 --- a/tests/units/fixtures/github_issue_labeled.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "url": "https://api.github.com/repos/kanboardapp/webhook/labels/bug", - "name": "bug", - "color": "fc2929" - } - ], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:37:49Z", - "closed_at": null, - "body": "plop" - }, - "label": { - "url": "https://api.github.com/repos/kanboardapp/webhook/labels/bug", - "name": "bug", - "color": "fc2929" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file diff --git a/tests/units/fixtures/github_issue_opened.json b/tests/units/fixtures/github_issue_opened.json deleted file mode 100644 index 13f8d930..00000000 --- a/tests/units/fixtures/github_issue_opened.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "Test Webhook", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T21:58:20Z", - "closed_at": null, - "body": "plop" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file diff --git a/tests/units/fixtures/github_issue_reopened.json b/tests/units/fixtures/github_issue_reopened.json deleted file mode 100644 index 70f9e884..00000000 --- a/tests/units/fixtures/github_issue_reopened.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:33:35Z", - "closed_at": null, - "body": "plop" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file diff --git a/tests/units/fixtures/github_issue_unassigned.json b/tests/units/fixtures/github_issue_unassigned.json deleted file mode 100644 index 0a578bab..00000000 --- a/tests/units/fixtures/github_issue_unassigned.json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "action": "unassigned", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:26:05Z", - "closed_at": null, - "body": "plop" - }, - "assignee": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file diff --git a/tests/units/fixtures/github_issue_unlabeled.json b/tests/units/fixtures/github_issue_unlabeled.json deleted file mode 100644 index 47070a91..00000000 --- a/tests/units/fixtures/github_issue_unlabeled.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:43:48Z", - "closed_at": null, - "body": "plop" - }, - "label": { - "url": "https://api.github.com/repos/kanboardapp/webhook/labels/bug", - "name": "bug", - "color": "fc2929" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file diff --git a/tests/units/fixtures/github_push.json b/tests/units/fixtures/github_push.json deleted file mode 100644 index 5ae9b766..00000000 --- a/tests/units/fixtures/github_push.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "ref": "refs/heads/master", - "before": "895598f1baf1ee5fb3f43ebc509aa86e263bde4b", - "after": "98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "created": false, - "deleted": false, - "forced": false, - "base_ref": null, - "compare": "https://github.com/kanboardapp/webhook/compare/895598f1baf1...98dee3e49ee7", - "commits": [ - { - "id": "98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "distinct": true, - "message": "Update README to fix #1", - "timestamp": "2015-06-20T18:54:52-04:00", - "url": "https://github.com/kanboardapp/webhook/commit/98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "author": { - "name": "Frédéric Guillot", - "email": "fred@kanboard.net", - "username": "fguillot" - }, - "committer": { - "name": "Frédéric Guillot", - "email": "fred@kanboard.net", - "username": "fguillot" - }, - "added": [], - "removed": [], - "modified": [ - "README.md" - ] - } - ], - "head_commit": { - "id": "98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "distinct": true, - "message": "Update README", - "timestamp": "2015-06-20T18:54:52-04:00", - "url": "https://github.com/kanboardapp/webhook/commit/98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "author": { - "name": "Frédéric Guillot", - "email": "fred@kanboard.net", - "username": "fguillot" - }, - "committer": { - "name": "Frédéric Guillot", - "email": "fred@kanboard.net", - "username": "fguillot" - }, - "added": [], - "removed": [], - "modified": [ - "README.md" - ] - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "name": "kanboardapp", - "email": null - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://github.com/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": 1414267838, - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": 1434840893, - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master", - "stargazers": 0, - "master_branch": "master", - "organization": "kanboardapp" - }, - "pusher": { - "name": "fguillot", - "email": "fred@kanboard.net" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -} \ No newline at end of file -- cgit v1.2.3 From 54b3cfe8a14e99ab2372fc5095facc3a2259f077 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 7 Jan 2016 20:16:05 -0500 Subject: Move bitbucket webhook to an external plugin --- ChangeLog | 1 + app/Action/CommentCreation.php | 3 - app/Action/TaskAssignUser.php | 6 +- app/Action/TaskClose.php | 3 - app/Action/TaskCreation.php | 2 - app/Action/TaskOpen.php | 2 - app/Controller/Webhook.php | 19 - app/Core/Base.php | 1 - app/Core/Event/EventManager.php | 7 - app/Integration/BitbucketWebhook.php | 312 ---------------- app/Locale/bs_BA/translations.php | 12 - app/Locale/cs_CZ/translations.php | 12 - app/Locale/da_DK/translations.php | 12 - app/Locale/de_DE/translations.php | 12 - app/Locale/es_ES/translations.php | 12 - app/Locale/fi_FI/translations.php | 12 - app/Locale/fr_FR/translations.php | 12 - app/Locale/hu_HU/translations.php | 12 - app/Locale/id_ID/translations.php | 12 - app/Locale/it_IT/translations.php | 12 - app/Locale/ja_JP/translations.php | 12 - app/Locale/nb_NO/translations.php | 12 - app/Locale/nl_NL/translations.php | 12 - app/Locale/pl_PL/translations.php | 12 - app/Locale/pt_BR/translations.php | 12 - app/Locale/pt_PT/translations.php | 12 - app/Locale/ru_RU/translations.php | 12 - app/Locale/sr_Latn_RS/translations.php | 12 - app/Locale/sv_SE/translations.php | 12 - app/Locale/th_TH/translations.php | 12 - app/Locale/tr_TR/translations.php | 12 - app/Locale/zh_CN/translations.php | 12 - app/ServiceProvider/ClassProvider.php | 1 - app/Template/project/integrations.php | 6 - doc/bitbucket-webhooks.markdown | 55 --- doc/github-webhooks.markdown | 99 ----- doc/index.markdown | 1 - tests/units/Integration/BitbucketWebhookTest.php | 399 --------------------- .../units/fixtures/bitbucket_comment_created.json | 147 -------- tests/units/fixtures/bitbucket_issue_assigned.json | 209 ----------- tests/units/fixtures/bitbucket_issue_closed.json | 183 ---------- tests/units/fixtures/bitbucket_issue_opened.json | 112 ------ tests/units/fixtures/bitbucket_issue_reopened.json | 183 ---------- .../units/fixtures/bitbucket_issue_unassigned.json | 193 ---------- tests/units/fixtures/bitbucket_push.json | 182 ---------- 45 files changed, 2 insertions(+), 2388 deletions(-) delete mode 100644 app/Integration/BitbucketWebhook.php delete mode 100644 doc/bitbucket-webhooks.markdown delete mode 100644 doc/github-webhooks.markdown delete mode 100644 tests/units/Integration/BitbucketWebhookTest.php delete mode 100644 tests/units/fixtures/bitbucket_comment_created.json delete mode 100644 tests/units/fixtures/bitbucket_issue_assigned.json delete mode 100644 tests/units/fixtures/bitbucket_issue_closed.json delete mode 100644 tests/units/fixtures/bitbucket_issue_opened.json delete mode 100644 tests/units/fixtures/bitbucket_issue_reopened.json delete mode 100644 tests/units/fixtures/bitbucket_issue_unassigned.json delete mode 100644 tests/units/fixtures/bitbucket_push.json (limited to 'app/Action/CommentCreation.php') diff --git a/ChangeLog b/ChangeLog index 33539bb8..de916e7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ Breaking changes: * Action name stored in the database is now the absolute class name * Core functionalities moved to external plugins: - Github Webhook: https://github.com/kanboard/plugin-github-webhook + - Bitbucket Webhook: https://github.com/kanboard/plugin-bitbucket-webhook New features: diff --git a/app/Action/CommentCreation.php b/app/Action/CommentCreation.php index d7051d4d..e08ef47f 100644 --- a/app/Action/CommentCreation.php +++ b/app/Action/CommentCreation.php @@ -2,7 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\BitbucketWebhook; use Kanboard\Integration\GitlabWebhook; /** @@ -33,8 +32,6 @@ class CommentCreation extends Base public function getCompatibleEvents() { return array( - BitbucketWebhook::EVENT_ISSUE_COMMENT, - BitbucketWebhook::EVENT_COMMIT, GitlabWebhook::EVENT_COMMIT, GitlabWebhook::EVENT_ISSUE_COMMENT, ); diff --git a/app/Action/TaskAssignUser.php b/app/Action/TaskAssignUser.php index 0b4b55f5..da54d186 100644 --- a/app/Action/TaskAssignUser.php +++ b/app/Action/TaskAssignUser.php @@ -2,8 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\BitbucketWebhook; - /** * Assign a task to someone * @@ -31,9 +29,7 @@ class TaskAssignUser extends Base */ public function getCompatibleEvents() { - return array( - BitbucketWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, - ); + return array(); } /** diff --git a/app/Action/TaskClose.php b/app/Action/TaskClose.php index 216d0f17..7f8af786 100644 --- a/app/Action/TaskClose.php +++ b/app/Action/TaskClose.php @@ -3,7 +3,6 @@ namespace Kanboard\Action; use Kanboard\Integration\GitlabWebhook; -use Kanboard\Integration\BitbucketWebhook; use Kanboard\Model\Task; /** @@ -36,8 +35,6 @@ class TaskClose extends Base return array( GitlabWebhook::EVENT_COMMIT, GitlabWebhook::EVENT_ISSUE_CLOSED, - BitbucketWebhook::EVENT_COMMIT, - BitbucketWebhook::EVENT_ISSUE_CLOSED, ); } diff --git a/app/Action/TaskCreation.php b/app/Action/TaskCreation.php index 909ee78c..8daa6726 100644 --- a/app/Action/TaskCreation.php +++ b/app/Action/TaskCreation.php @@ -3,7 +3,6 @@ namespace Kanboard\Action; use Kanboard\Integration\GitlabWebhook; -use Kanboard\Integration\BitbucketWebhook; /** * Create automatically a task from a webhook @@ -34,7 +33,6 @@ class TaskCreation extends Base { return array( GitlabWebhook::EVENT_ISSUE_OPENED, - BitbucketWebhook::EVENT_ISSUE_OPENED, ); } diff --git a/app/Action/TaskOpen.php b/app/Action/TaskOpen.php index 5cb626c3..efbcb874 100644 --- a/app/Action/TaskOpen.php +++ b/app/Action/TaskOpen.php @@ -3,7 +3,6 @@ namespace Kanboard\Action; use Kanboard\Integration\GitlabWebhook; -use Kanboard\Integration\BitbucketWebhook; /** * Open automatically a task @@ -34,7 +33,6 @@ class TaskOpen extends Base { return array( GitlabWebhook::EVENT_ISSUE_REOPENED, - BitbucketWebhook::EVENT_ISSUE_REOPENED, ); } diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index 82e9d635..be8bf030 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -54,23 +54,4 @@ class Webhook extends Base echo $result ? 'PARSED' : 'IGNORED'; } - - /** - * Handle Bitbucket webhooks - * - * @access public - */ - public function bitbucket() - { - $this->checkWebhookToken(); - - $this->bitbucketWebhook->setProjectId($this->request->getIntegerParam('project_id')); - - $result = $this->bitbucketWebhook->parsePayload( - $this->request->getHeader('X-Event-Key'), - $this->request->getJson() - ); - - echo $result ? 'PARSED' : 'IGNORED'; - } } diff --git a/app/Core/Base.php b/app/Core/Base.php index 88029f69..bbc51c50 100644 --- a/app/Core/Base.php +++ b/app/Core/Base.php @@ -45,7 +45,6 @@ use Pimple\Container; * @property \Kanboard\Core\Lexer $lexer * @property \Kanboard\Core\Paginator $paginator * @property \Kanboard\Core\Template $template - * @property \Kanboard\Integration\BitbucketWebhook $bitbucketWebhook * @property \Kanboard\Integration\GitlabWebhook $gitlabWebhook * @property \Kanboard\Formatter\ProjectGanttFormatter $projectGanttFormatter * @property \Kanboard\Formatter\TaskFilterGanttFormatter $taskFilterGanttFormatter diff --git a/app/Core/Event/EventManager.php b/app/Core/Event/EventManager.php index dd70f847..34a70900 100644 --- a/app/Core/Event/EventManager.php +++ b/app/Core/Event/EventManager.php @@ -3,7 +3,6 @@ namespace Kanboard\Core\Event; use Kanboard\Integration\GitlabWebhook; -use Kanboard\Integration\BitbucketWebhook; use Kanboard\Model\Task; use Kanboard\Model\TaskLink; @@ -59,12 +58,6 @@ class EventManager GitlabWebhook::EVENT_ISSUE_REOPENED => t('Gitlab issue reopened'), GitlabWebhook::EVENT_ISSUE_CLOSED => t('Gitlab issue closed'), GitlabWebhook::EVENT_ISSUE_COMMENT => t('Gitlab issue comment created'), - BitbucketWebhook::EVENT_COMMIT => t('Bitbucket commit received'), - BitbucketWebhook::EVENT_ISSUE_OPENED => t('Bitbucket issue opened'), - BitbucketWebhook::EVENT_ISSUE_CLOSED => t('Bitbucket issue closed'), - BitbucketWebhook::EVENT_ISSUE_REOPENED => t('Bitbucket issue reopened'), - BitbucketWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE => t('Bitbucket issue assignee change'), - BitbucketWebhook::EVENT_ISSUE_COMMENT => t('Bitbucket issue comment created'), ); $events = array_merge($events, $this->events); diff --git a/app/Integration/BitbucketWebhook.php b/app/Integration/BitbucketWebhook.php deleted file mode 100644 index e6ba3f1a..00000000 --- a/app/Integration/BitbucketWebhook.php +++ /dev/null @@ -1,312 +0,0 @@ -project_id = $project_id; - } - - /** - * Parse incoming events - * - * @access public - * @param string $type Bitbucket event type - * @param array $payload Bitbucket event - * @return boolean - */ - public function parsePayload($type, array $payload) - { - switch ($type) { - case 'issue:comment_created': - return $this->handleCommentCreated($payload); - case 'issue:created': - return $this->handleIssueOpened($payload); - case 'issue:updated': - return $this->handleIssueUpdated($payload); - case 'repo:push': - return $this->handlePush($payload); - } - - return false; - } - - /** - * Parse comment issue events - * - * @access public - * @param array $payload - * @return boolean - */ - public function handleCommentCreated(array $payload) - { - $task = $this->taskFinder->getByReference($this->project_id, $payload['issue']['id']); - - if (! empty($task)) { - $user = $this->user->getByUsername($payload['actor']['username']); - - if (! empty($user) && ! $this->projectPermission->isAssignable($this->project_id, $user['id'])) { - $user = array(); - } - - $event = array( - 'project_id' => $this->project_id, - 'reference' => $payload['comment']['id'], - 'comment' => $payload['comment']['content']['raw']."\n\n[".t('By @%s on Bitbucket', $payload['actor']['display_name']).']('.$payload['comment']['links']['html']['href'].')', - 'user_id' => ! empty($user) ? $user['id'] : 0, - 'task_id' => $task['id'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_COMMENT, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - /** - * Handle new issues - * - * @access public - * @param array $payload - * @return boolean - */ - public function handleIssueOpened(array $payload) - { - $event = array( - 'project_id' => $this->project_id, - 'reference' => $payload['issue']['id'], - 'title' => $payload['issue']['title'], - 'description' => $payload['issue']['content']['raw']."\n\n[".t('Bitbucket Issue').']('.$payload['issue']['links']['html']['href'].')', - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_OPENED, - new GenericEvent($event) - ); - - return true; - } - - /** - * Handle issue updates - * - * @access public - * @param array $payload - * @return boolean - */ - public function handleIssueUpdated(array $payload) - { - $task = $this->taskFinder->getByReference($this->project_id, $payload['issue']['id']); - - if (empty($task)) { - return false; - } - - if (isset($payload['changes']['status'])) { - return $this->handleStatusChange($task, $payload); - } elseif (isset($payload['changes']['assignee'])) { - return $this->handleAssigneeChange($task, $payload); - } - - return false; - } - - /** - * Handle issue status change - * - * @access public - * @param array $task - * @param array $payload - * @return boolean - */ - public function handleStatusChange(array $task, array $payload) - { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'reference' => $payload['issue']['id'], - ); - - switch ($payload['issue']['state']) { - case 'closed': - $this->container['dispatcher']->dispatch(self::EVENT_ISSUE_CLOSED, new GenericEvent($event)); - return true; - case 'open': - $this->container['dispatcher']->dispatch(self::EVENT_ISSUE_REOPENED, new GenericEvent($event)); - return true; - } - - return false; - } - - /** - * Handle issue assignee change - * - * @access public - * @param array $task - * @param array $payload - * @return boolean - */ - public function handleAssigneeChange(array $task, array $payload) - { - if (empty($payload['issue']['assignee'])) { - return $this->handleIssueUnassigned($task, $payload); - } - - return $this->handleIssueAssigned($task, $payload); - } - - /** - * Handle issue assigned - * - * @access public - * @param array $task - * @param array $payload - * @return boolean - */ - public function handleIssueAssigned(array $task, array $payload) - { - $user = $this->user->getByUsername($payload['issue']['assignee']['username']); - - if (empty($user)) { - return false; - } - - if (! $this->projectPermission->isAssignable($this->project_id, $user['id'])) { - return false; - } - - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'owner_id' => $user['id'], - 'reference' => $payload['issue']['id'], - ); - - $this->container['dispatcher']->dispatch(self::EVENT_ISSUE_ASSIGNEE_CHANGE, new GenericEvent($event)); - - return true; - } - - /** - * Handle issue unassigned - * - * @access public - * @param array $task - * @param array $payload - * @return boolean - */ - public function handleIssueUnassigned(array $task, array $payload) - { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'owner_id' => 0, - 'reference' => $payload['issue']['id'], - ); - - $this->container['dispatcher']->dispatch(self::EVENT_ISSUE_ASSIGNEE_CHANGE, new GenericEvent($event)); - - return true; - } - - /** - * Parse push events - * - * @access public - * @param array $payload - * @return boolean - */ - public function handlePush(array $payload) - { - if (isset($payload['push']['changes'])) { - foreach ($payload['push']['changes'] as $change) { - if (isset($change['new']['target']) && $this->handleCommit($change['new']['target'], $payload['actor'])) { - return true; - } - } - } - - return false; - } - - /** - * Parse commit - * - * @access public - * @param array $commit Bitbucket commit - * @param array $actor Bitbucket actor - * @return boolean - */ - public function handleCommit(array $commit, array $actor) - { - $task_id = $this->task->getTaskIdFromText($commit['message']); - - if (empty($task_id)) { - return false; - } - - $task = $this->taskFinder->getById($task_id); - - if (empty($task)) { - return false; - } - - if ($task['project_id'] != $this->project_id) { - return false; - } - - $this->container['dispatcher']->dispatch( - self::EVENT_COMMIT, - new GenericEvent(array( - 'task_id' => $task_id, - 'commit_message' => $commit['message'], - 'commit_url' => $commit['links']['html']['href'], - 'comment' => $commit['message']."\n\n[".t('Commit made by @%s on Bitbucket', $actor['display_name']).']('.$commit['links']['html']['href'].')', - ) + $task) - ); - - return true; - } -} diff --git a/app/Locale/bs_BA/translations.php b/app/Locale/bs_BA/translations.php index f58c3d6b..50b17c1b 100644 --- a/app/Locale/bs_BA/translations.php +++ b/app/Locale/bs_BA/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Već imaš jedan pod-zadatak "u radu"', 'Which parts of the project do you want to duplicate?' => 'Koje delove projekta želiš duplicirati?', 'Disallow login form' => 'Zabrani prijavnu formu', - 'Bitbucket commit received' => 'Bitbucket: commit dobijen', - 'Bitbucket webhooks' => 'Bitbucket: webhooks', - 'Help on Bitbucket webhooks' => 'Pomoć na Bitbucket webhooks', 'Start' => 'Početak', 'End' => 'Kraj', 'Task age in days' => 'Trajanje zadatka u danima', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'Korisnik će dobiti email', 'Email subject' => 'Predmet email-a', 'Date' => 'Datum', - 'By @%s on Bitbucket' => 'Od @%s na Bitbucket', - 'Bitbucket Issue' => 'Bitbucket problem', - 'Commit made by @%s on Bitbucket' => 'Commit-ao @%s na Bitbucket', - 'Commit made by @%s on Gitlab' => 'Commit-ao @%s na Gitlab', 'Add a comment log when moving the task between columns' => 'Dodaj komentar u dnevnik kada se pomjeri zadatak između kolona', 'Move the task to another column when the category is changed' => 'Pomjeri zadatak u drugu kolonu kada je kategorija promijenjena', 'Send a task by email to someone' => 'Pošalji zadatak nekome emailom', 'Reopen a task' => 'Ponovo otvori zadatak', - 'Bitbucket issue opened' => 'Bitbucket: otvoren problem', - 'Bitbucket issue closed' => 'Bitbucket: zatvoren problem', - 'Bitbucket issue reopened' => 'Bitbucket: problem ponovo otvoren', - 'Bitbucket issue assignee change' => 'Bitbucket: promijenjen izvršilac problema', - 'Bitbucket issue comment created' => 'Bitbucket: dodan komentar na problemu', 'Column change' => 'Promijena kolone', 'Position change' => 'Promjena pozicije', 'Swimlane change' => 'Promjena swimline trake', diff --git a/app/Locale/cs_CZ/translations.php b/app/Locale/cs_CZ/translations.php index 9b65bd3b..8baba251 100644 --- a/app/Locale/cs_CZ/translations.php +++ b/app/Locale/cs_CZ/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Jeden dílčí úkol již aktuálně řešíte', 'Which parts of the project do you want to duplicate?' => 'Které části projektu chcete duplikovat?', // 'Disallow login form' => '', - 'Bitbucket commit received' => 'Bitbucket commit erhalten', - 'Bitbucket webhooks' => 'Bitbucket webhooks', - 'Help on Bitbucket webhooks' => 'Hilfe für Bitbucket webhooks', 'Start' => 'Začátek', 'End' => 'Konec', 'Task age in days' => 'Doba trvání úkolu ve dnech', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'Uživatel, který dostane E-mail', 'Email subject' => 'E-mail Předmět', 'Date' => 'Datum', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', 'Add a comment log when moving the task between columns' => 'Přidat komentář když je úkol přesouván mezi sloupci', 'Move the task to another column when the category is changed' => 'Přesun úkolu do jiného sloupce když je změněna kategorie', 'Send a task by email to someone' => 'Poslat někomu úkol poštou', 'Reopen a task' => 'Znovu otevřít úkol', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', 'Column change' => 'Spalte geändert', 'Position change' => 'Position geändert', 'Swimlane change' => 'Swimlane geändert', diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php index 99cf7ffb..dd531abb 100644 --- a/app/Locale/da_DK/translations.php +++ b/app/Locale/da_DK/translations.php @@ -578,9 +578,6 @@ return array( // 'You already have one subtask in progress' => '', // 'Which parts of the project do you want to duplicate?' => '', // 'Disallow login form' => '', - // 'Bitbucket commit received' => '', - // 'Bitbucket webhooks' => '', - // 'Help on Bitbucket webhooks' => '', // 'Start' => '', // 'End' => '', // 'Task age in days' => '', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php index cbdc1fde..263e0421 100644 --- a/app/Locale/de_DE/translations.php +++ b/app/Locale/de_DE/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Bereits eine Teilaufgabe in Bearbeitung', 'Which parts of the project do you want to duplicate?' => 'Welcher Teil des Projekts soll kopiert werden?', 'Disallow login form' => 'Verbiete Login-Formular', - 'Bitbucket commit received' => 'Bitbucket-Commit erhalten', - 'Bitbucket webhooks' => 'Bitbucket-Webhooks', - 'Help on Bitbucket webhooks' => 'Hilfe für Bitbucket-Webhooks', 'Start' => 'Start', 'End' => 'Ende', 'Task age in days' => 'Aufgabenalter in Tagen', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'Empfänger der E-Mail', 'Email subject' => 'E-Mail-Betreff', 'Date' => 'Datum', - 'By @%s on Bitbucket' => 'Durch @%s auf Bitbucket', - 'Bitbucket Issue' => 'Bitbucket-Issue', - 'Commit made by @%s on Bitbucket' => 'Commit von @%s auf Bitbucket', - 'Commit made by @%s on Gitlab' => 'Commit von @%s auf Gitlab', 'Add a comment log when moving the task between columns' => 'Kommentar hinzufügen, wenn Aufgabe in andere Spalte verschoben wird', 'Move the task to another column when the category is changed' => 'Aufgabe in andere Spalte verschieben, wenn Kategorie geändert wird', 'Send a task by email to someone' => 'Aufgabe per E-Mail versenden', 'Reopen a task' => 'Aufgabe wieder öffnen', - 'Bitbucket issue opened' => 'Bitbucket Ticket eröffnet', - 'Bitbucket issue closed' => 'Bitbucket Ticket geschlossen', - 'Bitbucket issue reopened' => 'Bitbucket Ticket wieder eröffnet', - 'Bitbucket issue assignee change' => 'Bitbucket Ticket Zuordnung geändert', - 'Bitbucket issue comment created' => 'Bitbucket Ticket Kommentar erstellt', 'Column change' => 'Spalte geändert', 'Position change' => 'Position geändert', 'Swimlane change' => 'Swimlane geändert', diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php index 03a62976..aa08e35c 100644 --- a/app/Locale/es_ES/translations.php +++ b/app/Locale/es_ES/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Ya dispones de una subtarea en progreso', 'Which parts of the project do you want to duplicate?' => '¿Qué partes del proyecto desea duplicar?', 'Disallow login form' => 'Deshabilitar formulario de ingreso', - 'Bitbucket commit received' => 'Recibido envío desde Bitbucket', - 'Bitbucket webhooks' => 'Disparadores Web (webhooks) de Bitbucket', - 'Help on Bitbucket webhooks' => 'Ayuda sobre disparadores web (webhooks) de Bitbucket', 'Start' => 'Inicio', 'End' => 'Fin', 'Task age in days' => 'Edad de la tarea en días', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'Usuario que recibirá el correo', 'Email subject' => 'Asunto del correo', 'Date' => 'Fecha', - 'By @%s on Bitbucket' => 'Mediante @%s en Bitbucket', - 'Bitbucket Issue' => 'Asunto de Bitbucket', - 'Commit made by @%s on Bitbucket' => 'Envío realizado por @%s en Bitbucket', - 'Commit made by @%s on Gitlab' => 'Envío realizado por @%s en Gitlab', 'Add a comment log when moving the task between columns' => 'Añadir un comentario al mover la tarea entre columnas', 'Move the task to another column when the category is changed' => 'Mover la tarea a otra columna cuando cambia la categoría', 'Send a task by email to someone' => 'Enviar una tarea a alguien por correo', 'Reopen a task' => 'Reabrir tarea', - 'Bitbucket issue opened' => 'Abierto asunto de Bitbucket', - 'Bitbucket issue closed' => 'Cerrado asunto de Bitbucket', - 'Bitbucket issue reopened' => 'Reabierto asunto de Bitbucket', - 'Bitbucket issue assignee change' => 'Cambiado concesionario de asunto de Bitbucket', - 'Bitbucket issue comment created' => 'Creado comentario de asunto de Bitbucket', 'Column change' => 'Cambio de columna', 'Position change' => 'Cambio de posición', 'Swimlane change' => 'Cambio de calle', diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php index 1e72850d..e1a14749 100644 --- a/app/Locale/fi_FI/translations.php +++ b/app/Locale/fi_FI/translations.php @@ -578,9 +578,6 @@ return array( // 'You already have one subtask in progress' => '', // 'Which parts of the project do you want to duplicate?' => '', // 'Disallow login form' => '', - // 'Bitbucket commit received' => '', - // 'Bitbucket webhooks' => '', - // 'Help on Bitbucket webhooks' => '', // 'Start' => '', // 'End' => '', // 'Task age in days' => '', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php index 1d85232b..f974584f 100644 --- a/app/Locale/fr_FR/translations.php +++ b/app/Locale/fr_FR/translations.php @@ -580,9 +580,6 @@ return array( 'You already have one subtask in progress' => 'Vous avez déjà une sous-tâche en progrès', 'Which parts of the project do you want to duplicate?' => 'Quelles parties du projet voulez-vous dupliquer ?', 'Disallow login form' => 'Interdire le formulaire d\'authentification', - 'Bitbucket commit received' => 'Commit reçu via Bitbucket', - 'Bitbucket webhooks' => 'Webhook Bitbucket', - 'Help on Bitbucket webhooks' => 'Aide sur les webhooks Bitbucket', 'Start' => 'Début', 'End' => 'Fin', 'Task age in days' => 'Âge de la tâche en jours', @@ -752,19 +749,10 @@ return array( 'User that will receive the email' => 'Utilisateur qui va reçevoir l\'email', 'Email subject' => 'Sujet de l\'email', 'Date' => 'Date', - 'By @%s on Bitbucket' => 'Par @%s sur Bitbucket', - 'Bitbucket Issue' => 'Ticket Bitbucket', - 'Commit made by @%s on Bitbucket' => 'Commit fait par @%s sur Bitbucket', - 'Commit made by @%s on Gitlab' => 'Commit fait par @%s sur Gitlab', 'Add a comment log when moving the task between columns' => 'Ajouter un commentaire d\'information lorsque une tâche est déplacée dans une autre colonne', 'Move the task to another column when the category is changed' => 'Déplacer une tâche vers une autre colonne lorsque la catégorie a changé', 'Send a task by email to someone' => 'Envoyer une tâche par email à quelqu\'un', 'Reopen a task' => 'Rouvrir une tâche', - 'Bitbucket issue opened' => 'Ticket Bitbucket ouvert', - 'Bitbucket issue closed' => 'Ticket Bitbucket fermé', - 'Bitbucket issue reopened' => 'Ticket Bitbucket rouvert', - 'Bitbucket issue assignee change' => 'Changement d\'assigné sur un ticket Bitbucket', - 'Bitbucket issue comment created' => 'Commentaire créé sur un ticket Bitbucket', 'Column change' => 'Changement de colonne', 'Position change' => 'Changement de position', 'Swimlane change' => 'Changement de swimlane', diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php index 1c220016..392ead6c 100644 --- a/app/Locale/hu_HU/translations.php +++ b/app/Locale/hu_HU/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Már van egy folyamatban levő részfeladata', 'Which parts of the project do you want to duplicate?' => 'A projekt mely részeit szeretné másolni?', // 'Disallow login form' => '', - 'Bitbucket commit received' => 'Bitbucket commit érkezett', - 'Bitbucket webhooks' => 'Bitbucket webhooks', - 'Help on Bitbucket webhooks' => 'Bitbucket webhooks súgó', 'Start' => 'Kezdet', 'End' => 'Vég', 'Task age in days' => 'Feladat életkora napokban', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/id_ID/translations.php b/app/Locale/id_ID/translations.php index b9e8948d..9640abfb 100644 --- a/app/Locale/id_ID/translations.php +++ b/app/Locale/id_ID/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Anda sudah ada satu subtugas dalam proses', 'Which parts of the project do you want to duplicate?' => 'Bagian dalam proyek mana yang ingin anda duplikasi?', 'Disallow login form' => 'Larang formulir masuk', - 'Bitbucket commit received' => 'Menerima komit Bitbucket', - 'Bitbucket webhooks' => 'Webhook Bitbucket', - 'Help on Bitbucket webhooks' => 'Bantuan pada webhook Bitbucket', 'Start' => 'Mulai', 'End' => 'Selesai', 'Task age in days' => 'Usia tugas dalam hari', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'Pengguna yang akan menerima email', 'Email subject' => 'Subjek Email', 'Date' => 'Tanggal', - 'By @%s on Bitbucket' => 'Oleh @%s pada Bitbucket', - 'Bitbucket Issue' => 'Tiket Bitbucket', - 'Commit made by @%s on Bitbucket' => 'Komit dibuat oleh @%s pada Bitbucket', - 'Commit made by @%s on Gitlab' => 'Komit dibuat oleh @%s pada Gitlab', 'Add a comment log when moving the task between columns' => 'Menambahkan log komentar ketika memindahkan tugas antara kolom', 'Move the task to another column when the category is changed' => 'Pindahkan tugas ke kolom lain ketika kategori berubah', 'Send a task by email to someone' => 'Kirim tugas melalui email ke seseorang', 'Reopen a task' => 'Membuka kembali tugas', - 'Bitbucket issue opened' => 'Tiket Bitbucket dibuka', - 'Bitbucket issue closed' => 'Tiket Bitbucket ditutup', - 'Bitbucket issue reopened' => 'Tiket Bitbucket dibuka kembali', - 'Bitbucket issue assignee change' => 'Perubahan penugasan tiket Bitbucket', - 'Bitbucket issue comment created' => 'Komentar dibuat tiket Bitbucket', 'Column change' => 'Kolom berubah', 'Position change' => 'Posisi berubah', 'Swimlane change' => 'Swimlane berubah', diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php index 4d01d70c..81d1853f 100644 --- a/app/Locale/it_IT/translations.php +++ b/app/Locale/it_IT/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Hai già un sotto-compito in progresso', 'Which parts of the project do you want to duplicate?' => 'Quali parti del progetto vuoi duplicare?', // 'Disallow login form' => '', - 'Bitbucket commit received' => 'Commit ricevuto da Bitbucket', - 'Bitbucket webhooks' => 'Webhooks di Bitbucket', - 'Help on Bitbucket webhooks' => 'Guida ai Webhooks di Bitbucket', 'Start' => 'Inizio', 'End' => 'Fine', 'Task age in days' => 'Anzianità del compito in giorni', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php index f98d96ee..3b24f224 100644 --- a/app/Locale/ja_JP/translations.php +++ b/app/Locale/ja_JP/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'すでに進行中のサブタスクがあります。', 'Which parts of the project do you want to duplicate?' => 'プロジェクトの何を複製しますか?', // 'Disallow login form' => '', - 'Bitbucket commit received' => 'Bitbucket コミットを受信しました', - 'Bitbucket webhooks' => 'Bitbucket Webhooks', - 'Help on Bitbucket webhooks' => 'Bitbucket Webhooks のヘルプ', 'Start' => '開始', 'End' => '終了', 'Task age in days' => 'タスクの経過日数', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/nb_NO/translations.php b/app/Locale/nb_NO/translations.php index 749630d9..75631126 100644 --- a/app/Locale/nb_NO/translations.php +++ b/app/Locale/nb_NO/translations.php @@ -578,9 +578,6 @@ return array( // 'You already have one subtask in progress' => '', 'Which parts of the project do you want to duplicate?' => 'Hvilke deler av dette prosjektet ønsker du å kopiere?', // 'Disallow login form' => '', - // 'Bitbucket commit received' => '', - // 'Bitbucket webhooks' => '', - // 'Help on Bitbucket webhooks' => '', 'Start' => 'Start', 'End' => 'Slutt', 'Task age in days' => 'Dager siden oppgaven ble opprettet', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', 'Date' => 'Dato', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', 'Add a comment log when moving the task between columns' => 'Legg til en kommentar i loggen når en oppgave flyttes mellom kolonnene', 'Move the task to another column when the category is changed' => 'Flytt oppgaven til en annen kolonne når kategorien endres', 'Send a task by email to someone' => 'Send en oppgave på epost til noen', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', 'Column change' => 'Endret kolonne', 'Position change' => 'Posisjonsendring', 'Swimlane change' => 'Endret svømmebane', diff --git a/app/Locale/nl_NL/translations.php b/app/Locale/nl_NL/translations.php index 51148db5..5e1d2960 100644 --- a/app/Locale/nl_NL/translations.php +++ b/app/Locale/nl_NL/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'U heeft al een subtaak in behandeling', 'Which parts of the project do you want to duplicate?' => 'Welke onderdelen van het project wilt u dupliceren?', // 'Disallow login form' => '', - 'Bitbucket commit received' => 'Bitbucket commit ontvangen', - 'Bitbucket webhooks' => 'Bitbucket webhooks', - 'Help on Bitbucket webhooks' => 'Help bij Bitbucket webhooks', 'Start' => 'Start', 'End' => 'Eind', 'Task age in days' => 'Leeftijd taak in dagen', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php index 0356ab62..253e19f6 100644 --- a/app/Locale/pl_PL/translations.php +++ b/app/Locale/pl_PL/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Masz już zadanie o statusie "w trakcie"', 'Which parts of the project do you want to duplicate?' => 'Które elementy projektu chcesz zduplikować?', // 'Disallow login form' => '', - // 'Bitbucket commit received' => '', - // 'Bitbucket webhooks' => '', - // 'Help on Bitbucket webhooks' => '', 'Start' => 'Początek', 'End' => 'Koniec', 'Task age in days' => 'Wiek zadania w dniach', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', 'Send a task by email to someone' => 'Wyślij zadanie mailem do kogokolwiek', 'Reopen a task' => 'Otwórz ponownie zadanie', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', 'Column change' => 'Zmiana kolumny', 'Position change' => 'Zmiana pozycji', 'Swimlane change' => 'Zmiana Swimlane', diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php index 3873a4f9..ac063b16 100644 --- a/app/Locale/pt_BR/translations.php +++ b/app/Locale/pt_BR/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Você já tem um subtarefa em andamento', 'Which parts of the project do you want to duplicate?' => 'Quais partes do projeto você deseja duplicar?', 'Disallow login form' => 'Proibir o formulário de login', - 'Bitbucket commit received' => '"Commit" recebido via Bitbucket', - 'Bitbucket webhooks' => 'Webhook Bitbucket', - 'Help on Bitbucket webhooks' => 'Ajuda sobre os webhooks do Bitbucket', 'Start' => 'Início', 'End' => 'Fim', 'Task age in days' => 'Idade da tarefa em dias', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'O usuário que vai receber o e-mail', 'Email subject' => 'Assunto do e-mail', 'Date' => 'Data', - 'By @%s on Bitbucket' => 'Por @%s no Bitbucket', - 'Bitbucket Issue' => 'Bitbucket Issue', - 'Commit made by @%s on Bitbucket' => 'Commit feito por @%s no Bitbucket', - 'Commit made by @%s on Gitlab' => 'Commit feito por @%s no Gitlab', 'Add a comment log when moving the task between columns' => 'Adicionar um comentário de log quando uma tarefa é movida para uma outra coluna', 'Move the task to another column when the category is changed' => 'Mover uma tarefa para outra coluna quando a categoria mudou', 'Send a task by email to someone' => 'Enviar uma tarefa por e-mail a alguém', 'Reopen a task' => 'Reabrir uma tarefa', - 'Bitbucket issue opened' => 'Bitbucket issue opened', - 'Bitbucket issue closed' => 'Bitbucket issue closed', - 'Bitbucket issue reopened' => 'Bitbucket issue reopened', - 'Bitbucket issue assignee change' => 'Bitbucket issue assignee change', - 'Bitbucket issue comment created' => 'Bitbucket issue comment created', 'Column change' => 'Mudança de coluna', 'Position change' => 'Mudança de posição', 'Swimlane change' => 'Mudança de swimlane', diff --git a/app/Locale/pt_PT/translations.php b/app/Locale/pt_PT/translations.php index b7b154b8..fec3b724 100644 --- a/app/Locale/pt_PT/translations.php +++ b/app/Locale/pt_PT/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Já tem uma subtarefa em andamento', 'Which parts of the project do you want to duplicate?' => 'Quais as partes do projecto que deseja duplicar?', 'Disallow login form' => 'Desactivar login', - 'Bitbucket commit received' => '"Commit" recebido via Bitbucket', - 'Bitbucket webhooks' => 'Webhook Bitbucket', - 'Help on Bitbucket webhooks' => 'Ajuda sobre os webhooks Bitbucket', 'Start' => 'Inicio', 'End' => 'Fim', 'Task age in days' => 'Idade da tarefa em dias', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'O utilizador que vai receber o e-mail', 'Email subject' => 'Assunto do e-mail', 'Date' => 'Data', - 'By @%s on Bitbucket' => 'Por @%s no Bitbucket', - 'Bitbucket Issue' => 'Problema Bitbucket', - 'Commit made by @%s on Bitbucket' => 'Commit feito por @%s no Bitbucket', - 'Commit made by @%s on Gitlab' => 'Commit feito por @%s no Gitlab', 'Add a comment log when moving the task between columns' => 'Adicionar um comentário de log quando uma tarefa é movida para uma outra coluna', 'Move the task to another column when the category is changed' => 'Mover uma tarefa para outra coluna quando a categoria mudar', 'Send a task by email to someone' => 'Enviar uma tarefa por e-mail a alguém', 'Reopen a task' => 'Reabrir uma tarefa', - 'Bitbucket issue opened' => 'Problema aberto no Bitbucket', - 'Bitbucket issue closed' => 'Problema fechado no Bitbucket', - 'Bitbucket issue reopened' => 'Problema reaberto no Bitbucket', - 'Bitbucket issue assignee change' => 'Alterar assignação do problema no Bitbucket', - 'Bitbucket issue comment created' => 'Comentário ao problema adicionado ao Bitbucket', 'Column change' => 'Mudança de coluna', 'Position change' => 'Mudança de posição', 'Swimlane change' => 'Mudança de swimlane', diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php index 0afd9b96..a8066115 100644 --- a/app/Locale/ru_RU/translations.php +++ b/app/Locale/ru_RU/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'У вас уже есть одна задача в разработке', 'Which parts of the project do you want to duplicate?' => 'Какие части проекта должны быть дублированы?', 'Disallow login form' => 'Запретить форму входа', - 'Bitbucket commit received' => 'Получен коммит с Bitbucket', - 'Bitbucket webhooks' => 'BitBucket webhooks', - 'Help on Bitbucket webhooks' => 'Помощь по BitBucket webhooks', 'Start' => 'Начало', 'End' => 'Конец', 'Task age in days' => 'Возраст задачи в днях', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'Пользователь, который будет получать e-mail', 'Email subject' => 'Тема e-mail', 'Date' => 'Дата', - 'By @%s on Bitbucket' => 'Польз. @%s на Bitbucket', - 'Bitbucket Issue' => 'Задача Bitbucket', - 'Commit made by @%s on Bitbucket' => 'Коммит сделан польз. @%s на Bitbucket', - 'Commit made by @%s on Gitlab' => 'Коммит сделан польз. @%s в Gitlab', 'Add a comment log when moving the task between columns' => 'Добавлять запись при перемещении задачи между колонками', 'Move the task to another column when the category is changed' => 'Переносить задачи в другую колонку при изменении категории', 'Send a task by email to someone' => 'Отправить задачу по email', 'Reopen a task' => 'Переоткрыть задачу', - 'Bitbucket issue opened' => 'Открыта задача Bitbucket', - 'Bitbucket issue closed' => 'Закрыта задача Bitbucket', - 'Bitbucket issue reopened' => 'Переоткрыта задача Bitbucket', - 'Bitbucket issue assignee change' => 'Изменный назначенный для задачи на Bitbucket', - 'Bitbucket issue comment created' => 'Создан комментарий для задачи на Bitbucket', 'Column change' => 'Изменение колонки', 'Position change' => 'Позиция изменена', 'Swimlane change' => 'Дорожка изменена', diff --git a/app/Locale/sr_Latn_RS/translations.php b/app/Locale/sr_Latn_RS/translations.php index 5e56d805..b59e2e51 100644 --- a/app/Locale/sr_Latn_RS/translations.php +++ b/app/Locale/sr_Latn_RS/translations.php @@ -578,9 +578,6 @@ return array( // 'You already have one subtask in progress' => '', 'Which parts of the project do you want to duplicate?' => 'Koje delove projekta želite da kopirate', // 'Disallow login form' => '', - // 'Bitbucket commit received' => '', - // 'Bitbucket webhooks' => '', - // 'Help on Bitbucket webhooks' => '', // 'Start' => '', // 'End' => '', // 'Task age in days' => '', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php index 67d0251f..bf6ee199 100644 --- a/app/Locale/sv_SE/translations.php +++ b/app/Locale/sv_SE/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Du har redan en deluppgift igång', 'Which parts of the project do you want to duplicate?' => 'Vilka delar av projektet vill du duplicera?', // 'Disallow login form' => '', - 'Bitbucket commit received' => 'Bitbucket bidrag mottaget', - 'Bitbucket webhooks' => 'Bitbucket webhooks', - 'Help on Bitbucket webhooks' => 'Hjälp för Bitbucket webhooks', 'Start' => 'Start', 'End' => 'Slut', 'Task age in days' => 'Uppgiftsålder i dagar', @@ -750,19 +747,10 @@ return array( 'User that will receive the email' => 'Användare som kommer att ta emot mailet', 'Email subject' => 'E-post ämne', 'Date' => 'Datum', - 'By @%s on Bitbucket' => 'Av @%s på Bitbucket', - 'Bitbucket Issue' => 'Bitbucket fråga', - 'Commit made by @%s on Bitbucket' => 'Bidrag gjort av @%s på Bitbucket', - 'Commit made by @%s on Gitlab' => 'Bidrag gjort av @%s på Gitlab', 'Add a comment log when moving the task between columns' => 'Lägg till en kommentarslogg när en uppgift flyttas mellan kolumner', 'Move the task to another column when the category is changed' => 'Flyttas uppgiften till en annan kolumn när kategorin ändras', 'Send a task by email to someone' => 'Skicka en uppgift med e-post till någon', 'Reopen a task' => 'Återöppna en uppgift', - 'Bitbucket issue opened' => 'Bitbucketfråga öppnad', - 'Bitbucket issue closed' => 'Bitbucketfråga stängd', - 'Bitbucket issue reopened' => 'Bitbucketfråga återöppnad', - 'Bitbucket issue assignee change' => 'Bitbucketfråga tilldelningsändring', - 'Bitbucket issue comment created' => 'Bitbucketfråga kommentar skapad', 'Column change' => 'Kolumnändring', 'Position change' => 'Positionsändring', 'Swimlane change' => 'Swimlaneändring', diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php index 85197bc4..81946540 100644 --- a/app/Locale/th_TH/translations.php +++ b/app/Locale/th_TH/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'คุณมีหนึ่งงานย่อยที่กำลังทำงาน', // 'Which parts of the project do you want to duplicate?' => '', // 'Disallow login form' => '', - // 'Bitbucket commit received' => '', - // 'Bitbucket webhooks' => '', - // 'Help on Bitbucket webhooks' => '', 'Start' => 'เริ่ม', 'End' => 'จบ', 'Task age in days' => 'อายุงาน', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/tr_TR/translations.php b/app/Locale/tr_TR/translations.php index 25adf099..10472aad 100644 --- a/app/Locale/tr_TR/translations.php +++ b/app/Locale/tr_TR/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => 'Zaten işlemde olan bir alt görev var', 'Which parts of the project do you want to duplicate?' => 'Projenin hangi kısımlarının kopyasını oluşturmak istiyorsunuz?', // 'Disallow login form' => '', - 'Bitbucket commit received' => 'Bitbucket commit alındı', - 'Bitbucket webhooks' => 'Bitbucket webhooks', - 'Help on Bitbucket webhooks' => 'Bitbucket webhooks için yardım', 'Start' => 'Başlangıç', 'End' => 'Son', 'Task age in days' => 'Görev yaşı gün olarak', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', // 'Email subject' => '', // 'Date' => '', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', // 'Reopen a task' => '', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php index 53caba72..a152748f 100644 --- a/app/Locale/zh_CN/translations.php +++ b/app/Locale/zh_CN/translations.php @@ -578,9 +578,6 @@ return array( 'You already have one subtask in progress' => '你已经有了一个进行中的子任务', 'Which parts of the project do you want to duplicate?' => '要复制项目的哪些内容?', // 'Disallow login form' => '', - 'Bitbucket commit received' => '收到Bitbucket提交', - 'Bitbucket webhooks' => 'Bitbucket网络钩子', - 'Help on Bitbucket webhooks' => 'Bitbucket网络钩子帮助', 'Start' => '开始', 'End' => '结束', 'Task age in days' => '任务存在天数', @@ -750,19 +747,10 @@ return array( // 'User that will receive the email' => '', 'Email subject' => '邮件主题', 'Date' => '日期', - // 'By @%s on Bitbucket' => '', - // 'Bitbucket Issue' => '', - // 'Commit made by @%s on Bitbucket' => '', - // 'Commit made by @%s on Gitlab' => '', // 'Add a comment log when moving the task between columns' => '', // 'Move the task to another column when the category is changed' => '', // 'Send a task by email to someone' => '', 'Reopen a task' => '重新开始一个任务', - // 'Bitbucket issue opened' => '', - // 'Bitbucket issue closed' => '', - // 'Bitbucket issue reopened' => '', - // 'Bitbucket issue assignee change' => '', - // 'Bitbucket issue comment created' => '', // 'Column change' => '', // 'Position change' => '', // 'Swimlane change' => '', diff --git a/app/ServiceProvider/ClassProvider.php b/app/ServiceProvider/ClassProvider.php index 659d95b6..f7cd466c 100644 --- a/app/ServiceProvider/ClassProvider.php +++ b/app/ServiceProvider/ClassProvider.php @@ -116,7 +116,6 @@ class ClassProvider implements ServiceProviderInterface 'UserProfile', ), 'Integration' => array( - 'BitbucketWebhook', 'GitlabWebhook', ) ); diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php index 6a149dbe..77b1b793 100644 --- a/app/Template/project/integrations.php +++ b/app/Template/project/integrations.php @@ -12,10 +12,4 @@

url->doc(t('Help on Gitlab webhooks'), 'gitlab-webhooks') ?>

- -

 

-
-
-

url->doc(t('Help on Bitbucket webhooks'), 'bitbucket-webhooks') ?>

-
\ No newline at end of file diff --git a/doc/bitbucket-webhooks.markdown b/doc/bitbucket-webhooks.markdown deleted file mode 100644 index 925615fa..00000000 --- a/doc/bitbucket-webhooks.markdown +++ /dev/null @@ -1,55 +0,0 @@ -Bitbucket webhooks -================== - -Bitbucket events can be connected to Kanboard automatic actions. - -List of supported events ------------------------- - -- Bitbucket commit received -- Bitbucket issue opened -- Bitbucket issue closed -- Bitbucket issue reopened -- Bitbucket issue assignee change -- Bitbucket issue comment created - -List of supported actions -------------------------- - -- Create a task from an external provider -- Change the assignee based on an external username -- Create a comment from an external provider -- Close a task -- Open a task - -Configuration -------------- - -![Bitbucket configuration](http://kanboard.net/screenshots/documentation/bitbucket-webhooks.png) - -1. On Kanboard, go to the project settings and choose the section **Integrations** -2. Copy the Bitbucket webhook URL -3. On Bitbucket, go to the project settings and go to the section **Webhooks** -4. Choose a title for your webhook and paste the Kanboard URL - -Examples --------- - -### Close a Kanboard task when a commit pushed to Bitbucket - -- Choose the event: **Bitbucket commit received** -- Choose action: **Close the task** - -When one or more commits are sent to Bitbucket, Kanboard will receive the information, each commit message with a task number included will be closed. - -Example: - -- Commit message: "Fix bug #1234" -- That will close the Kanboard task #1234 - -### Add comment when a commit received - -- Choose the event: **Bitbucket commit received** -- Choose action: **Create a comment from an external provider** - -The comment will contain the commit message and the URL to the commit. diff --git a/doc/github-webhooks.markdown b/doc/github-webhooks.markdown deleted file mode 100644 index a20b5a18..00000000 --- a/doc/github-webhooks.markdown +++ /dev/null @@ -1,99 +0,0 @@ -Github webhooks integration -=========================== - -Kanboard can be synchronized with Github. -Currently, it's only a one-way synchronization: Github to Kanboard. - -Github webhooks are plugged to Kanboard automatic actions. -When an event occurs on Github, an action can be performed on Kanboard. - -List of available events ------------------------- - -- Github commit received -- Github issue opened -- Github issue closed -- Github issue reopened -- Github issue assignee change -- Github issue label change -- Github issue comment created - -List of available actions -------------------------- - -- Create a task from an external provider -- Change the assignee based on an external username -- Change the category based on an external label -- Create a comment from an external provider -- Close a task -- Open a task - -Configuration on Github ------------------------ - -Go to your project settings page, on the left choose "Webhooks & Services", then click on the button "Add webhook". - -![Github configuration](http://kanboard.net/screenshots/documentation/github-webhooks.png) - -- **Payload url**: Copy and paste the link from the Kanboard project settings (section **Integrations > Github**). -- Select **"Send me everything"** - -![Github webhook](http://kanboard.net/screenshots/documentation/kanboard-github-webhooks.png) - -Each time an event happens, Github will send an event to Kanboard now. -The Kanboard webhook url is protected by a random token. - -Everything else is handled by automatic actions in your Kanboard project settings. - -Examples --------- - -### Close a Kanboard task when a commit pushed to Github - -- Choose the event: **Github commit received** -- Choose the action: **Close the task** - -When one or more commits are sent to Github, Kanboard will receive the information, each commit message with a task number included will be closed. - -Example: - -- Commit message: "Fix bug #1234" -- That will close the Kanboard task #1234 - -### Create a Kanboard task when a new issue is opened on Github - -- Choose the event: **Github issue opened** -- Choose the action: **Create a task from an external provider** - -When a task is created from a Github issue, the link to the issue is added to the description and the task have a new field named "Reference" (this is the Github ticket number). - -### Close a Kanboard task when an issue is closed on Github - -- Choose the event: **Github issue closed** -- Choose the action: **Close the task** - -### Reopen a Kanboard task when an issue is reopened on Github - -- Choose the event: **Github issue reopened** -- Choose the action: **Open the task** - -### Assign a task to a Kanboard user when an issue is assigned on Github - -- Choose the event: **Github issue assignee change** -- Choose the action: **Change the assignee based on an external username** - -Note: The username must be the same between Github and Kanboard and the user must be member of the project. - -### Assign a category when an issue is tagged on Github - -- Choose the event: **Github issue label change** -- Choose the action: **Change the category based on an external label** -- Define the label and the category - -### Create a comment on Kanboard when an issue is commented on Github - -- Choose the event: **Github issue comment created** -- Choose the action: **Create a comment from an external provider** - -If the username is the same between Github and Kanboard the comment author will be assigned, otherwise there is no author. -The user also have to be member of the project in Kanboard. diff --git a/doc/index.markdown b/doc/index.markdown index 0030e6d0..bc3a2fbf 100644 --- a/doc/index.markdown +++ b/doc/index.markdown @@ -68,7 +68,6 @@ Using Kanboard ### Integrations -- [Bitbucket webhooks](bitbucket-webhooks.markdown) - [Gitlab webhooks](gitlab-webhooks.markdown) - [iCalendar subscriptions](ical.markdown) - [RSS/Atom subscriptions](rss.markdown) diff --git a/tests/units/Integration/BitbucketWebhookTest.php b/tests/units/Integration/BitbucketWebhookTest.php deleted file mode 100644 index bb6755c2..00000000 --- a/tests/units/Integration/BitbucketWebhookTest.php +++ /dev/null @@ -1,399 +0,0 @@ -container['dispatcher']->addListener(BitbucketWebhook::EVENT_COMMIT, array($this, 'onCommit')); - - $tc = new TaskCreation($this->container); - $p = new Project($this->container); - $bw = new BitbucketWebhook($this->container); - $payload = json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_push.json'), true); - - $this->assertEquals(1, $p->create(array('name' => 'test'))); - $bw->setProjectId(1); - - // No task - $this->assertFalse($bw->handlePush($payload)); - - // Create task with the wrong id - $this->assertEquals(1, $tc->create(array('title' => 'test1', 'project_id' => 1))); - $this->assertFalse($bw->handlePush($payload)); - - // Create task with the right id - $this->assertEquals(2, $tc->create(array('title' => 'test2', 'project_id' => 1))); - $this->assertTrue($bw->handlePush($payload)); - - $called = $this->container['dispatcher']->getCalledListeners(); - $this->assertArrayHasKey(BitbucketWebhook::EVENT_COMMIT.'.BitbucketWebhookTest::onCommit', $called); - } - - public function testIssueOpened() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_OPENED, array($this, 'onIssueOpened')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $bw = new BitbucketWebhook($this->container); - $bw->setProjectId(1); - - $this->assertNotFalse($bw->parsePayload( - 'issue:created', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_opened.json'), true) - )); - } - - public function testCommentCreatedWithNoUser() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithNoUser')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue:comment_created', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_comment_created.json'), true) - )); - } - - public function testCommentCreatedWithNotMember() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithNotMember')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'fguillot'))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue:comment_created', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_comment_created.json'), true) - )); - } - - public function testCommentCreatedWithUser() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithUser')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'minicoders'))); - - $pp = new ProjectUserRole($this->container); - $this->assertTrue($pp->addUser(1, 2, Role::PROJECT_MEMBER)); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue:comment_created', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_comment_created.json'), true) - )); - } - - public function testIssueClosed() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_CLOSED, array($this, 'onIssueClosed')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_closed.json'), true) - )); - } - - public function testIssueClosedWithNoTask() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_CLOSED, array($this, 'onIssueClosed')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 42, 'project_id' => 1))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_closed.json'), true) - )); - - $this->assertEmpty($this->container['dispatcher']->getCalledListeners()); - } - - public function testIssueReopened() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_REOPENED, array($this, 'onIssueReopened')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_reopened.json'), true) - )); - } - - public function testIssueReopenedWithNoTask() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_REOPENED, array($this, 'onIssueReopened')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 42, 'project_id' => 1))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_reopened.json'), true) - )); - - $this->assertEmpty($this->container['dispatcher']->getCalledListeners()); - } - - public function testIssueUnassigned() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, array($this, 'onIssueUnassigned')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_unassigned.json'), true) - )); - } - - public function testIssueAssigned() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, array($this, 'onIssueAssigned')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'minicoders'))); - - $pp = new ProjectUserRole($this->container); - $this->assertTrue($pp->addUser(1, 2, Role::PROJECT_MEMBER)); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_assigned.json'), true) - )); - - $this->assertNotEmpty($this->container['dispatcher']->getCalledListeners()); - } - - public function testIssueAssignedWithNoPermission() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, function () {}); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'minicoders'))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_assigned.json'), true) - )); - - $this->assertEmpty($this->container['dispatcher']->getCalledListeners()); - } - - public function testIssueAssignedWithNoUser() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, function () {}); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 1, 'project_id' => 1))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_assigned.json'), true) - )); - - $this->assertEmpty($this->container['dispatcher']->getCalledListeners()); - } - - public function testIssueAssignedWithNoTask() - { - $this->container['dispatcher']->addListener(BitbucketWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE, function () {}); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 43, 'project_id' => 1))); - - $g = new BitbucketWebhook($this->container); - $g->setProjectId(1); - - $this->assertFalse($g->parsePayload( - 'issue:updated', - json_decode(file_get_contents(__DIR__.'/../fixtures/bitbucket_issue_assigned.json'), true) - )); - - $this->assertEmpty($this->container['dispatcher']->getCalledListeners()); - } - - public function onCommit($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(2, $data['task_id']); - $this->assertEquals('test2', $data['title']); - $this->assertEquals("Test another commit #2\n\n\n[Commit made by @Frederic Guillot on Bitbucket](https://bitbucket.org/minicoders/test-webhook/commits/824059cce7667d3f8d8780cc707391be821e0ea6)", $data['comment']); - $this->assertEquals("Test another commit #2\n", $data['commit_message']); - $this->assertEquals('https://bitbucket.org/minicoders/test-webhook/commits/824059cce7667d3f8d8780cc707391be821e0ea6', $data['commit_url']); - } - - public function onIssueOpened($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['reference']); - $this->assertEquals('My new issue', $data['title']); - $this->assertEquals("**test**\n\n[Bitbucket Issue](https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue)", $data['description']); - } - - public function onCommentCreatedWithNoUser($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(0, $data['user_id']); - $this->assertEquals(19176252, $data['reference']); - $this->assertEquals("1. step1\n2. step2\n\n[By @Frederic Guillot on Bitbucket](https://bitbucket.org/minicoders/test-webhook/issue/1#comment-19176252)", $data['comment']); - } - - public function onCommentCreatedWithNotMember($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(0, $data['user_id']); - $this->assertEquals(19176252, $data['reference']); - $this->assertEquals("1. step1\n2. step2\n\n[By @Frederic Guillot on Bitbucket](https://bitbucket.org/minicoders/test-webhook/issue/1#comment-19176252)", $data['comment']); - } - - public function onCommentCreatedWithUser($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(2, $data['user_id']); - $this->assertEquals(19176252, $data['reference']); - $this->assertEquals("1. step1\n2. step2\n\n[By @Frederic Guillot on Bitbucket](https://bitbucket.org/minicoders/test-webhook/issue/1#comment-19176252)", $data['comment']); - } - - public function onIssueClosed($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(1, $data['reference']); - } - - public function onIssueReopened($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(1, $data['reference']); - } - - public function onIssueAssigned($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(1, $data['reference']); - $this->assertEquals(2, $data['owner_id']); - } - - public function onIssueUnassigned($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(1, $data['reference']); - $this->assertEquals(0, $data['owner_id']); - } -} diff --git a/tests/units/fixtures/bitbucket_comment_created.json b/tests/units/fixtures/bitbucket_comment_created.json deleted file mode 100644 index 66a09bb8..00000000 --- a/tests/units/fixtures/bitbucket_comment_created.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "actor": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "repository": { - "full_name": "minicoders/test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "type": "repository", - "links": { - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - }, - "owner": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "name": "test-webhook" - }, - "comment": { - "content": { - "html": "
    \n
  1. step1
  2. \n
  3. step2
  4. \n
", - "raw": "1. step1\n2. step2", - "markup": "markdown" - }, - "created_on": "2015-06-21T02:51:40.532529+00:00", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1#comment-19176252" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19176252" - } - }, - "id": 19176252, - "user": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "updated_on": null - }, - "issue": { - "updated_on": "2015-06-21T02:51:40.536516+00:00", - "votes": 0, - "assignee": null, - "links": { - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - } - }, - "priority": "major", - "kind": "bug", - "watches": 1, - "edited_on": null, - "state": "new", - "content": { - "html": "

test

", - "raw": "**test**", - "markup": "markdown" - }, - "component": null, - "milestone": null, - "version": null, - "id": 1, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "type": "issue", - "reporter": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "title": "My new issue" - } -} \ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_assigned.json b/tests/units/fixtures/bitbucket_issue_assigned.json deleted file mode 100644 index 0324afb2..00000000 --- a/tests/units/fixtures/bitbucket_issue_assigned.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "repository": { - "name": "test-webhook", - "type": "repository", - "full_name": "minicoders/test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - } - }, - "owner": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - } - }, - "changes": { - "responsible": { - "new": { - "is_system": false, - "name": "Frederic Guillot", - "username": "minicoders", - "id": 1290132, - "billing_external_uuid": null - }, - "old": null - }, - "assignee": { - "new": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "old": null - } - }, - "actor": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "issue": { - "repository": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - } - }, - "type": "repository", - "full_name": "minicoders/test-webhook", - "name": "test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}" - }, - "edited_on": null, - "component": null, - "updated_on": "2015-06-21T15:21:28.023525+00:00", - "reporter": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "state": "open", - "content": { - "raw": "**test**", - "markup": "markdown", - "html": "

test

" - }, - "kind": "bug", - "links": { - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - } - }, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "watches": 1, - "milestone": null, - "version": null, - "assignee": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "title": "My new issue", - "priority": "major", - "id": 1, - "votes": 0, - "type": "issue" - }, - "comment": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19181255" - } - }, - "updated_on": null, - "content": { - "raw": null, - "markup": "markdown", - "html": "" - }, - "id": 19181255, - "created_on": "2015-06-21T15:21:28.043980+00:00", - "user": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - } - } -} \ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_closed.json b/tests/units/fixtures/bitbucket_issue_closed.json deleted file mode 100644 index 473b5167..00000000 --- a/tests/units/fixtures/bitbucket_issue_closed.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "actor": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "changes": { - "status": { - "old": "new", - "new": "closed" - } - }, - "repository": { - "full_name": "minicoders/test-webhook", - "type": "repository", - "links": { - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - }, - "owner": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "name": "test-webhook" - }, - "comment": { - "content": { - "html": "", - "raw": null, - "markup": "markdown" - }, - "created_on": "2015-06-21T02:54:40.263014+00:00", - "updated_on": null, - "id": 19176265, - "user": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19176265" - } - } - }, - "issue": { - "state": "closed", - "votes": 0, - "assignee": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "links": { - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - } - }, - "priority": "major", - "version": null, - "watches": 1, - "edited_on": null, - "reporter": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "content": { - "html": "

test

", - "raw": "**test**", - "markup": "markdown" - }, - "component": null, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "updated_on": "2015-06-21T02:54:40.249466+00:00", - "kind": "bug", - "id": 1, - "milestone": null, - "type": "issue", - "repository": { - "full_name": "minicoders/test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "type": "repository", - "name": "test-webhook", - "links": { - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - } - }, - "title": "My new issue" - } -} \ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_opened.json b/tests/units/fixtures/bitbucket_issue_opened.json deleted file mode 100644 index 7891c230..00000000 --- a/tests/units/fixtures/bitbucket_issue_opened.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "issue": { - "type": "issue", - "links": { - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - } - }, - "component": null, - "updated_on": "2015-06-21T02:17:40.990654+00:00", - "reporter": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "type": "user", - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "watches": 1, - "kind": "bug", - "edited_on": null, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "milestone": null, - "version": null, - "state": "new", - "assignee": null, - "content": { - "raw": "**test**", - "markup": "markdown", - "html": "

test

" - }, - "priority": "major", - "id": 1, - "votes": 0, - "title": "My new issue" - }, - "repository": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - } - }, - "type": "repository", - "full_name": "minicoders/test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "name": "test-webhook", - "owner": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "type": "user", - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - } - }, - "actor": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "type": "user", - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - } -} \ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_reopened.json b/tests/units/fixtures/bitbucket_issue_reopened.json deleted file mode 100644 index bb950916..00000000 --- a/tests/units/fixtures/bitbucket_issue_reopened.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "issue": { - "edited_on": null, - "watches": 1, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "reporter": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - }, - "content": { - "markup": "markdown", - "raw": "**test**", - "html": "

test

" - }, - "id": 1, - "milestone": null, - "repository": { - "full_name": "minicoders/test-webhook", - "type": "repository", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - } - }, - "name": "test-webhook" - }, - "component": null, - "version": null, - "votes": 0, - "priority": "major", - "type": "issue", - "state": "open", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - }, - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - } - }, - "kind": "bug", - "updated_on": "2015-06-21T14:56:49.739063+00:00", - "assignee": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - }, - "title": "My new issue" - }, - "comment": { - "id": 19181022, - "created_on": "2015-06-21T14:56:49.749362+00:00", - "content": { - "markup": "markdown", - "raw": null, - "html": "" - }, - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19181022" - } - }, - "user": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - }, - "updated_on": null - }, - "repository": { - "name": "test-webhook", - "owner": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - }, - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "type": "repository", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - } - }, - "full_name": "minicoders/test-webhook" - }, - "changes": { - "status": { - "new": "open", - "old": "closed" - } - }, - "actor": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - } -} \ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_unassigned.json b/tests/units/fixtures/bitbucket_issue_unassigned.json deleted file mode 100644 index 3cbab2ea..00000000 --- a/tests/units/fixtures/bitbucket_issue_unassigned.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "comment": { - "updated_on": null, - "content": { - "html": "", - "markup": "markdown", - "raw": null - }, - "created_on": "2015-06-21T15:07:45.787623+00:00", - "user": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19181143" - } - }, - "id": 19181143 - }, - "issue": { - "state": "open", - "content": { - "html": "

test

", - "markup": "markdown", - "raw": "**test**" - }, - "milestone": null, - "type": "issue", - "version": null, - "title": "My new issue", - "assignee": null, - "kind": "bug", - "component": null, - "priority": "major", - "reporter": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "edited_on": null, - "updated_on": "2015-06-21T15:07:45.775705+00:00", - "id": 1, - "votes": 0, - "repository": { - "full_name": "minicoders/test-webhook", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - }, - "type": "repository", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "name": "test-webhook" - }, - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - } - }, - "watches": 1 - }, - "actor": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "repository": { - "full_name": "minicoders/test-webhook", - "owner": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "type": "repository", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - }, - "name": "test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}" - }, - "changes": { - "responsible": { - "old": { - "is_system": false, - "username": "minicoders", - "name": "Frederic Guillot", - "billing_external_uuid": null, - "id": 1290132 - }, - "new": null - }, - "assignee": { - "old": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "new": null - } - } -} \ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_push.json b/tests/units/fixtures/bitbucket_push.json deleted file mode 100644 index f480b074..00000000 --- a/tests/units/fixtures/bitbucket_push.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "push": { - "changes": [ - { - "forced": false, - "old": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/refs/branches/master" - }, - "commits": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commits/master" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/branch/master" - } - }, - "name": "master", - "target": { - "date": "2015-06-21T00:50:37+00:00", - "hash": "b6b46580eb9b20a06396f5f697ea1a55cf170e69", - "message": "test edited online with Bitbucket for task #5", - "type": "commit", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commit/b6b46580eb9b20a06396f5f697ea1a55cf170e69" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/commits/b6b46580eb9b20a06396f5f697ea1a55cf170e69" - } - }, - "parents": [ - { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commit/7251db4b505cbfca3f845ebcff0ec0ddc4003ed8" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/commits/7251db4b505cbfca3f845ebcff0ec0ddc4003ed8" - } - }, - "type": "commit", - "hash": "7251db4b505cbfca3f845ebcff0ec0ddc4003ed8" - } - ], - "author": { - "raw": "Frederic Guillot ", - "user": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "username": "minicoders", - "display_name": "Frederic Guillot" - } - } - }, - "type": "branch" - }, - "created": false, - "links": { - "diff": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/diff/824059cce7667d3f8d8780cc707391be821e0ea6..b6b46580eb9b20a06396f5f697ea1a55cf170e69" - }, - "commits": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commits?include=824059cce7667d3f8d8780cc707391be821e0ea6exclude=b6b46580eb9b20a06396f5f697ea1a55cf170e69" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/branches/compare/824059cce7667d3f8d8780cc707391be821e0ea6..b6b46580eb9b20a06396f5f697ea1a55cf170e69" - } - }, - "new": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/refs/branches/master" - }, - "commits": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commits/master" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/branch/master" - } - }, - "name": "master", - "target": { - "date": "2015-06-21T03:15:08+00:00", - "hash": "824059cce7667d3f8d8780cc707391be821e0ea6", - "message": "Test another commit #2\n", - "type": "commit", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commit/824059cce7667d3f8d8780cc707391be821e0ea6" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/commits/824059cce7667d3f8d8780cc707391be821e0ea6" - } - }, - "parents": [ - { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commit/24aa9d82bbb6f9a60f743fe538deb0a44622fc98" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/commits/24aa9d82bbb6f9a60f743fe538deb0a44622fc98" - } - }, - "type": "commit", - "hash": "24aa9d82bbb6f9a60f743fe538deb0a44622fc98" - } - ], - "author": { - "raw": "Frederic Guillot " - } - }, - "type": "branch" - }, - "closed": false - } - ] - }, - "repository": { - "name": "test-webhook", - "owner": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "username": "minicoders", - "display_name": "Frederic Guillot" - }, - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "type": "repository", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - } - }, - "full_name": "minicoders/test-webhook" - }, - "actor": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "username": "minicoders", - "display_name": "Frederic Guillot" - } -} \ No newline at end of file -- cgit v1.2.3 From 7864685cfdb64d2ef6497a445f0d8ed96762e4bf Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 7 Jan 2016 21:05:23 -0500 Subject: Move Gitlab webhook to an external plugin --- ChangeLog | 1 + app/Action/CommentCreation.php | 7 +- app/Action/TaskClose.php | 6 +- app/Action/TaskCreation.php | 6 +- app/Action/TaskOpen.php | 6 +- app/Controller/Webhook.php | 15 -- app/Core/Base.php | 1 - app/Core/Event/EventManager.php | 6 - app/Integration/GitlabWebhook.php | 298 ----------------------- app/Locale/bs_BA/translations.php | 10 +- app/Locale/cs_CZ/translations.php | 10 +- app/Locale/da_DK/translations.php | 10 +- app/Locale/de_DE/translations.php | 10 +- app/Locale/es_ES/translations.php | 10 +- app/Locale/fi_FI/translations.php | 10 +- app/Locale/fr_FR/translations.php | 10 +- app/Locale/hu_HU/translations.php | 10 +- app/Locale/id_ID/translations.php | 10 +- app/Locale/it_IT/translations.php | 10 +- app/Locale/ja_JP/translations.php | 10 +- app/Locale/nb_NO/translations.php | 10 +- app/Locale/nl_NL/translations.php | 10 +- app/Locale/pl_PL/translations.php | 10 +- app/Locale/pt_BR/translations.php | 10 +- app/Locale/pt_PT/translations.php | 10 +- app/Locale/ru_RU/translations.php | 10 +- app/Locale/sr_Latn_RS/translations.php | 10 +- app/Locale/sv_SE/translations.php | 10 +- app/Locale/th_TH/translations.php | 10 +- app/Locale/tr_TR/translations.php | 10 +- app/Locale/zh_CN/translations.php | 10 +- app/ServiceProvider/ClassProvider.php | 3 - app/Template/project/integrations.php | 12 +- doc/gitlab-webhooks.markdown | 70 ------ doc/index.markdown | 1 - tests/units/Integration/GitlabWebhookTest.php | 258 -------------------- tests/units/fixtures/gitlab_comment_created.json | 46 ---- tests/units/fixtures/gitlab_issue_closed.json | 25 -- tests/units/fixtures/gitlab_issue_opened.json | 25 -- tests/units/fixtures/gitlab_issue_reopened.json | 25 -- tests/units/fixtures/gitlab_push.json | 44 ---- 41 files changed, 33 insertions(+), 1042 deletions(-) delete mode 100644 app/Integration/GitlabWebhook.php delete mode 100644 doc/gitlab-webhooks.markdown delete mode 100644 tests/units/Integration/GitlabWebhookTest.php delete mode 100644 tests/units/fixtures/gitlab_comment_created.json delete mode 100644 tests/units/fixtures/gitlab_issue_closed.json delete mode 100644 tests/units/fixtures/gitlab_issue_opened.json delete mode 100644 tests/units/fixtures/gitlab_issue_reopened.json delete mode 100644 tests/units/fixtures/gitlab_push.json (limited to 'app/Action/CommentCreation.php') diff --git a/ChangeLog b/ChangeLog index de916e7d..887172ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ Breaking changes: * Action name stored in the database is now the absolute class name * Core functionalities moved to external plugins: - Github Webhook: https://github.com/kanboard/plugin-github-webhook + - Gitlab Webhook: https://github.com/kanboard/plugin-gitlab-webhook - Bitbucket Webhook: https://github.com/kanboard/plugin-bitbucket-webhook New features: diff --git a/app/Action/CommentCreation.php b/app/Action/CommentCreation.php index e08ef47f..b91e39e2 100644 --- a/app/Action/CommentCreation.php +++ b/app/Action/CommentCreation.php @@ -2,8 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\GitlabWebhook; - /** * Create automatically a comment from a webhook * @@ -31,10 +29,7 @@ class CommentCreation extends Base */ public function getCompatibleEvents() { - return array( - GitlabWebhook::EVENT_COMMIT, - GitlabWebhook::EVENT_ISSUE_COMMENT, - ); + return array(); } /** diff --git a/app/Action/TaskClose.php b/app/Action/TaskClose.php index 7f8af786..b8c5e175 100644 --- a/app/Action/TaskClose.php +++ b/app/Action/TaskClose.php @@ -2,7 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\GitlabWebhook; use Kanboard\Model\Task; /** @@ -32,10 +31,7 @@ class TaskClose extends Base */ public function getCompatibleEvents() { - return array( - GitlabWebhook::EVENT_COMMIT, - GitlabWebhook::EVENT_ISSUE_CLOSED, - ); + return array(); } /** diff --git a/app/Action/TaskCreation.php b/app/Action/TaskCreation.php index 8daa6726..290c31e1 100644 --- a/app/Action/TaskCreation.php +++ b/app/Action/TaskCreation.php @@ -2,8 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\GitlabWebhook; - /** * Create automatically a task from a webhook * @@ -31,9 +29,7 @@ class TaskCreation extends Base */ public function getCompatibleEvents() { - return array( - GitlabWebhook::EVENT_ISSUE_OPENED, - ); + return array(); } /** diff --git a/app/Action/TaskOpen.php b/app/Action/TaskOpen.php index efbcb874..ec0f96f7 100644 --- a/app/Action/TaskOpen.php +++ b/app/Action/TaskOpen.php @@ -2,8 +2,6 @@ namespace Kanboard\Action; -use Kanboard\Integration\GitlabWebhook; - /** * Open automatically a task * @@ -31,9 +29,7 @@ class TaskOpen extends Base */ public function getCompatibleEvents() { - return array( - GitlabWebhook::EVENT_ISSUE_REOPENED, - ); + return array(); } /** diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index be8bf030..0eafe3e5 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -39,19 +39,4 @@ class Webhook extends Base $this->response->text('FAILED'); } - - /** - * Handle Gitlab webhooks - * - * @access public - */ - public function gitlab() - { - $this->checkWebhookToken(); - - $this->gitlabWebhook->setProjectId($this->request->getIntegerParam('project_id')); - $result = $this->gitlabWebhook->parsePayload($this->request->getJson()); - - echo $result ? 'PARSED' : 'IGNORED'; - } } diff --git a/app/Core/Base.php b/app/Core/Base.php index bbc51c50..1eef3cf7 100644 --- a/app/Core/Base.php +++ b/app/Core/Base.php @@ -45,7 +45,6 @@ use Pimple\Container; * @property \Kanboard\Core\Lexer $lexer * @property \Kanboard\Core\Paginator $paginator * @property \Kanboard\Core\Template $template - * @property \Kanboard\Integration\GitlabWebhook $gitlabWebhook * @property \Kanboard\Formatter\ProjectGanttFormatter $projectGanttFormatter * @property \Kanboard\Formatter\TaskFilterGanttFormatter $taskFilterGanttFormatter * @property \Kanboard\Formatter\TaskFilterAutoCompleteFormatter $taskFilterAutoCompleteFormatter diff --git a/app/Core/Event/EventManager.php b/app/Core/Event/EventManager.php index 34a70900..8d76bfcb 100644 --- a/app/Core/Event/EventManager.php +++ b/app/Core/Event/EventManager.php @@ -2,7 +2,6 @@ namespace Kanboard\Core\Event; -use Kanboard\Integration\GitlabWebhook; use Kanboard\Model\Task; use Kanboard\Model\TaskLink; @@ -53,11 +52,6 @@ class EventManager Task::EVENT_CLOSE => t('Closing a task'), Task::EVENT_CREATE_UPDATE => t('Task creation or modification'), Task::EVENT_ASSIGNEE_CHANGE => t('Task assignee change'), - GitlabWebhook::EVENT_COMMIT => t('Gitlab commit received'), - GitlabWebhook::EVENT_ISSUE_OPENED => t('Gitlab issue opened'), - GitlabWebhook::EVENT_ISSUE_REOPENED => t('Gitlab issue reopened'), - GitlabWebhook::EVENT_ISSUE_CLOSED => t('Gitlab issue closed'), - GitlabWebhook::EVENT_ISSUE_COMMENT => t('Gitlab issue comment created'), ); $events = array_merge($events, $this->events); diff --git a/app/Integration/GitlabWebhook.php b/app/Integration/GitlabWebhook.php deleted file mode 100644 index 5e0aa59d..00000000 --- a/app/Integration/GitlabWebhook.php +++ /dev/null @@ -1,298 +0,0 @@ -project_id = $project_id; - } - - /** - * Parse events - * - * @access public - * @param array $payload Gitlab event - * @return boolean - */ - public function parsePayload(array $payload) - { - switch ($this->getType($payload)) { - case self::TYPE_PUSH: - return $this->handlePushEvent($payload); - case self::TYPE_ISSUE; - return $this->handleIssueEvent($payload); - case self::TYPE_COMMENT; - return $this->handleCommentEvent($payload); - } - - return false; - } - - /** - * Get event type - * - * @access public - * @param array $payload Gitlab event - * @return string - */ - public function getType(array $payload) - { - if (empty($payload['object_kind'])) { - return ''; - } - - switch ($payload['object_kind']) { - case 'issue': - return self::TYPE_ISSUE; - case 'note': - return self::TYPE_COMMENT; - case 'push': - return self::TYPE_PUSH; - default: - return ''; - } - } - - /** - * Parse push event - * - * @access public - * @param array $payload Gitlab event - * @return boolean - */ - public function handlePushEvent(array $payload) - { - foreach ($payload['commits'] as $commit) { - $this->handleCommit($commit); - } - - return true; - } - - /** - * Parse commit - * - * @access public - * @param array $commit Gitlab commit - * @return boolean - */ - public function handleCommit(array $commit) - { - $task_id = $this->task->getTaskIdFromText($commit['message']); - - if (empty($task_id)) { - return false; - } - - $task = $this->taskFinder->getById($task_id); - - if (empty($task)) { - return false; - } - - if ($task['project_id'] != $this->project_id) { - return false; - } - - $this->container['dispatcher']->dispatch( - self::EVENT_COMMIT, - new GenericEvent(array( - 'task_id' => $task_id, - 'commit_message' => $commit['message'], - 'commit_url' => $commit['url'], - 'comment' => $commit['message']."\n\n[".t('Commit made by @%s on Gitlab', $commit['author']['name']).']('.$commit['url'].')' - ) + $task) - ); - - return true; - } - - /** - * Parse issue event - * - * @access public - * @param array $payload Gitlab event - * @return boolean - */ - public function handleIssueEvent(array $payload) - { - switch ($payload['object_attributes']['action']) { - case 'open': - return $this->handleIssueOpened($payload['object_attributes']); - case 'close': - return $this->handleIssueClosed($payload['object_attributes']); - case 'reopen': - return $this->handleIssueReopened($payload['object_attributes']); - } - - return false; - } - - /** - * Handle new issues - * - * @access public - * @param array $issue Issue data - * @return boolean - */ - public function handleIssueOpened(array $issue) - { - $event = array( - 'project_id' => $this->project_id, - 'reference' => $issue['id'], - 'title' => $issue['title'], - 'description' => $issue['description']."\n\n[".t('Gitlab Issue').']('.$issue['url'].')', - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_OPENED, - new GenericEvent($event) - ); - - return true; - } - - /** - * Handle issue reopening - * - * @access public - * @param array $issue Issue data - * @return boolean - */ - public function handleIssueReopened(array $issue) - { - $task = $this->taskFinder->getByReference($this->project_id, $issue['id']); - - if (! empty($task)) { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'reference' => $issue['id'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_REOPENED, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - - /** - * Handle issue closing - * - * @access public - * @param array $issue Issue data - * @return boolean - */ - public function handleIssueClosed(array $issue) - { - $task = $this->taskFinder->getByReference($this->project_id, $issue['id']); - - if (! empty($task)) { - $event = array( - 'project_id' => $this->project_id, - 'task_id' => $task['id'], - 'reference' => $issue['id'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_CLOSED, - new GenericEvent($event) - ); - - return true; - } - - return false; - } - - /** - * Parse comment issue events - * - * @access public - * @param array $payload Event data - * @return boolean - */ - public function handleCommentEvent(array $payload) - { - if (! isset($payload['issue'])) { - return false; - } - - $task = $this->taskFinder->getByReference($this->project_id, $payload['issue']['id']); - - if (! empty($task)) { - $user = $this->user->getByUsername($payload['user']['username']); - - if (! empty($user) && ! $this->projectPermission->isAssignable($this->project_id, $user['id'])) { - $user = array(); - } - - $event = array( - 'project_id' => $this->project_id, - 'reference' => $payload['object_attributes']['id'], - 'comment' => $payload['object_attributes']['note']."\n\n[".t('By @%s on Gitlab', $payload['user']['username']).']('.$payload['object_attributes']['url'].')', - 'user_id' => ! empty($user) ? $user['id'] : 0, - 'task_id' => $task['id'], - ); - - $this->container['dispatcher']->dispatch( - self::EVENT_ISSUE_COMMENT, - new GenericEvent($event) - ); - - return true; - } - - return false; - } -} diff --git a/app/Locale/bs_BA/translations.php b/app/Locale/bs_BA/translations.php index 50b17c1b..777810cd 100644 --- a/app/Locale/bs_BA/translations.php +++ b/app/Locale/bs_BA/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Swimline traka je uspješno kreirana.', 'Example: "Bug, Feature Request, Improvement"' => 'Npr: "Greška, Zahtjev za izmjenama, Poboljšanje"', 'Default categories for new projects (Comma-separated)' => 'Podrazumijevane kategorije za novi projekat', - 'Gitlab commit received' => 'Gitlab: commit dobijen', - 'Gitlab issue opened' => 'Gitlab: problem otvoren', - 'Gitlab issue closed' => 'Gitlab: problem zatvoren', - 'Gitlab webhooks' => 'Gitlab webhooks', - 'Help on Gitlab webhooks' => 'Pomoc na Gitlab webhooks', 'Integrations' => 'Integracije', 'Integration with third-party services' => 'Integracija sa uslugama vanjskih servisa', - 'Gitlab Issue' => 'Gitlab problemi', 'Subtask Id' => 'ID pod-zadatka', 'Subtasks' => 'Pod-zadaci', 'Subtasks Export' => 'Izvoz pod-zadataka', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Vanjski korisnik', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Vanjski korisnik ne čuva šifru u Kanboard bazi, npr: LDAP, Google i Github korisnički računi.', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Ako ste označili kvadratić "Zabrani prijavnu formu", unos pristupnih podataka u prijavnoj formi će biti ignorisan.', - 'By @%s on Gitlab' => 'Od @%s s Gitlab-om', - 'Gitlab issue comment created' => 'Gitlab: dodan komentar za problem', 'New remote user' => 'Novi vanjski korisnik', 'New local user' => 'Novi lokalni korisnik', 'Default task color' => 'Podrazumijevana boja zadatka', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/cs_CZ/translations.php b/app/Locale/cs_CZ/translations.php index 8baba251..70ea873b 100644 --- a/app/Locale/cs_CZ/translations.php +++ b/app/Locale/cs_CZ/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Die Swimlane wurde erfolgreich angelegt.', 'Example: "Bug, Feature Request, Improvement"' => 'Beispiel: "Bug, Funktionswünsche, Verbesserung"', 'Default categories for new projects (Comma-separated)' => 'Výchozí kategorie pro nové projekty (oddělené čárkou)', - 'Gitlab commit received' => 'Gitlab commit erhalten', - 'Gitlab issue opened' => 'Gitlab Fehler eröffnet', - 'Gitlab issue closed' => 'Gitlab Fehler geschlossen', - 'Gitlab webhooks' => 'Gitlab Webhook', - 'Help on Gitlab webhooks' => 'Hilfe für Gitlab Webhooks', 'Integrations' => 'Integrace', 'Integration with third-party services' => 'Integration von Fremdleistungen', - 'Gitlab Issue' => 'Gitlab Fehler', 'Subtask Id' => 'Dílčí úkol Id', 'Subtasks' => 'Dílčí úkoly', 'Subtasks Export' => 'Export dílčích úkolů', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Vzdálený uživatel', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Hesla vzdáleným uživatelům se neukládají do databáze Kanboard. Naříklad: LDAP, Google a Github účty.', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Pokud zaškrtnete políčko "Zakázat přihlašovací formulář", budou pověření zadané do přihlašovacího formuláře ignorovány.', - 'By @%s on Gitlab' => 'uživatelem @%s na Gitlab', - 'Gitlab issue comment created' => 'Vytvořen komentář problému na Gitlab', 'New remote user' => 'Nový vzdálený uživatel', 'New local user' => 'Nový lokální uživatel', 'Default task color' => 'Výchozí barva úkolu', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php index dd531abb..37504d66 100644 --- a/app/Locale/da_DK/translations.php +++ b/app/Locale/da_DK/translations.php @@ -543,14 +543,8 @@ return array( // 'Your swimlane have been created successfully.' => '', // 'Example: "Bug, Feature Request, Improvement"' => '', // 'Default categories for new projects (Comma-separated)' => '', - // 'Gitlab commit received' => '', - // 'Gitlab issue opened' => '', - // 'Gitlab issue closed' => '', - // 'Gitlab webhooks' => '', - // 'Help on Gitlab webhooks' => '', // 'Integrations' => '', // 'Integration with third-party services' => '', - // 'Gitlab Issue' => '', // 'Subtask Id' => '', // 'Subtasks' => '', // 'Subtasks Export' => '', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php index 263e0421..69efb309 100644 --- a/app/Locale/de_DE/translations.php +++ b/app/Locale/de_DE/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Die Swimlane wurde erfolgreich angelegt.', 'Example: "Bug, Feature Request, Improvement"' => 'Beispiel: "Bug, Funktionswünsche, Verbesserung"', 'Default categories for new projects (Comma-separated)' => 'Standard-Kategorien für neue Projekte (Komma-getrennt)', - 'Gitlab commit received' => 'Gitlab-Commit erhalten', - 'Gitlab issue opened' => 'Gitlab-Issue eröffnet', - 'Gitlab issue closed' => 'Gitlab-Issue geschlossen', - 'Gitlab webhooks' => 'Gitlab-Webhook', - 'Help on Gitlab webhooks' => 'Hilfe für Gitlab-Webhooks', 'Integrations' => 'Integration', 'Integration with third-party services' => 'Integration von externen Diensten', - 'Gitlab Issue' => 'Gitlab-Issue', 'Subtask Id' => 'Teilaufgaben-ID', 'Subtasks' => 'Teilaufgaben', 'Subtasks Export' => 'Export von Teilaufgaben', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Remote-Benutzer', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Remote-Benutzer haben kein Passwort in der Kanboard Datenbank, Beispiel LDAP, Goole und Github Accounts', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Wenn die Box "Verbiete Login-Formular" angeschaltet ist, werden Eingaben in das Login Formular ignoriert.', - 'By @%s on Gitlab' => 'Durch @%s auf Gitlab', - 'Gitlab issue comment created' => 'Gitlab Ticket Kommentar erstellt', 'New remote user' => 'Neuer Remote-Benutzer', 'New local user' => 'Neuer lokaler Benutzer', 'Default task color' => 'Voreingestellte Aufgabenfarbe', @@ -1047,7 +1039,6 @@ return array( 'Project Manager' => 'Projekt Manager', 'Project Member' => 'Projekt Mitglied', 'Project Viewer' => 'Projekt Betrachter', - 'Gitlab issue reopened' => 'Gitlab Thema wiedereröffnet', 'Your account is locked for %d minutes' => 'Ihr Zugang wurde für %d Minuten gesperrt', 'Invalid captcha' => 'Ungültiges Captcha', 'The name must be unique' => 'Der Name muss eindeutig sein', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php index aa08e35c..e28e1757 100644 --- a/app/Locale/es_ES/translations.php +++ b/app/Locale/es_ES/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Su calle ha sido creada correctamente', 'Example: "Bug, Feature Request, Improvement"' => 'Ejemplo: "Error, Solicitud de característica, Mejora', 'Default categories for new projects (Comma-separated)' => 'Categorías por defecto para nuevos proyectos (separadas por comas)', - 'Gitlab commit received' => 'Recibido envío desde Gitlab', - 'Gitlab issue opened' => 'Abierto asunto de Gitlab', - 'Gitlab issue closed' => 'Cerrado asunto de Gitlab', - 'Gitlab webhooks' => 'Disparadores Web (Webhooks) de Gitlab', - 'Help on Gitlab webhooks' => 'Ayuda sobre Disparadores Web (Webhooks) de Gitlab', 'Integrations' => 'Integraciones', 'Integration with third-party services' => 'Integración con servicios de terceros', - 'Gitlab Issue' => 'Asunto Gitlab', 'Subtask Id' => 'Id de Subtarea', 'Subtasks' => 'Subtareas', 'Subtasks Export' => 'Exportación de Subtareas', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Usuario remoto', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Los usuarios remotos no almacenan sus contraseñas en la base de datos Kanboard, por ejemplo: cuentas de LDAP, Google y Github', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Si marcas la caja de edición "Desactivar formulario de ingreso", se ignoran las credenciales entradas en el formulario de ingreso.', - 'By @%s on Gitlab' => 'Por @%s en Gitlab', - 'Gitlab issue comment created' => 'Creado comentario de asunto de Gitlab', 'New remote user' => 'Nuevo usuario remoto', 'New local user' => 'Nuevo usuario local', 'Default task color' => 'Color por defecto de tarea', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php index e1a14749..76f312fd 100644 --- a/app/Locale/fi_FI/translations.php +++ b/app/Locale/fi_FI/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Kaista luotu onnistuneesti.', 'Example: "Bug, Feature Request, Improvement"' => 'Esimerkiksi: "Bugit, Ominaisuuspyynnöt, Parannukset"', 'Default categories for new projects (Comma-separated)' => 'Oletuskategoriat uusille projekteille (pilkuin eroteltu)', - // 'Gitlab commit received' => '', - // 'Gitlab issue opened' => '', - // 'Gitlab issue closed' => '', - // 'Gitlab webhooks' => '', - // 'Help on Gitlab webhooks' => '', // 'Integrations' => '', // 'Integration with third-party services' => '', - // 'Gitlab Issue' => '', // 'Subtask Id' => '', // 'Subtasks' => '', // 'Subtasks Export' => '', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php index f974584f..f2e7dda2 100644 --- a/app/Locale/fr_FR/translations.php +++ b/app/Locale/fr_FR/translations.php @@ -545,14 +545,8 @@ return array( 'Your swimlane have been created successfully.' => 'Votre swimlane a été créée avec succès.', 'Example: "Bug, Feature Request, Improvement"' => 'Exemple: « Incident, Demande de fonctionnalité, Amélioration »', 'Default categories for new projects (Comma-separated)' => 'Catégories par défaut pour les nouveaux projets (séparation par des virgules)', - 'Gitlab commit received' => 'Commit reçu via Gitlab', - 'Gitlab issue opened' => 'Ouverture d\'un ticket sur Gitlab', - 'Gitlab issue closed' => 'Fermeture d\'un ticket sur Gitlab', - 'Gitlab webhooks' => 'Webhook Gitlab', - 'Help on Gitlab webhooks' => 'Aide sur les webhooks Gitlab', 'Integrations' => 'Intégrations', 'Integration with third-party services' => 'Intégration avec des services externes', - 'Gitlab Issue' => 'Ticket Gitlab', 'Subtask Id' => 'Identifiant de la sous-tâche', 'Subtasks' => 'Sous-tâches', 'Subtasks Export' => 'Exportation des sous-tâches', @@ -872,8 +866,6 @@ return array( 'Remote user' => 'Utilisateur distant', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Les utilisateurs distants ne stockent pas leur mot de passe dans la base de données de Kanboard, exemples : comptes LDAP, Github ou Google.', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Si vous cochez la case « Interdire le formulaire d\'authentification », les identifiants entrés dans le formulaire d\'authentification seront ignorés.', - 'By @%s on Gitlab' => 'Par @%s sur Gitlab', - 'Gitlab issue comment created' => 'Commentaire créé sur un ticket Gitlab', 'New remote user' => 'Créer un utilisateur distant', 'New local user' => 'Créer un utilisateur local', 'Default task color' => 'Couleur par défaut des tâches', @@ -1050,7 +1042,6 @@ return array( 'Project Manager' => 'Chef de projet', 'Project Member' => 'Membre du projet', 'Project Viewer' => 'Visualiseur de projet', - 'Gitlab issue reopened' => 'Ticket Gitlab rouvert', 'Your account is locked for %d minutes' => 'Votre compte est vérouillé pour %d minutes', 'Invalid captcha' => 'Captcha invalid', 'The name must be unique' => 'Le nom doit être unique', @@ -1097,4 +1088,5 @@ return array( 'Two-Factor Provider: ' => 'Fournisseur d\'authentification à deux facteurs : ', 'Disable two-factor authentication' => 'Désactiver l\'authentification à deux-facteurs', 'Enable two-factor authentication' => 'Activer l\'authentification à deux-facteurs', + 'There is no integration registered at the moment.' => 'Il n\'y a aucune intégration enregistrée pour le moment.', ); diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php index 392ead6c..54c4ba40 100644 --- a/app/Locale/hu_HU/translations.php +++ b/app/Locale/hu_HU/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'A folyamat sikeresen létrehozva.', 'Example: "Bug, Feature Request, Improvement"' => 'Például: Hiba, Új funkció, Fejlesztés', 'Default categories for new projects (Comma-separated)' => 'Alapértelmezett kategóriák az új projektekben (Vesszővel elválasztva)', - 'Gitlab commit received' => 'Gitlab commit érkezett', - 'Gitlab issue opened' => 'Gitlab issue nyitás', - 'Gitlab issue closed' => 'Gitlab issue zárás', - 'Gitlab webhooks' => 'Gitlab webhooks', - 'Help on Gitlab webhooks' => 'Gitlab webhooks súgó', 'Integrations' => 'Integráció', 'Integration with third-party services' => 'Integráció harmadik féllel', - 'Gitlab Issue' => 'Gitlab issue', 'Subtask Id' => 'Részfeladat id', 'Subtasks' => 'Részfeladatok', 'Subtasks Export' => 'Részfeladat exportálás', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/id_ID/translations.php b/app/Locale/id_ID/translations.php index 9640abfb..ab296437 100644 --- a/app/Locale/id_ID/translations.php +++ b/app/Locale/id_ID/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Swimlane anda berhasil dibuat.', 'Example: "Bug, Feature Request, Improvement"' => 'Contoh: « Insiden, Permintaan Fitur, Perbaikan »', 'Default categories for new projects (Comma-separated)' => 'Standar kategori untuk proyek baru (dipisahkan dengan koma)', - 'Gitlab commit received' => 'Menerima komit Gitlab', - 'Gitlab issue opened' => 'Tiket Gitlab dibuka', - 'Gitlab issue closed' => 'Tiket Gitlab ditutup', - 'Gitlab webhooks' => 'Webhook Gitlab', - 'Help on Gitlab webhooks' => 'Bantuan pada webhook Gitlab', 'Integrations' => 'Integrasi', 'Integration with third-party services' => 'Integrasi dengan layanan pihak ketiga', - 'Gitlab Issue' => 'Tiket Gitlab', 'Subtask Id' => 'Id Subtugas', 'Subtasks' => 'Subtugas', 'Subtasks Export' => 'Ekspor Subtugas', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Pengguna jauh', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Pengguna jauh tidak menyimpan kata sandi mereka dalam basis data Kanboard, contoh: akun LDAP, Google dan Github.', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Jika anda mencentang kotak "Larang formulir login", kredensial masuk ke formulis login akan diabaikan.', - 'By @%s on Gitlab' => 'Dengan @%s pada Gitlab', - 'Gitlab issue comment created' => 'Komentar dibuat pada tiket Gitlab', 'New remote user' => 'Pengguna baru jauh', 'New local user' => 'Pengguna baru lokal', 'Default task color' => 'Standar warna tugas', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php index 81d1853f..7d8df85f 100644 --- a/app/Locale/it_IT/translations.php +++ b/app/Locale/it_IT/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'La sua corsia è stata creata con successo', 'Example: "Bug, Feature Request, Improvement"' => 'Esempio: "Bug, Richiesta di Funzioni, Migliorie"', 'Default categories for new projects (Comma-separated)' => 'Categorie di default per i progetti (Separati da virgola)', - 'Gitlab commit received' => 'Commit ricevuto da Gitlab', - 'Gitlab issue opened' => 'Issue di Gitlab aperta', - 'Gitlab issue closed' => 'Issue di Gitlab chiusa', - 'Gitlab webhooks' => 'Webhooks di Gitlab', - 'Help on Gitlab webhooks' => 'Guida ai Webhooks di Gitlab', 'Integrations' => 'Integrazioni', 'Integration with third-party services' => 'Integrazione con servizi di terze parti', - 'Gitlab Issue' => 'Issue di Gitlab', 'Subtask Id' => 'Id del sotto-compito', 'Subtasks' => 'Sotto-compiti', 'Subtasks Export' => 'Esporta sotto-compiti', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php index 3b24f224..f1d20c49 100644 --- a/app/Locale/ja_JP/translations.php +++ b/app/Locale/ja_JP/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'スイムレーンが作成されました。', 'Example: "Bug, Feature Request, Improvement"' => '例: バグ, 機能, 改善', 'Default categories for new projects (Comma-separated)' => '新しいプロジェクトのデフォルトカテゴリー (コンマ区切り)', - 'Gitlab commit received' => 'Gitlab コミットを受診しました', - 'Gitlab issue opened' => 'Gitlab Issue がオープンされました', - 'Gitlab issue closed' => 'Gitlab Issue がクローズされました', - 'Gitlab webhooks' => 'Gitlab Webhooks', - 'Help on Gitlab webhooks' => 'Gitlab Webhooks のヘルプ', 'Integrations' => '連携', 'Integration with third-party services' => 'サードパーティサービスとの連携', - 'Gitlab Issue' => 'Gitlab Issue', 'Subtask Id' => 'サブタスク Id', 'Subtasks' => 'サブタスク', 'Subtasks Export' => 'サブタスクの出力', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/nb_NO/translations.php b/app/Locale/nb_NO/translations.php index 75631126..67dac98c 100644 --- a/app/Locale/nb_NO/translations.php +++ b/app/Locale/nb_NO/translations.php @@ -543,14 +543,8 @@ return array( // 'Your swimlane have been created successfully.' => '', // 'Example: "Bug, Feature Request, Improvement"' => '', // 'Default categories for new projects (Comma-separated)' => '', - // 'Gitlab commit received' => '', - // 'Gitlab issue opened' => '', - // 'Gitlab issue closed' => '', - // 'Gitlab webhooks' => '', - // 'Help on Gitlab webhooks' => '', 'Integrations' => 'Integrasjoner', 'Integration with third-party services' => 'Integrasjoner med tredje-parts tjenester', - // 'Gitlab Issue' => '', 'Subtask Id' => 'Deloppgave ID', 'Subtasks' => 'Deloppgaver', 'Subtasks Export' => 'Eksporter deloppgaver', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', 'New remote user' => 'Ny eksternbruker', 'New local user' => 'Ny internbruker', 'Default task color' => 'Standard oppgavefarge', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/nl_NL/translations.php b/app/Locale/nl_NL/translations.php index 5e1d2960..c52c20ea 100644 --- a/app/Locale/nl_NL/translations.php +++ b/app/Locale/nl_NL/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Swimlane succesvol aangemaakt.', 'Example: "Bug, Feature Request, Improvement"' => 'Voorbeeld: « Bug, Feature Request, Improvement »', 'Default categories for new projects (Comma-separated)' => 'Standaard categorieën voor nieuwe projecten (komma gescheiden)', - 'Gitlab commit received' => 'Gitlab commir ontvangen', - 'Gitlab issue opened' => 'Gitlab issue geopend', - 'Gitlab issue closed' => 'Gitlab issue gesloten', - 'Gitlab webhooks' => 'Gitlab webhooks', - 'Help on Gitlab webhooks' => 'Hulp bij Gitlab webhooks', 'Integrations' => 'Integraties', 'Integration with third-party services' => 'Integratie met derde-partij-services', - 'Gitlab Issue' => 'Gitlab issue', 'Subtask Id' => 'Subtaak id', 'Subtasks' => 'Subtaken', 'Subtasks Export' => 'Subtaken exporteren', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php index 253e19f6..dc95fbe1 100644 --- a/app/Locale/pl_PL/translations.php +++ b/app/Locale/pl_PL/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Proces tworzony pomyślnie.', 'Example: "Bug, Feature Request, Improvement"' => 'Przykład: "Błąd, Żądanie Funkcjonalności, Udoskonalenia"', 'Default categories for new projects (Comma-separated)' => 'Domyślne kategorie dla nowych projektów (oddzielone przecinkiem)', - // 'Gitlab commit received' => '', - // 'Gitlab issue opened' => '', - // 'Gitlab issue closed' => '', - // 'Gitlab webhooks' => '', - // 'Help on Gitlab webhooks' => '', 'Integrations' => 'Integracje', 'Integration with third-party services' => 'Integracja z usługami firm trzecich', - // 'Gitlab Issue' => '', 'Subtask Id' => 'ID pod-zadania', 'Subtasks' => 'Pod-zadania', 'Subtasks Export' => 'Eksport pod-zadań', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', 'New remote user' => 'Nowy użytkownik zdalny', 'New local user' => 'Nowy użytkownik lokalny', 'Default task color' => 'Domyślny kolor zadań', @@ -1047,7 +1039,6 @@ return array( 'Project Manager' => 'Menedżer projektu', 'Project Member' => 'Uczestnik projektu', 'Project Viewer' => 'Obserwator projektu', - // 'Gitlab issue reopened' => '', 'Your account is locked for %d minutes' => 'Twoje konto zostało zablokowane na %d minut', 'Invalid captcha' => 'Błędny kod z obrazka (captcha)', 'The name must be unique' => 'Nazwa musi być unikatowa', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php index ac063b16..7b291f26 100644 --- a/app/Locale/pt_BR/translations.php +++ b/app/Locale/pt_BR/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Sua swimlane foi criada com sucesso.', 'Example: "Bug, Feature Request, Improvement"' => 'Exemplo: "Bug, Solicitação de Recurso, Melhoria"', 'Default categories for new projects (Comma-separated)' => 'Categorias padrões para novos projetos (separadas por vírgula)', - 'Gitlab commit received' => 'Gitlab commit received', - 'Gitlab issue opened' => 'Gitlab issue opened', - 'Gitlab issue closed' => 'Gitlab issue closed', - 'Gitlab webhooks' => 'Gitlab webhooks', - 'Help on Gitlab webhooks' => 'Ajuda sobre os webhooks do GitLab', 'Integrations' => 'Integrações', 'Integration with third-party services' => 'Integração com serviços de terceiros', - 'Gitlab Issue' => 'Gitlab Issue', 'Subtask Id' => 'ID da subtarefa', 'Subtasks' => 'Subtarefas', 'Subtasks Export' => 'Exportar subtarefas', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Usuário remoto', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Os usuários remotos não conservam as suas senhas no banco de dados Kanboard, exemplos: contas LDAP, Github ou Google.', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Se você marcar "Interdir o formulário de autenticação", os identificadores entrados no formulário de login serão ignorado.', - 'By @%s on Gitlab' => 'Por @%s no Gitlab', - 'Gitlab issue comment created' => 'Comentário criado em um bilhete Gitlab', 'New remote user' => 'Criar um usuário remoto', 'New local user' => 'Criar um usuário local', 'Default task color' => 'Cor padrão para as tarefas', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/pt_PT/translations.php b/app/Locale/pt_PT/translations.php index fec3b724..44003b1b 100644 --- a/app/Locale/pt_PT/translations.php +++ b/app/Locale/pt_PT/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Seu swimlane foi criado com sucesso.', 'Example: "Bug, Feature Request, Improvement"' => 'Exemplo: "Bug, Feature Request, Improvement"', 'Default categories for new projects (Comma-separated)' => 'Categorias padrão para novos projectos (Separadas por vírgula)', - 'Gitlab commit received' => 'Commit recebido do Gitlab', - 'Gitlab issue opened' => 'Problema aberto no Gitlab', - 'Gitlab issue closed' => 'Problema fechado no Gitlab', - 'Gitlab webhooks' => 'Gitlab webhooks', - 'Help on Gitlab webhooks' => 'Ajuda sobre Gitlab webhooks', 'Integrations' => 'Integrações', 'Integration with third-party services' => 'Integração com serviços de terceiros', - 'Gitlab Issue' => 'Problema Gitlab', 'Subtask Id' => 'ID da subtarefa', 'Subtasks' => 'Subtarefas', 'Subtasks Export' => 'Exportar subtarefas', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Utilizador remoto', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Utilizadores remotos não guardam a password na base de dados do Kanboard, por exemplo: LDAP, contas do Google e Github.', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Se activar a opção "Desactivar login", as credenciais digitadas no login serão ignoradas.', - 'By @%s on Gitlab' => 'Por @%s no Gitlab', - 'Gitlab issue comment created' => 'Comentário a problema no Gitlab adicionado', 'New remote user' => 'Novo utilizador remoto', 'New local user' => 'Novo utilizador local', 'Default task color' => 'Cor de tarefa por defeito', @@ -1047,7 +1039,6 @@ return array( 'Project Manager' => 'Gestor de Projecto', 'Project Member' => 'Membro de Projecto', 'Project Viewer' => 'Visualizador de Projecto', - 'Gitlab issue reopened' => 'Problema Gitlab reaberto', 'Your account is locked for %d minutes' => 'A sua conta está bloqueada por %d minutos', 'Invalid captcha' => 'Captcha inválido', 'The name must be unique' => 'O nome deve ser único', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php index a8066115..4ad5b593 100644 --- a/app/Locale/ru_RU/translations.php +++ b/app/Locale/ru_RU/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Ваша дорожка была успешно создан.', 'Example: "Bug, Feature Request, Improvement"' => 'Например: "Баг, Фича, Улучшение"', 'Default categories for new projects (Comma-separated)' => 'Стандартные категории для нового проекта (разделяются запятыми)', - 'Gitlab commit received' => 'Получен коммит с Gitlab', - 'Gitlab issue opened' => 'Gitlab вопрос открыт', - 'Gitlab issue closed' => 'Gitlab вопрос закрыт', - 'Gitlab webhooks' => 'Gitlab webhooks', - 'Help on Gitlab webhooks' => 'Помощь по Gitlab webhooks', 'Integrations' => 'Интеграции', 'Integration with third-party services' => 'Интеграция со сторонними сервисами', - 'Gitlab Issue' => 'Gitlab вопрос', 'Subtask Id' => 'Id подзадачи', 'Subtasks' => 'Подзадачи', 'Subtasks Export' => 'Экспортировать подзадачи', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Удаленный пользователь', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Учетные данные для входа через LDAP, Google и Github не будут сохранены в Kanboard.', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Если вы установите флажок "Запретить форму входа", учетные данные, введенные в форму входа будет игнорироваться.', - 'By @%s on Gitlab' => 'От @%s на Gitlab', - 'Gitlab issue comment created' => 'Был создан комментарий к задаче на Gitlab', 'New remote user' => 'Новый удаленный пользователь', 'New local user' => 'Новый локальный пользователь', 'Default task color' => 'Стандартные цвета задач', @@ -1047,7 +1039,6 @@ return array( 'Project Manager' => 'Менеджер проекта', 'Project Member' => 'Участник проекта', 'Project Viewer' => 'Наблюдатель проекта', - 'Gitlab issue reopened' => 'Gitlab вопрос переоткрыт', 'Your account is locked for %d minutes' => 'Ваш аккаунт заблокирован на %d минут', 'Invalid captcha' => 'Неверный код подтверждения', 'The name must be unique' => 'Имя должно быть уникальным', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/sr_Latn_RS/translations.php b/app/Locale/sr_Latn_RS/translations.php index b59e2e51..07efed98 100644 --- a/app/Locale/sr_Latn_RS/translations.php +++ b/app/Locale/sr_Latn_RS/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Razdelnik je uspešno kreiran.', 'Example: "Bug, Feature Request, Improvement"' => 'Npr: "Greška, Zahtev za izmenama, Poboljšanje"', 'Default categories for new projects (Comma-separated)' => 'Osnovne kategorije za projekat', - // 'Gitlab commit received' => '', - // 'Gitlab issue opened' => '', - // 'Gitlab issue closed' => '', - // 'Gitlab webhooks' => '', - // 'Help on Gitlab webhooks' => '', 'Integrations' => 'Integracje', 'Integration with third-party services' => 'Integracja sa uslugama spoljnih servisa', - // 'Gitlab Issue' => '', 'Subtask Id' => 'ID pod-zadania', 'Subtasks' => 'Pod-zadataka', 'Subtasks Export' => 'Eksport pod-zadań', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php index bf6ee199..46159d8b 100644 --- a/app/Locale/sv_SE/translations.php +++ b/app/Locale/sv_SE/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Din swimlane har skapats', 'Example: "Bug, Feature Request, Improvement"' => 'Exempel: "Bug, ny funktionalitet, förbättringar"', 'Default categories for new projects (Comma-separated)' => 'Standardkategorier för nya projekt (komma-separerade)', - 'Gitlab commit received' => 'Gitlab bidrag mottaget', - 'Gitlab issue opened' => 'Gitlab fråga öppnad', - 'Gitlab issue closed' => 'Gitlab fråga stängd', - 'Gitlab webhooks' => 'Gitlab webhooks', - 'Help on Gitlab webhooks' => 'Hjälp för Gitlab webhooks', 'Integrations' => 'Integrationer', 'Integration with third-party services' => 'Integration med tjänst från tredjepart', - 'Gitlab Issue' => 'Gitlab fråga', 'Subtask Id' => 'Deluppgifts-ID', 'Subtasks' => 'Deluppgift', 'Subtasks Export' => 'Export av deluppgifter', @@ -870,8 +864,6 @@ return array( 'Remote user' => 'Extern användare', 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => 'Externa användares lösenord lagras inte i Kanboard-databasen, exempel: LDAP, Google och Github-konton.', 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => 'Om du aktiverar boxen "Tillåt inte loginformulär" kommer inloggningsuppgifter i formuläret att ignoreras.', - 'By @%s on Gitlab' => 'Av @%s på Gitlab', - 'Gitlab issue comment created' => 'Gitlab frågekommentar skapad', 'New remote user' => 'Ny extern användare', 'New local user' => 'Ny lokal användare', 'Default task color' => 'Standardfärg för uppgifter', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php index 81946540..0706163d 100644 --- a/app/Locale/th_TH/translations.php +++ b/app/Locale/th_TH/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'สวิมเลนของคุณถูกสร้างเรียบร้อยแล้ว', 'Example: "Bug, Feature Request, Improvement"' => 'ตัวอย่าง: "Bug, Feature Request, Improvement"', 'Default categories for new projects (Comma-separated)' => 'ค่าเริ่มต้นกลุ่มสำหรับโปรเจคใหม่ (Comma-separated)', - // 'Gitlab commit received' => '', - // 'Gitlab issue opened' => '', - // 'Gitlab issue closed' => '', - // 'Gitlab webhooks' => '', - // 'Help on Gitlab webhooks' => '', 'Integrations' => 'การใช้ร่วมกัน', 'Integration with third-party services' => 'การใช้งานร่วมกับบริการ third-party', - // 'Gitlab Issue' => '', 'Subtask Id' => 'รหัสงานย่อย', 'Subtasks' => 'งานย่อย', 'Subtasks Export' => 'ส่งออก งานย่อย', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/tr_TR/translations.php b/app/Locale/tr_TR/translations.php index 10472aad..3b576485 100644 --- a/app/Locale/tr_TR/translations.php +++ b/app/Locale/tr_TR/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => 'Kulvar başarıyla oluşturuldu.', 'Example: "Bug, Feature Request, Improvement"' => 'Örnek: "Sorun, Özellik talebi, İyileştirme"', 'Default categories for new projects (Comma-separated)' => 'Yeni projeler için varsayılan kategoriler (Virgül ile ayrılmış)', - // 'Gitlab commit received' => '', - // 'Gitlab issue opened' => '', - // 'Gitlab issue closed' => '', - // 'Gitlab webhooks' => '', - // 'Help on Gitlab webhooks' => '', 'Integrations' => 'Entegrasyon', 'Integration with third-party services' => 'Dış servislerle entegrasyon', - // 'Gitlab Issue' => '', 'Subtask Id' => 'Alt görev No:', 'Subtasks' => 'Alt görevler', 'Subtasks Export' => 'Alt görevleri dışa aktar', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', // 'Default task color' => '', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php index a152748f..f5de4725 100644 --- a/app/Locale/zh_CN/translations.php +++ b/app/Locale/zh_CN/translations.php @@ -543,14 +543,8 @@ return array( 'Your swimlane have been created successfully.' => '已经成功创建泳道。', 'Example: "Bug, Feature Request, Improvement"' => '示例:“缺陷,功能需求,提升', 'Default categories for new projects (Comma-separated)' => '新项目的默认分类(用逗号分隔)', - 'Gitlab commit received' => '收到 Gitlab 提交', - 'Gitlab issue opened' => '开启 Gitlab 问题', - 'Gitlab issue closed' => '关闭 Gitlab 问题', - 'Gitlab webhooks' => 'Gitlab 网络钩子', - 'Help on Gitlab webhooks' => 'Gitlab 网络钩子帮助', 'Integrations' => '整合', 'Integration with third-party services' => '与第三方服务进行整合', - 'Gitlab Issue' => 'Gitlab 问题', 'Subtask Id' => '子任务 Id', 'Subtasks' => '子任务', 'Subtasks Export' => '子任务导出', @@ -870,8 +864,6 @@ return array( // 'Remote user' => '', // 'Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.' => '', // 'If you check the box "Disallow login form", credentials entered in the login form will be ignored.' => '', - // 'By @%s on Gitlab' => '', - // 'Gitlab issue comment created' => '', // 'New remote user' => '', // 'New local user' => '', 'Default task color' => '默认任务颜色', @@ -1047,7 +1039,6 @@ return array( // 'Project Manager' => '', // 'Project Member' => '', // 'Project Viewer' => '', - // 'Gitlab issue reopened' => '', // 'Your account is locked for %d minutes' => '', // 'Invalid captcha' => '', // 'The name must be unique' => '', @@ -1094,4 +1085,5 @@ return array( // 'Two-Factor Provider: ' => '', // 'Disable two-factor authentication' => '', // 'Enable two-factor authentication' => '', + // 'There is no integration registered at the moment.' => '', ); diff --git a/app/ServiceProvider/ClassProvider.php b/app/ServiceProvider/ClassProvider.php index f7cd466c..3f6aecc5 100644 --- a/app/ServiceProvider/ClassProvider.php +++ b/app/ServiceProvider/ClassProvider.php @@ -114,9 +114,6 @@ class ClassProvider implements ServiceProviderInterface 'UserSync', 'UserSession', 'UserProfile', - ), - 'Integration' => array( - 'GitlabWebhook', ) ); diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php index 77b1b793..54720c69 100644 --- a/app/Template/project/integrations.php +++ b/app/Template/project/integrations.php @@ -5,11 +5,11 @@
form->csrf() ?> - hook->render('template:project:integrations', array('project' => $project, 'values' => $values, 'webhook_token' => $webhook_token)) ?> + hook->render('template:project:integrations', array('project' => $project, 'values' => $values, 'webhook_token' => $webhook_token)) ?> -

 

-
-
-

url->doc(t('Help on Gitlab webhooks'), 'gitlab-webhooks') ?>

-
+ +

+ + +
\ No newline at end of file diff --git a/doc/gitlab-webhooks.markdown b/doc/gitlab-webhooks.markdown deleted file mode 100644 index fec47c19..00000000 --- a/doc/gitlab-webhooks.markdown +++ /dev/null @@ -1,70 +0,0 @@ -Gitlab webhooks -=============== - -Gitlab events can be connected to Kanboard automatic actions. - -List of supported events ------------------------- - -- Gitlab commit received -- Gitlab issue opened -- Gitlab issue closed -- Gitlab issue comment created - -List of supported actions -------------------------- - -- Create a task from an external provider -- Close a task -- Create a comment from an external provider - -Configuration -------------- - -![Gitlab configuration](http://kanboard.net/screenshots/documentation/gitlab-webhooks.png) - -1. On Kanboard, go to the project settings and choose the section **Integrations** -2. Copy the Gitlab webhook url -3. On Gitlab, go to the project settings and go to the section **Webhooks** -4. Check the boxes **Push Events**, **Comments** and **Issues Events** -5. Paste the url and save - -Examples --------- - -### Close a Kanboard task when a commit pushed to Gitlab - -- Choose the event: **Gitlab commit received** -- Choose the action: **Close the task** - -When one or more commits are sent to Gitlab, Kanboard will receive the information, each commit message with a task number included will be closed. - -Example: - -- Commit message: "Fix bug #1234" -- That will close the Kanboard task #1234 - -### Create a Kanboard task when a new issue is opened on Gitlab - -- Choose the event: **Gitlab issue opened** -- Choose the action: **Create a task from an external provider** - -When a task is created from a Gitlab issue, the link to the issue is added to the description and the task have a new field named "Reference" (this is the Gitlab ticket number). - -### Close a Kanboard task when an issue is closed on Gitlab - -- Choose the event: **Gitlab issue closed** -- Choose the action: **Close the task** - -### Reopen a Kanboard task when a closed issue is reopened on Gitlab - -- Choose the event: **Gitlab issue reopened** -- Choose the action: **Open a task** - -### Create a comment on Kanboard when an issue is commented on Gitlab - -- Choose the event: **Gitlab issue comment created** -- Choose the action: **Create a comment from an external provider** - -If the username is the same between Gitlab and Kanboard the comment author will be assigned, otherwise there is no author. -The user also have to be member of the project in Kanboard. diff --git a/doc/index.markdown b/doc/index.markdown index bc3a2fbf..953dc72f 100644 --- a/doc/index.markdown +++ b/doc/index.markdown @@ -68,7 +68,6 @@ Using Kanboard ### Integrations -- [Gitlab webhooks](gitlab-webhooks.markdown) - [iCalendar subscriptions](ical.markdown) - [RSS/Atom subscriptions](rss.markdown) - [Json-RPC API](api-json-rpc.markdown) diff --git a/tests/units/Integration/GitlabWebhookTest.php b/tests/units/Integration/GitlabWebhookTest.php deleted file mode 100644 index afd9f7f1..00000000 --- a/tests/units/Integration/GitlabWebhookTest.php +++ /dev/null @@ -1,258 +0,0 @@ -container); - - $this->assertEquals(GitlabWebhook::TYPE_PUSH, $g->getType(json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_push.json'), true))); - $this->assertEquals(GitlabWebhook::TYPE_ISSUE, $g->getType(json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_issue_opened.json'), true))); - $this->assertEquals(GitlabWebhook::TYPE_COMMENT, $g->getType(json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_comment_created.json'), true))); - $this->assertEquals('', $g->getType(array())); - } - - public function testHandleCommit() - { - $g = new GitlabWebhook($this->container); - $p = new Project($this->container); - $tc = new TaskCreation($this->container); - $tf = new TaskFinder($this->container); - - $this->assertEquals(1, $p->create(array('name' => 'test'))); - $g->setProjectId(1); - - $this->container['dispatcher']->addListener(GitlabWebhook::EVENT_COMMIT, array($this, 'onCommit')); - - $event = json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_push.json'), true); - - // No task - $this->assertFalse($g->handleCommit($event['commits'][0])); - - // Create task with the wrong id - $this->assertEquals(1, $tc->create(array('title' => 'test1', 'project_id' => 1))); - $this->assertFalse($g->handleCommit($event['commits'][0])); - - // Create task with the right id - $this->assertEquals(2, $tc->create(array('title' => 'test2', 'project_id' => 1))); - $this->assertTrue($g->handleCommit($event['commits'][0])); - - $called = $this->container['dispatcher']->getCalledListeners(); - $this->assertArrayHasKey(GitlabWebhook::EVENT_COMMIT.'.GitlabWebhookTest::onCommit', $called); - } - - public function testHandleIssueOpened() - { - $g = new GitlabWebhook($this->container); - $g->setProjectId(1); - - $this->container['dispatcher']->addListener(GitlabWebhook::EVENT_ISSUE_OPENED, array($this, 'onOpen')); - - $event = json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_issue_opened.json'), true); - $this->assertTrue($g->handleIssueOpened($event['object_attributes'])); - - $called = $this->container['dispatcher']->getCalledListeners(); - $this->assertArrayHasKey(GitlabWebhook::EVENT_ISSUE_OPENED.'.GitlabWebhookTest::onOpen', $called); - } - - public function testHandleIssueReopened() - { - $g = new GitlabWebhook($this->container); - $p = new Project($this->container); - $tc = new TaskCreation($this->container); - $tf = new TaskFinder($this->container); - - $this->assertEquals(1, $p->create(array('name' => 'test'))); - $g->setProjectId(1); - - $this->container['dispatcher']->addListener(GitlabWebhook::EVENT_ISSUE_REOPENED, array($this, 'onReopen')); - - $event = json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_issue_reopened.json'), true); - - // Issue not there - $this->assertFalse($g->handleIssueReopened($event['object_attributes'])); - - $called = $this->container['dispatcher']->getCalledListeners(); - $this->assertEmpty($called); - - $this->assertEquals(1, $tc->create(array('title' => 'A', 'project_id' => 1, 'reference' => 355691))); - $task = $tf->getByReference(1, 355691); - $this->assertTrue($g->handleIssueReopened($event['object_attributes'])); - - $called = $this->container['dispatcher']->getCalledListeners(); - $this->assertArrayHasKey(GitlabWebhook::EVENT_ISSUE_REOPENED.'.GitlabWebhookTest::onReopen', $called); - } - - - public function testHandleIssueClosed() - { - $g = new GitlabWebhook($this->container); - $p = new Project($this->container); - $tc = new TaskCreation($this->container); - $tf = new TaskFinder($this->container); - - $this->assertEquals(1, $p->create(array('name' => 'test'))); - $g->setProjectId(1); - - $this->container['dispatcher']->addListener(GitlabWebhook::EVENT_ISSUE_CLOSED, array($this, 'onClose')); - - $event = json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_issue_closed.json'), true); - - // Issue not there - $this->assertFalse($g->handleIssueClosed($event['object_attributes'])); - - $called = $this->container['dispatcher']->getCalledListeners(); - $this->assertEmpty($called); - - // Create a task with the issue reference - $this->assertEquals(1, $tc->create(array('title' => 'A', 'project_id' => 1, 'reference' => 355691))); - $task = $tf->getByReference(1, 355691); - $this->assertNotEmpty($task); - - $task = $tf->getByReference(2, 355691); - $this->assertEmpty($task); - - $this->assertTrue($g->handleIssueClosed($event['object_attributes'])); - - $called = $this->container['dispatcher']->getCalledListeners(); - $this->assertArrayHasKey(GitlabWebhook::EVENT_ISSUE_CLOSED.'.GitlabWebhookTest::onClose', $called); - } - - public function testCommentCreatedWithNoUser() - { - $this->container['dispatcher']->addListener(GitlabWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithNoUser')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 355691, 'project_id' => 1))); - - $g = new GitlabWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_comment_created.json'), true) - )); - } - - public function testCommentCreatedWithNotMember() - { - $this->container['dispatcher']->addListener(GitlabWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithNotMember')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 355691, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'minicoders'))); - - $g = new GitlabWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_comment_created.json'), true) - )); - } - - public function testCommentCreatedWithUser() - { - $this->container['dispatcher']->addListener(GitlabWebhook::EVENT_ISSUE_COMMENT, array($this, 'onCommentCreatedWithUser')); - - $p = new Project($this->container); - $this->assertEquals(1, $p->create(array('name' => 'foobar'))); - - $tc = new TaskCreation($this->container); - $this->assertEquals(1, $tc->create(array('title' => 'boo', 'reference' => 355691, 'project_id' => 1))); - - $u = new User($this->container); - $this->assertEquals(2, $u->create(array('username' => 'minicoders'))); - - $pp = new ProjectUserRole($this->container); - $this->assertTrue($pp->addUser(1, 2, Role::PROJECT_MEMBER)); - - $g = new GitlabWebhook($this->container); - $g->setProjectId(1); - - $this->assertNotFalse($g->parsePayload( - json_decode(file_get_contents(__DIR__.'/../fixtures/gitlab_comment_created.json'), true) - )); - } - - public function onOpen($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(355691, $data['reference']); - $this->assertEquals('Bug', $data['title']); - $this->assertEquals("There is a bug somewhere.\r\n\r\nBye\n\n[Gitlab Issue](https://gitlab.com/minicoders/test-webhook/issues/1)", $data['description']); - } - - public function onReopen($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(355691, $data['reference']); - } - public function onClose($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(355691, $data['reference']); - } - - public function onCommit($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(2, $data['task_id']); - $this->assertEquals('test2', $data['title']); - $this->assertEquals("Fix bug #2\n\n[Commit made by @Fred on Gitlab](https://gitlab.com/minicoders/test-webhook/commit/48aafa75eef9ad253aa254b0c82c987a52ebea78)", $data['comment']); - $this->assertEquals("Fix bug #2", $data['commit_message']); - $this->assertEquals('https://gitlab.com/minicoders/test-webhook/commit/48aafa75eef9ad253aa254b0c82c987a52ebea78', $data['commit_url']); - } - - public function onCommentCreatedWithNoUser($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(0, $data['user_id']); - $this->assertEquals(1642761, $data['reference']); - $this->assertEquals("Super comment!\n\n[By @minicoders on Gitlab](https://gitlab.com/minicoders/test-webhook/issues/1#note_1642761)", $data['comment']); - } - - public function onCommentCreatedWithNotMember($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(0, $data['user_id']); - $this->assertEquals(1642761, $data['reference']); - $this->assertEquals("Super comment!\n\n[By @minicoders on Gitlab](https://gitlab.com/minicoders/test-webhook/issues/1#note_1642761)", $data['comment']); - } - - public function onCommentCreatedWithUser($event) - { - $data = $event->getAll(); - $this->assertEquals(1, $data['project_id']); - $this->assertEquals(1, $data['task_id']); - $this->assertEquals(2, $data['user_id']); - $this->assertEquals(1642761, $data['reference']); - $this->assertEquals("Super comment!\n\n[By @minicoders on Gitlab](https://gitlab.com/minicoders/test-webhook/issues/1#note_1642761)", $data['comment']); - } -} diff --git a/tests/units/fixtures/gitlab_comment_created.json b/tests/units/fixtures/gitlab_comment_created.json deleted file mode 100644 index b6599419..00000000 --- a/tests/units/fixtures/gitlab_comment_created.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "object_kind": "note", - "user": { - "name": "Fred", - "username": "minicoders", - "avatar_url": "https://secure.gravatar.com/avatar/3c44936e5a56f80711bff14987d2733f?s=40&d=identicon" - }, - "project_id": 320820, - "repository": { - "name": "test-webhook", - "url": "git@gitlab.com:minicoders/test-webhook.git", - "description": "", - "homepage": "https://gitlab.com/minicoders/test-webhook" - }, - "object_attributes": { - "id": 1642761, - "note": "Super comment!", - "noteable_type": "Issue", - "author_id": 74067, - "created_at": "2015-07-17 21:37:48 UTC", - "updated_at": "2015-07-17 21:37:48 UTC", - "project_id": 320820, - "attachment": null, - "line_code": null, - "commit_id": "", - "noteable_id": 355691, - "st_diff": null, - "system": false, - "url": "https://gitlab.com/minicoders/test-webhook/issues/1#note_1642761" - }, - "issue": { - "id": 355691, - "title": "Bug", - "assignee_id": null, - "author_id": 74067, - "project_id": 320820, - "created_at": "2015-07-17 21:31:47 UTC", - "updated_at": "2015-07-17 21:37:48 UTC", - "position": 0, - "branch_name": null, - "description": "There is a bug somewhere.\r\n\r\nBye", - "milestone_id": null, - "state": "opened", - "iid": 1 - } -} \ No newline at end of file diff --git a/tests/units/fixtures/gitlab_issue_closed.json b/tests/units/fixtures/gitlab_issue_closed.json deleted file mode 100644 index 82500b3c..00000000 --- a/tests/units/fixtures/gitlab_issue_closed.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "object_kind": "issue", - "user": { - "name": "Fred", - "username": "minicoders", - "avatar_url": "https://secure.gravatar.com/avatar/3c44936e5a56f80711bff14987d2733f?s=40&d=identicon" - }, - "object_attributes": { - "id": 355691, - "title": "Bug", - "assignee_id": null, - "author_id": 74067, - "project_id": 320820, - "created_at": "2015-07-17 21:31:47 UTC", - "updated_at": "2015-07-17 22:10:17 UTC", - "position": 0, - "branch_name": null, - "description": "There is a bug somewhere.\r\n\r\nBye", - "milestone_id": null, - "state": "closed", - "iid": 1, - "url": "https://gitlab.com/minicoders/test-webhook/issues/1", - "action": "close" - } -} \ No newline at end of file diff --git a/tests/units/fixtures/gitlab_issue_opened.json b/tests/units/fixtures/gitlab_issue_opened.json deleted file mode 100644 index 3e75c138..00000000 --- a/tests/units/fixtures/gitlab_issue_opened.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "object_kind": "issue", - "user": { - "name": "Fred", - "username": "minicoders", - "avatar_url": "https://secure.gravatar.com/avatar/3c44936e5a56f80711bff14987d2733f?s=40&d=identicon" - }, - "object_attributes": { - "id": 355691, - "title": "Bug", - "assignee_id": null, - "author_id": 74067, - "project_id": 320820, - "created_at": "2015-07-17 21:31:47 UTC", - "updated_at": "2015-07-17 21:31:47 UTC", - "position": 0, - "branch_name": null, - "description": "There is a bug somewhere.\r\n\r\nBye", - "milestone_id": null, - "state": "opened", - "iid": 1, - "url": "https://gitlab.com/minicoders/test-webhook/issues/1", - "action": "open" - } -} \ No newline at end of file diff --git a/tests/units/fixtures/gitlab_issue_reopened.json b/tests/units/fixtures/gitlab_issue_reopened.json deleted file mode 100644 index bf76262d..00000000 --- a/tests/units/fixtures/gitlab_issue_reopened.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "object_kind": "issue", - "user": { - "name": "Fred", - "username": "minicoders", - "avatar_url": "https://secure.gravatar.com/avatar/3c44936e5a56f80711bff14987d2733f?s=40&d=identicon" - }, - "object_attributes": { - "id": 355691, - "title": "Bug", - "assignee_id": null, - "author_id": 74067, - "project_id": 320820, - "created_at": "2015-07-17 21:31:47 UTC", - "updated_at": "2015-07-17 21:31:47 UTC", - "position": 0, - "branch_name": null, - "description": "There is a bug somewhere.\r\n\r\nBye", - "milestone_id": null, - "state": "opened", - "iid": 1, - "url": "https://gitlab.com/minicoders/test-webhook/issues/1", - "action": "reopen" - } -} diff --git a/tests/units/fixtures/gitlab_push.json b/tests/units/fixtures/gitlab_push.json deleted file mode 100644 index ed77f041..00000000 --- a/tests/units/fixtures/gitlab_push.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "object_kind": "push", - "before": "e4ec6156d208a45fc546fae73c28300b5af1692a", - "after": "48aafa75eef9ad253aa254b0c82c987a52ebea78", - "ref": "refs/heads/master", - "checkout_sha": "48aafa75eef9ad253aa254b0c82c987a52ebea78", - "message": null, - "user_id": 74067, - "user_name": "Fred", - "user_email": "f+gitlab@minicoders.com", - "project_id": 320820, - "repository": { - "name": "test-webhook", - "url": "git@gitlab.com:minicoders/test-webhook.git", - "description": "", - "homepage": "https://gitlab.com/minicoders/test-webhook", - "git_http_url": "https://gitlab.com/minicoders/test-webhook.git", - "git_ssh_url": "git@gitlab.com:minicoders/test-webhook.git", - "visibility_level": 0 - }, - "commits": [ - { - "id": "48aafa75eef9ad253aa254b0c82c987a52ebea78", - "message": "Fix bug #2", - "timestamp": "2015-06-21T00:41:41+00:00", - "url": "https://gitlab.com/minicoders/test-webhook/commit/48aafa75eef9ad253aa254b0c82c987a52ebea78", - "author": { - "name": "Fred", - "email": "me@localhost" - } - }, - { - "id": "e4ec6156d208a45fc546fae73c28300b5af1692a", - "message": "test", - "timestamp": "2015-06-21T00:35:55+00:00", - "url": "https://gitlab.com/localhost/test-webhook/commit/e4ec6156d208a45fc546fae73c28300b5af1692a", - "author": { - "name": "Fred", - "email": "me@localhost" - } - } - ], - "total_commits_count": 2 -} \ No newline at end of file -- cgit v1.2.3