{"action":"opened","number":705,"pull_request":{"url":"https://api.github.com/repos/joomla/jissues/pulls/705","id":45355268,"html_url":"https://github.com/joomla/jissues/pull/705","diff_url":"https://github.com/joomla/jissues/pull/705.diff","patch_url":"https://github.com/joomla/jissues/pull/705.patch","issue_url":"https://api.github.com/repos/joomla/jissues/issues/705","number":705,"state":"open","locked":false,"title":"Auto categories","user":{"login":"zero-24","id":2596554,"avatar_url":"https://avatars.githubusercontent.com/u/2596554?v=3","gravatar_id":"","url":"https://api.github.com/users/zero-24","html_url":"https://github.com/zero-24","followers_url":"https://api.github.com/users/zero-24/followers","following_url":"https://api.github.com/users/zero-24/following{/other_user}","gists_url":"https://api.github.com/users/zero-24/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-24/subscriptions","organizations_url":"https://api.github.com/users/zero-24/orgs","repos_url":"https://api.github.com/users/zero-24/repos","events_url":"https://api.github.com/users/zero-24/events{/privacy}","received_events_url":"https://api.github.com/users/zero-24/received_events","type":"User","site_admin":false},"body":"Hi @mbabker @b2z @elkuku \r\n\r\nHere is just one more new `feature` that would very helpful to me ;)\r\n\r\nThis change should add more automagic this time to the categories. The Bot should add the \"category\" based on some tests (changed files) for pull requests as it is easyer to extract it from the pull than from the text ;)\r\n\r\nAs I have no online system to test availiable (simple no root server in the internet currently) can you review and test, suggest, improve here? Maybe we can use again @b2z 's test site (if he is back from vacation)?\r\n\r\n#### Two things I'm not sure\r\n\r\nWhat is the differenz between\r\n\r\n`$category['issue_id']` and `$category['issue_number']`?\r\n\r\n```php\r\n$categoryModel            = new CategoryModel($this->getContainer()->get('db'));\r\n$category['issue_id']     = $issueNumber;\r\n$category['modified_by']  = $this->getGithubBotName($project);\r\n$category['categories']   = $addCategories;\r\n$category['issue_number'] = $issueNumber;\r\n$category['project_id']   = $project->project_id;\r\n\r\n$categoryModel->updateCategory($category);\r\n```\r\n\r\nAs we use the CategoryModel that handle the database changes we don't need to pass the `IssuesTable $table`every time? Correct?\r\n\r\nThanks for any feedback :smile: ","created_at":"2015-09-17T23:42:35Z","updated_at":"2015-09-17T23:42:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joomla/jissues/pulls/705/commits","review_comments_url":"https://api.github.com/repos/joomla/jissues/pulls/705/comments","review_comment_url":"https://api.github.com/repos/joomla/jissues/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla/jissues/issues/705/comments","statuses_url":"https://api.github.com/repos/joomla/jissues/statuses/be7677164cd8d56aae60b9d3ef73fa365a860bd7","head":{"label":"zero-24:auto_categories","ref":"auto_categories","sha":"be7677164cd8d56aae60b9d3ef73fa365a860bd7","user":{"login":"zero-24","id":2596554,"avatar_url":"https://avatars.githubusercontent.com/u/2596554?v=3","gravatar_id":"","url":"https://api.github.com/users/zero-24","html_url":"https://github.com/zero-24","followers_url":"https://api.github.com/users/zero-24/followers","following_url":"https://api.github.com/users/zero-24/following{/other_user}","gists_url":"https://api.github.com/users/zero-24/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-24/subscriptions","organizations_url":"https://api.github.com/users/zero-24/orgs","repos_url":"https://api.github.com/users/zero-24/repos","events_url":"https://api.github.com/users/zero-24/events{/privacy}","received_events_url":"https://api.github.com/users/zero-24/received_events","type":"User","site_admin":false},"repo":{"id":22654833,"name":"jissues","full_name":"zero-24/jissues","owner":{"login":"zero-24","id":2596554,"avatar_url":"https://avatars.githubusercontent.com/u/2596554?v=3","gravatar_id":"","url":"https://api.github.com/users/zero-24","html_url":"https://github.com/zero-24","followers_url":"https://api.github.com/users/zero-24/followers","following_url":"https://api.github.com/users/zero-24/following{/other_user}","gists_url":"https://api.github.com/users/zero-24/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-24/subscriptions","organizations_url":"https://api.github.com/users/zero-24/orgs","repos_url":"https://api.github.com/users/zero-24/repos","events_url":"https://api.github.com/users/zero-24/events{/privacy}","received_events_url":"https://api.github.com/users/zero-24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zero-24/jissues","description":"Issue Tracking application integrating with GitHub to replace the existing Joomlacode solution.","fork":true,"url":"https://api.github.com/repos/zero-24/jissues","forks_url":"https://api.github.com/repos/zero-24/jissues/forks","keys_url":"https://api.github.com/repos/zero-24/jissues/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zero-24/jissues/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zero-24/jissues/teams","hooks_url":"https://api.github.com/repos/zero-24/jissues/hooks","issue_events_url":"https://api.github.com/repos/zero-24/jissues/issues/events{/number}","events_url":"https://api.github.com/repos/zero-24/jissues/events","assignees_url":"https://api.github.com/repos/zero-24/jissues/assignees{/user}","branches_url":"https://api.github.com/repos/zero-24/jissues/branches{/branch}","tags_url":"https://api.github.com/repos/zero-24/jissues/tags","blobs_url":"https://api.github.com/repos/zero-24/jissues/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zero-24/jissues/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zero-24/jissues/git/refs{/sha}","trees_url":"https://api.github.com/repos/zero-24/jissues/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zero-24/jissues/statuses/{sha}","languages_url":"https://api.github.com/repos/zero-24/jissues/languages","stargazers_url":"https://api.github.com/repos/zero-24/jissues/stargazers","contributors_url":"https://api.github.com/repos/zero-24/jissues/contributors","subscribers_url":"https://api.github.com/repos/zero-24/jissues/subscribers","subscription_url":"https://api.github.com/repos/zero-24/jissues/subscription","commits_url":"https://api.github.com/repos/zero-24/jissues/commits{/sha}","git_commits_url":"https://api.github.com/repos/zero-24/jissues/git/commits{/sha}","comments_url":"https://api.github.com/repos/zero-24/jissues/comments{/number}","issue_comment_url":"https://api.github.com/repos/zero-24/jissues/issues/comments{/number}","contents_url":"https://api.github.com/repos/zero-24/jissues/contents/{+path}","compare_url":"https://api.github.com/repos/zero-24/jissues/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zero-24/jissues/merges","archive_url":"https://api.github.com/repos/zero-24/jissues/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zero-24/jissues/downloads","issues_url":"https://api.github.com/repos/zero-24/jissues/issues{/number}","pulls_url":"https://api.github.com/repos/zero-24/jissues/pulls{/number}","milestones_url":"https://api.github.com/repos/zero-24/jissues/milestones{/number}","notifications_url":"https://api.github.com/repos/zero-24/jissues/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zero-24/jissues/labels{/name}","releases_url":"https://api.github.com/repos/zero-24/jissues/releases{/id}","created_at":"2014-08-05T18:33:39Z","updated_at":"2015-06-18T19:56:50Z","pushed_at":"2015-09-17T23:28:15Z","git_url":"git://github.com/zero-24/jissues.git","ssh_url":"git@github.com:zero-24/jissues.git","clone_url":"https://github.com/zero-24/jissues.git","svn_url":"https://github.com/zero-24/jissues","homepage":"https://plus.google.com/u/0/communities/102541713885101375024","size":14971,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"joomla:master","ref":"master","sha":"aaadf548e770ba14104fce6ebdaf0e484b9e8dfc","user":{"login":"joomla","id":751633,"avatar_url":"https://avatars.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"repo":{"id":6099080,"name":"jissues","full_name":"joomla/jissues","owner":{"login":"joomla","id":751633,"avatar_url":"https://avatars.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla/jissues","description":"Issue Tracking application integrating with GitHub to replace the existing Joomlacode solution.","fork":false,"url":"https://api.github.com/repos/joomla/jissues","forks_url":"https://api.github.com/repos/joomla/jissues/forks","keys_url":"https://api.github.com/repos/joomla/jissues/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla/jissues/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla/jissues/teams","hooks_url":"https://api.github.com/repos/joomla/jissues/hooks","issue_events_url":"https://api.github.com/repos/joomla/jissues/issues/events{/number}","events_url":"https://api.github.com/repos/joomla/jissues/events","assignees_url":"https://api.github.com/repos/joomla/jissues/assignees{/user}","branches_url":"https://api.github.com/repos/joomla/jissues/branches{/branch}","tags_url":"https://api.github.com/repos/joomla/jissues/tags","blobs_url":"https://api.github.com/repos/joomla/jissues/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla/jissues/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla/jissues/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla/jissues/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla/jissues/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla/jissues/languages","stargazers_url":"https://api.github.com/repos/joomla/jissues/stargazers","contributors_url":"https://api.github.com/repos/joomla/jissues/contributors","subscribers_url":"https://api.github.com/repos/joomla/jissues/subscribers","subscription_url":"https://api.github.com/repos/joomla/jissues/subscription","commits_url":"https://api.github.com/repos/joomla/jissues/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla/jissues/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla/jissues/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla/jissues/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla/jissues/contents/{+path}","compare_url":"https://api.github.com/repos/joomla/jissues/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla/jissues/merges","archive_url":"https://api.github.com/repos/joomla/jissues/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla/jissues/downloads","issues_url":"https://api.github.com/repos/joomla/jissues/issues{/number}","pulls_url":"https://api.github.com/repos/joomla/jissues/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla/jissues/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla/jissues/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla/jissues/labels{/name}","releases_url":"https://api.github.com/repos/joomla/jissues/releases{/id}","created_at":"2012-10-06T02:12:43Z","updated_at":"2015-08-31T19:34:52Z","pushed_at":"2015-09-17T20:30:10Z","git_url":"git://github.com/joomla/jissues.git","ssh_url":"git@github.com:joomla/jissues.git","clone_url":"https://github.com/joomla/jissues.git","svn_url":"https://github.com/joomla/jissues","homepage":"","size":20506,"stargazers_count":51,"watchers_count":51,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":54,"forks":53,"open_issues":54,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla/jissues/pulls/705"},"html":{"href":"https://github.com/joomla/jissues/pull/705"},"issue":{"href":"https://api.github.com/repos/joomla/jissues/issues/705"},"comments":{"href":"https://api.github.com/repos/joomla/jissues/issues/705/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla/jissues/pulls/705/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla/jissues/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla/jissues/pulls/705/commits"},"statuses":{"href":"https://api.github.com/repos/joomla/jissues/statuses/be7677164cd8d56aae60b9d3ef73fa365a860bd7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":314,"deletions":20,"changed_files":2}}