{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/779","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/779/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/779/events","html_url":"https://github.com/travis-ci/travis-ci/issues/779","id":8746862,"number":779,"title":"Add generic URL option for status png to make forking readmes on github display correct repo","user":{"login":"DavidJFelix","id":263432,"avatar_url":"https://avatars.githubusercontent.com/u/263432?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidJFelix","html_url":"https://github.com/DavidJFelix","followers_url":"https://api.github.com/users/DavidJFelix/followers","following_url":"https://api.github.com/users/DavidJFelix/following{/other_user}","gists_url":"https://api.github.com/users/DavidJFelix/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidJFelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidJFelix/subscriptions","organizations_url":"https://api.github.com/users/DavidJFelix/orgs","repos_url":"https://api.github.com/users/DavidJFelix/repos","events_url":"https://api.github.com/users/DavidJFelix/events{/privacy}","received_events_url":"https://api.github.com/users/DavidJFelix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/feature-request","name":"feature-request","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2012-11-28T02:11:22Z","updated_at":"2015-07-22T18:44:18Z","closed_at":"2014-02-19T12:26:32Z","body":"Feature request:\n\nThe current status icon is great for many things, but has its own issues within github.\n\nSay I have a project and the readme has a reference to the status icon, http://travis-ci.org/DavidJFelix/example.png . John Doe forks my project and does a bunch of work, but his readme points to my status icon, regardless of whether or not he has travis-ci setup. This can mean inaccurate information is displayed. This means that perhaps John will need to ignore certain parts when pushing/pulling and make use of filter-branch more frequently. \n\nSay for another example that I'm a travis-ci zealot and I'm telling a friend how helpful travis-ci can be for projects! I see his project sitting out on github and I think \"I know! I'll just patch travis-ci support for him, and all he has to do is turn it on in the admin panel\". If I send him a pull request, I have to either set up a hard address for him to pull (this can be further complicated if my friend is organization, and the person who turns on travis could be any admin member of the group).\n\nMy proposal is to expand the current controller that handles status images to accept a static route (perhaps travis-ci.org/status_img.png) and check the referer URL. If the URL doesn't exist or can't be linked to a travis user/repo - it reports unknown status. If it parses as a github repository and can be found as a linked repository, display the icon! That way forks can immediately reflect build status.\n\nThis could also be expanded to be more reliable. The current solution proposed could be unreliable if the client doesn't report referer url or if an outside site strips the readme for internal documents. In these cases, perhaps the github hooks api could be used to make travis aware of forks that exist/the network graph. This is only really necessary if the referer url proves to be too reliable.\n\nI tried to get help implementing this myself, but I just can't be bothered to learn rails 3 just to implement a 3-10 line pull request - I know it's this simple, but I haven't used rails in years so I can't figure out how. I'll donate $35USD to travis in the name of any person who helps me implement this - regardless of whether the pull request is accepted or not."},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/123822742","html_url":"https://github.com/travis-ci/travis-ci/issues/779#issuecomment-123822742","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/779","id":123822742,"user":{"login":"DavidJFelix","id":263432,"avatar_url":"https://avatars.githubusercontent.com/u/263432?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidJFelix","html_url":"https://github.com/DavidJFelix","followers_url":"https://api.github.com/users/DavidJFelix/followers","following_url":"https://api.github.com/users/DavidJFelix/following{/other_user}","gists_url":"https://api.github.com/users/DavidJFelix/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidJFelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidJFelix/subscriptions","organizations_url":"https://api.github.com/users/DavidJFelix/orgs","repos_url":"https://api.github.com/users/DavidJFelix/repos","events_url":"https://api.github.com/users/DavidJFelix/events{/privacy}","received_events_url":"https://api.github.com/users/DavidJFelix/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T18:44:18Z","updated_at":"2015-07-22T18:44:18Z","body":"@ilanbiala nope. Github's \"camo\" proxy prevents referrer from being passed and therefore the server from detecting where the request is originating."}}