{"action":"created","issue":{"url":"https://api.github.com/repos/afragen/github-updater/issues/214","labels_url":"https://api.github.com/repos/afragen/github-updater/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/afragen/github-updater/issues/214/comments","events_url":"https://api.github.com/repos/afragen/github-updater/issues/214/events","html_url":"https://github.com/afragen/github-updater/issues/214","id":66850484,"number":214,"title":"Branch switching support problem.","user":{"login":"pedro-mendonca","id":7371591,"avatar_url":"https://avatars.githubusercontent.com/u/7371591?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-mendonca","html_url":"https://github.com/pedro-mendonca","followers_url":"https://api.github.com/users/pedro-mendonca/followers","following_url":"https://api.github.com/users/pedro-mendonca/following{/other_user}","gists_url":"https://api.github.com/users/pedro-mendonca/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-mendonca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-mendonca/subscriptions","organizations_url":"https://api.github.com/users/pedro-mendonca/orgs","repos_url":"https://api.github.com/users/pedro-mendonca/repos","events_url":"https://api.github.com/users/pedro-mendonca/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-mendonca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T10:36:36Z","updated_at":"2015-04-07T11:47:14Z","closed_at":null,"body":"Hi,\r\n\r\nI've found two situations where Branch switching isn't working:\r\n\r\n**a) repo name is case sensitive**\r\n\r\nI've added the headers to the main php file of a plugin.\r\nThe branch switcher won't work unless I the repo name is exactly the same as the main file/textdomain.\r\nAs this plugin I'm testing have some capital letters it won´t show the new branch switcher.\r\nExample:\r\nhttps://github.com/Designmodocom/WP-Maintenance-Mode\r\nThe file is wp-maintenance-mode, if I change the `GitHub Plugin URI: https://github.com/Designmodocom/WP-Maintenance-Mode` to `GitHub Plugin URI: https://github.com/Designmodocom/wp-maintenance-mode` it works, but renaming this repo is not possible for me.\r\n\r\nCan you make this not case sensitive?\r\n\r\n\r\n**b) repo name must be equal to install folder**\r\n\r\nExample:\r\nhttps://github.com/elliotcondon/acf\r\nThe plugin also don't show branch support, it's because the `acf` plugin repo name is different from plugin install folder `advanced-custom-fields`.\r\n\r\n\r\nBoth cases can happen and github-updater should be able to rely on something else to work correctly."},"comment":{"url":"https://api.github.com/repos/afragen/github-updater/issues/comments/90521315","html_url":"https://github.com/afragen/github-updater/issues/214#issuecomment-90521315","issue_url":"https://api.github.com/repos/afragen/github-updater/issues/214","id":90521315,"user":{"login":"pedro-mendonca","id":7371591,"avatar_url":"https://avatars.githubusercontent.com/u/7371591?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-mendonca","html_url":"https://github.com/pedro-mendonca","followers_url":"https://api.github.com/users/pedro-mendonca/followers","following_url":"https://api.github.com/users/pedro-mendonca/following{/other_user}","gists_url":"https://api.github.com/users/pedro-mendonca/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-mendonca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-mendonca/subscriptions","organizations_url":"https://api.github.com/users/pedro-mendonca/orgs","repos_url":"https://api.github.com/users/pedro-mendonca/repos","events_url":"https://api.github.com/users/pedro-mendonca/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-mendonca/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T11:47:14Z","updated_at":"2015-04-07T11:47:14Z","body":"I've read in this GHU Description (https://github.com/afragen/github-updater#description) that you've described both these situations.\r\n\r\nAre you sure it's not possible work this out even for plugins that don't follow these rules?"}}