{"action":"closed","number":296,"pull_request":{"url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/296","id":69730953,"html_url":"https://github.com/unl/UNL_MediaHub/pull/296","diff_url":"https://github.com/unl/UNL_MediaHub/pull/296.diff","patch_url":"https://github.com/unl/UNL_MediaHub/pull/296.patch","issue_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/296","number":296,"state":"closed","locked":false,"title":"Improve cache busting","user":{"login":"mfairchild365","id":498678,"avatar_url":"https://avatars.githubusercontent.com/u/498678?v=3","gravatar_id":"","url":"https://api.github.com/users/mfairchild365","html_url":"https://github.com/mfairchild365","followers_url":"https://api.github.com/users/mfairchild365/followers","following_url":"https://api.github.com/users/mfairchild365/following{/other_user}","gists_url":"https://api.github.com/users/mfairchild365/gists{/gist_id}","starred_url":"https://api.github.com/users/mfairchild365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfairchild365/subscriptions","organizations_url":"https://api.github.com/users/mfairchild365/orgs","repos_url":"https://api.github.com/users/mfairchild365/repos","events_url":"https://api.github.com/users/mfairchild365/events{/privacy}","received_events_url":"https://api.github.com/users/mfairchild365/received_events","type":"User","site_admin":false},"body":"Versioning for cache busting was done via a constant on the controller (it needed to be updated manually). This caused confusion as to when it should be updated.\r\n\r\nIdeally versioning would be done with git anyway, so this PR will use git to handle cache busting. Rather than calling a git command for every request, have a `version.txt` file while will be updated via git hooks whenever the application is updated.","created_at":"2016-05-11T19:48:00Z","updated_at":"2016-05-12T18:34:19Z","closed_at":"2016-05-12T18:34:18Z","merged_at":"2016-05-12T18:34:18Z","merge_commit_sha":"259250d866e40335e52d8cfaffc109781141faae","assignee":{"login":"kabel","id":675956,"avatar_url":"https://avatars.githubusercontent.com/u/675956?v=3","gravatar_id":"","url":"https://api.github.com/users/kabel","html_url":"https://github.com/kabel","followers_url":"https://api.github.com/users/kabel/followers","following_url":"https://api.github.com/users/kabel/following{/other_user}","gists_url":"https://api.github.com/users/kabel/gists{/gist_id}","starred_url":"https://api.github.com/users/kabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabel/subscriptions","organizations_url":"https://api.github.com/users/kabel/orgs","repos_url":"https://api.github.com/users/kabel/repos","events_url":"https://api.github.com/users/kabel/events{/privacy}","received_events_url":"https://api.github.com/users/kabel/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/296/commits","review_comments_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/296/comments","review_comment_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/296/comments","statuses_url":"https://api.github.com/repos/unl/UNL_MediaHub/statuses/d7611480f2dff1baf79803fb8cc971687c1c5f27","head":{"label":"mfairchild365:improve-cache-busting","ref":"improve-cache-busting","sha":"d7611480f2dff1baf79803fb8cc971687c1c5f27","user":{"login":"mfairchild365","id":498678,"avatar_url":"https://avatars.githubusercontent.com/u/498678?v=3","gravatar_id":"","url":"https://api.github.com/users/mfairchild365","html_url":"https://github.com/mfairchild365","followers_url":"https://api.github.com/users/mfairchild365/followers","following_url":"https://api.github.com/users/mfairchild365/following{/other_user}","gists_url":"https://api.github.com/users/mfairchild365/gists{/gist_id}","starred_url":"https://api.github.com/users/mfairchild365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfairchild365/subscriptions","organizations_url":"https://api.github.com/users/mfairchild365/orgs","repos_url":"https://api.github.com/users/mfairchild365/repos","events_url":"https://api.github.com/users/mfairchild365/events{/privacy}","received_events_url":"https://api.github.com/users/mfairchild365/received_events","type":"User","site_admin":false},"repo":{"id":13930557,"name":"UNL_MediaHub","full_name":"mfairchild365/UNL_MediaHub","owner":{"login":"mfairchild365","id":498678,"avatar_url":"https://avatars.githubusercontent.com/u/498678?v=3","gravatar_id":"","url":"https://api.github.com/users/mfairchild365","html_url":"https://github.com/mfairchild365","followers_url":"https://api.github.com/users/mfairchild365/followers","following_url":"https://api.github.com/users/mfairchild365/following{/other_user}","gists_url":"https://api.github.com/users/mfairchild365/gists{/gist_id}","starred_url":"https://api.github.com/users/mfairchild365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfairchild365/subscriptions","organizations_url":"https://api.github.com/users/mfairchild365/orgs","repos_url":"https://api.github.com/users/mfairchild365/repos","events_url":"https://api.github.com/users/mfairchild365/events{/privacy}","received_events_url":"https://api.github.com/users/mfairchild365/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mfairchild365/UNL_MediaHub","description":"A media aggregator for educational institutions","fork":true,"url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub","forks_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/forks","keys_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/teams","hooks_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/hooks","issue_events_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/issues/events{/number}","events_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/events","assignees_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/assignees{/user}","branches_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/branches{/branch}","tags_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/tags","blobs_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/statuses/{sha}","languages_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/languages","stargazers_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/stargazers","contributors_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/contributors","subscribers_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/subscribers","subscription_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/subscription","commits_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/contents/{+path}","compare_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/merges","archive_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/downloads","issues_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/issues{/number}","pulls_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/pulls{/number}","milestones_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/milestones{/number}","notifications_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/labels{/name}","releases_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/releases{/id}","deployments_url":"https://api.github.com/repos/mfairchild365/UNL_MediaHub/deployments","created_at":"2013-10-28T15:55:04Z","updated_at":"2014-04-25T15:45:40Z","pushed_at":"2016-05-12T18:33:51Z","git_url":"git://github.com/mfairchild365/UNL_MediaHub.git","ssh_url":"git@github.com:mfairchild365/UNL_MediaHub.git","clone_url":"https://github.com/mfairchild365/UNL_MediaHub.git","svn_url":"https://github.com/mfairchild365/UNL_MediaHub","homepage":"http://mediahub.unl.edu/","size":155726,"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":"unl:4.0_template","ref":"4.0_template","sha":"ca97c002e9c9ca4ccbfa6f18033c1781f80f256e","user":{"login":"unl","id":704049,"avatar_url":"https://avatars.githubusercontent.com/u/704049?v=3","gravatar_id":"","url":"https://api.github.com/users/unl","html_url":"https://github.com/unl","followers_url":"https://api.github.com/users/unl/followers","following_url":"https://api.github.com/users/unl/following{/other_user}","gists_url":"https://api.github.com/users/unl/gists{/gist_id}","starred_url":"https://api.github.com/users/unl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unl/subscriptions","organizations_url":"https://api.github.com/users/unl/orgs","repos_url":"https://api.github.com/users/unl/repos","events_url":"https://api.github.com/users/unl/events{/privacy}","received_events_url":"https://api.github.com/users/unl/received_events","type":"Organization","site_admin":false},"repo":{"id":1579338,"name":"UNL_MediaHub","full_name":"unl/UNL_MediaHub","owner":{"login":"unl","id":704049,"avatar_url":"https://avatars.githubusercontent.com/u/704049?v=3","gravatar_id":"","url":"https://api.github.com/users/unl","html_url":"https://github.com/unl","followers_url":"https://api.github.com/users/unl/followers","following_url":"https://api.github.com/users/unl/following{/other_user}","gists_url":"https://api.github.com/users/unl/gists{/gist_id}","starred_url":"https://api.github.com/users/unl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unl/subscriptions","organizations_url":"https://api.github.com/users/unl/orgs","repos_url":"https://api.github.com/users/unl/repos","events_url":"https://api.github.com/users/unl/events{/privacy}","received_events_url":"https://api.github.com/users/unl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unl/UNL_MediaHub","description":"A media aggregator for educational institutions","fork":false,"url":"https://api.github.com/repos/unl/UNL_MediaHub","forks_url":"https://api.github.com/repos/unl/UNL_MediaHub/forks","keys_url":"https://api.github.com/repos/unl/UNL_MediaHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unl/UNL_MediaHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unl/UNL_MediaHub/teams","hooks_url":"https://api.github.com/repos/unl/UNL_MediaHub/hooks","issue_events_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/events{/number}","events_url":"https://api.github.com/repos/unl/UNL_MediaHub/events","assignees_url":"https://api.github.com/repos/unl/UNL_MediaHub/assignees{/user}","branches_url":"https://api.github.com/repos/unl/UNL_MediaHub/branches{/branch}","tags_url":"https://api.github.com/repos/unl/UNL_MediaHub/tags","blobs_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unl/UNL_MediaHub/statuses/{sha}","languages_url":"https://api.github.com/repos/unl/UNL_MediaHub/languages","stargazers_url":"https://api.github.com/repos/unl/UNL_MediaHub/stargazers","contributors_url":"https://api.github.com/repos/unl/UNL_MediaHub/contributors","subscribers_url":"https://api.github.com/repos/unl/UNL_MediaHub/subscribers","subscription_url":"https://api.github.com/repos/unl/UNL_MediaHub/subscription","commits_url":"https://api.github.com/repos/unl/UNL_MediaHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/unl/UNL_MediaHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/unl/UNL_MediaHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/unl/UNL_MediaHub/contents/{+path}","compare_url":"https://api.github.com/repos/unl/UNL_MediaHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unl/UNL_MediaHub/merges","archive_url":"https://api.github.com/repos/unl/UNL_MediaHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unl/UNL_MediaHub/downloads","issues_url":"https://api.github.com/repos/unl/UNL_MediaHub/issues{/number}","pulls_url":"https://api.github.com/repos/unl/UNL_MediaHub/pulls{/number}","milestones_url":"https://api.github.com/repos/unl/UNL_MediaHub/milestones{/number}","notifications_url":"https://api.github.com/repos/unl/UNL_MediaHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unl/UNL_MediaHub/labels{/name}","releases_url":"https://api.github.com/repos/unl/UNL_MediaHub/releases{/id}","deployments_url":"https://api.github.com/repos/unl/UNL_MediaHub/deployments","created_at":"2011-04-06T21:24:40Z","updated_at":"2015-05-07T19:35:03Z","pushed_at":"2016-05-12T18:34:19Z","git_url":"git://github.com/unl/UNL_MediaHub.git","ssh_url":"git@github.com:unl/UNL_MediaHub.git","clone_url":"https://github.com/unl/UNL_MediaHub.git","svn_url":"https://github.com/unl/UNL_MediaHub","homepage":"http://mediahub.unl.edu/","size":197957,"stargazers_count":10,"watchers_count":10,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":18,"forks":5,"open_issues":18,"watchers":10,"default_branch":"4.0_template"}},"_links":{"self":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/296"},"html":{"href":"https://github.com/unl/UNL_MediaHub/pull/296"},"issue":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/issues/296"},"comments":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/issues/296/comments"},"review_comments":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/296/comments"},"review_comment":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/pulls/296/commits"},"statuses":{"href":"https://api.github.com/repos/unl/UNL_MediaHub/statuses/d7611480f2dff1baf79803fb8cc971687c1c5f27"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kabel","id":675956,"avatar_url":"https://avatars.githubusercontent.com/u/675956?v=3","gravatar_id":"","url":"https://api.github.com/users/kabel","html_url":"https://github.com/kabel","followers_url":"https://api.github.com/users/kabel/followers","following_url":"https://api.github.com/users/kabel/following{/other_user}","gists_url":"https://api.github.com/users/kabel/gists{/gist_id}","starred_url":"https://api.github.com/users/kabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabel/subscriptions","organizations_url":"https://api.github.com/users/kabel/orgs","repos_url":"https://api.github.com/users/kabel/repos","events_url":"https://api.github.com/users/kabel/events{/privacy}","received_events_url":"https://api.github.com/users/kabel/received_events","type":"User","site_admin":false},"comments":0,"review_comments":1,"commits":5,"additions":64,"deletions":14,"changed_files":9}}