{"action":"closed","number":17,"pull_request":{"url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls/17","id":199302132,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MzAyMTMy","html_url":"https://github.com/pereorga/minimalist-web-notepad/pull/17","diff_url":"https://github.com/pereorga/minimalist-web-notepad/pull/17.diff","patch_url":"https://github.com/pereorga/minimalist-web-notepad/pull/17.patch","issue_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/issues/17","number":17,"state":"closed","locked":false,"title":"Delete file when user delete everything in textarea","user":{"login":"qex","id":7080702,"node_id":"MDQ6VXNlcjcwODA3MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/7080702?v=4","gravatar_id":"","url":"https://api.github.com/users/qex","html_url":"https://github.com/qex","followers_url":"https://api.github.com/users/qex/followers","following_url":"https://api.github.com/users/qex/following{/other_user}","gists_url":"https://api.github.com/users/qex/gists{/gist_id}","starred_url":"https://api.github.com/users/qex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qex/subscriptions","organizations_url":"https://api.github.com/users/qex/orgs","repos_url":"https://api.github.com/users/qex/repos","events_url":"https://api.github.com/users/qex/events{/privacy}","received_events_url":"https://api.github.com/users/qex/received_events","type":"User","site_admin":false},"body":"The main purpose of this PR is to avoid empty files leaving.\r\n\r\nOriginal code will leave a 0 byte file when user clear textarea, now this file will be removed.\r\n\r\nAdditionally I've made two minor optimizations, change rand() to mt_rand() and pick strlen() out of loop.\r\n\r\nWhich will both speed up the script running a tiny little bit.\r\n\r\nBased on commit [75c1f37](https://github.com/pereorga/minimalist-web-notepad/commit/75c1f37a5b2213bc62f02b11d0b302101904ceae), recover the suffix slash of curl to increase accuracy.\r\n\r\nI've discovered this project 2 hours ago, and captivated by it immediately.\r\n\r\nThank you for bringing us such an amazing notepad.  :yum:\r\n\r\n ","created_at":"2018-07-04T17:38:04Z","updated_at":"2018-07-04T18:37:32Z","closed_at":"2018-07-04T18:37:32Z","merged_at":null,"merge_commit_sha":"1531602713680a9a29178df7b1bbd5337e9f7fbd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls/17/commits","review_comments_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls/17/comments","review_comment_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/issues/17/comments","statuses_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/statuses/c5d308ed2091069e012869c688f16e2e0016a2c5","head":{"label":"qex:master","ref":"master","sha":"c5d308ed2091069e012869c688f16e2e0016a2c5","user":{"login":"qex","id":7080702,"node_id":"MDQ6VXNlcjcwODA3MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/7080702?v=4","gravatar_id":"","url":"https://api.github.com/users/qex","html_url":"https://github.com/qex","followers_url":"https://api.github.com/users/qex/followers","following_url":"https://api.github.com/users/qex/following{/other_user}","gists_url":"https://api.github.com/users/qex/gists{/gist_id}","starred_url":"https://api.github.com/users/qex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qex/subscriptions","organizations_url":"https://api.github.com/users/qex/orgs","repos_url":"https://api.github.com/users/qex/repos","events_url":"https://api.github.com/users/qex/events{/privacy}","received_events_url":"https://api.github.com/users/qex/received_events","type":"User","site_admin":false},"repo":{"id":139747213,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk3NDcyMTM=","name":"minimalist-web-notepad","full_name":"qex/minimalist-web-notepad","owner":{"login":"qex","id":7080702,"node_id":"MDQ6VXNlcjcwODA3MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/7080702?v=4","gravatar_id":"","url":"https://api.github.com/users/qex","html_url":"https://github.com/qex","followers_url":"https://api.github.com/users/qex/followers","following_url":"https://api.github.com/users/qex/following{/other_user}","gists_url":"https://api.github.com/users/qex/gists{/gist_id}","starred_url":"https://api.github.com/users/qex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qex/subscriptions","organizations_url":"https://api.github.com/users/qex/orgs","repos_url":"https://api.github.com/users/qex/repos","events_url":"https://api.github.com/users/qex/events{/privacy}","received_events_url":"https://api.github.com/users/qex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qex/minimalist-web-notepad","description":"Minimalist Web Notepad","fork":true,"url":"https://api.github.com/repos/qex/minimalist-web-notepad","forks_url":"https://api.github.com/repos/qex/minimalist-web-notepad/forks","keys_url":"https://api.github.com/repos/qex/minimalist-web-notepad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qex/minimalist-web-notepad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qex/minimalist-web-notepad/teams","hooks_url":"https://api.github.com/repos/qex/minimalist-web-notepad/hooks","issue_events_url":"https://api.github.com/repos/qex/minimalist-web-notepad/issues/events{/number}","events_url":"https://api.github.com/repos/qex/minimalist-web-notepad/events","assignees_url":"https://api.github.com/repos/qex/minimalist-web-notepad/assignees{/user}","branches_url":"https://api.github.com/repos/qex/minimalist-web-notepad/branches{/branch}","tags_url":"https://api.github.com/repos/qex/minimalist-web-notepad/tags","blobs_url":"https://api.github.com/repos/qex/minimalist-web-notepad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qex/minimalist-web-notepad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qex/minimalist-web-notepad/git/refs{/sha}","trees_url":"https://api.github.com/repos/qex/minimalist-web-notepad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qex/minimalist-web-notepad/statuses/{sha}","languages_url":"https://api.github.com/repos/qex/minimalist-web-notepad/languages","stargazers_url":"https://api.github.com/repos/qex/minimalist-web-notepad/stargazers","contributors_url":"https://api.github.com/repos/qex/minimalist-web-notepad/contributors","subscribers_url":"https://api.github.com/repos/qex/minimalist-web-notepad/subscribers","subscription_url":"https://api.github.com/repos/qex/minimalist-web-notepad/subscription","commits_url":"https://api.github.com/repos/qex/minimalist-web-notepad/commits{/sha}","git_commits_url":"https://api.github.com/repos/qex/minimalist-web-notepad/git/commits{/sha}","comments_url":"https://api.github.com/repos/qex/minimalist-web-notepad/comments{/number}","issue_comment_url":"https://api.github.com/repos/qex/minimalist-web-notepad/issues/comments{/number}","contents_url":"https://api.github.com/repos/qex/minimalist-web-notepad/contents/{+path}","compare_url":"https://api.github.com/repos/qex/minimalist-web-notepad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qex/minimalist-web-notepad/merges","archive_url":"https://api.github.com/repos/qex/minimalist-web-notepad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qex/minimalist-web-notepad/downloads","issues_url":"https://api.github.com/repos/qex/minimalist-web-notepad/issues{/number}","pulls_url":"https://api.github.com/repos/qex/minimalist-web-notepad/pulls{/number}","milestones_url":"https://api.github.com/repos/qex/minimalist-web-notepad/milestones{/number}","notifications_url":"https://api.github.com/repos/qex/minimalist-web-notepad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qex/minimalist-web-notepad/labels{/name}","releases_url":"https://api.github.com/repos/qex/minimalist-web-notepad/releases{/id}","deployments_url":"https://api.github.com/repos/qex/minimalist-web-notepad/deployments","created_at":"2018-07-04T16:52:31Z","updated_at":"2018-07-04T17:10:59Z","pushed_at":"2018-07-04T17:10:57Z","git_url":"git://github.com/qex/minimalist-web-notepad.git","ssh_url":"git@github.com:qex/minimalist-web-notepad.git","clone_url":"https://github.com/qex/minimalist-web-notepad.git","svn_url":"https://github.com/qex/minimalist-web-notepad","homepage":"https://notes.orga.cat","size":77,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pereorga:master","ref":"master","sha":"108d5c5c0ea27d95ab2b3c5ad5db37af0c83dea4","user":{"login":"pereorga","id":919779,"node_id":"MDQ6VXNlcjkxOTc3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/919779?v=4","gravatar_id":"","url":"https://api.github.com/users/pereorga","html_url":"https://github.com/pereorga","followers_url":"https://api.github.com/users/pereorga/followers","following_url":"https://api.github.com/users/pereorga/following{/other_user}","gists_url":"https://api.github.com/users/pereorga/gists{/gist_id}","starred_url":"https://api.github.com/users/pereorga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pereorga/subscriptions","organizations_url":"https://api.github.com/users/pereorga/orgs","repos_url":"https://api.github.com/users/pereorga/repos","events_url":"https://api.github.com/users/pereorga/events{/privacy}","received_events_url":"https://api.github.com/users/pereorga/received_events","type":"User","site_admin":false},"repo":{"id":5299409,"node_id":"MDEwOlJlcG9zaXRvcnk1Mjk5NDA5","name":"minimalist-web-notepad","full_name":"pereorga/minimalist-web-notepad","owner":{"login":"pereorga","id":919779,"node_id":"MDQ6VXNlcjkxOTc3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/919779?v=4","gravatar_id":"","url":"https://api.github.com/users/pereorga","html_url":"https://github.com/pereorga","followers_url":"https://api.github.com/users/pereorga/followers","following_url":"https://api.github.com/users/pereorga/following{/other_user}","gists_url":"https://api.github.com/users/pereorga/gists{/gist_id}","starred_url":"https://api.github.com/users/pereorga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pereorga/subscriptions","organizations_url":"https://api.github.com/users/pereorga/orgs","repos_url":"https://api.github.com/users/pereorga/repos","events_url":"https://api.github.com/users/pereorga/events{/privacy}","received_events_url":"https://api.github.com/users/pereorga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pereorga/minimalist-web-notepad","description":"Minimalist Web Notepad","fork":false,"url":"https://api.github.com/repos/pereorga/minimalist-web-notepad","forks_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/forks","keys_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/teams","hooks_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/hooks","issue_events_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/issues/events{/number}","events_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/events","assignees_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/assignees{/user}","branches_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/branches{/branch}","tags_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/tags","blobs_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/git/refs{/sha}","trees_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/statuses/{sha}","languages_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/languages","stargazers_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/stargazers","contributors_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/contributors","subscribers_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/subscribers","subscription_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/subscription","commits_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/commits{/sha}","git_commits_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/git/commits{/sha}","comments_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/comments{/number}","issue_comment_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/issues/comments{/number}","contents_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/contents/{+path}","compare_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/merges","archive_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/downloads","issues_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/issues{/number}","pulls_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls{/number}","milestones_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/milestones{/number}","notifications_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/labels{/name}","releases_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/releases{/id}","deployments_url":"https://api.github.com/repos/pereorga/minimalist-web-notepad/deployments","created_at":"2012-08-04T22:53:41Z","updated_at":"2018-06-18T04:06:07Z","pushed_at":"2018-07-04T17:38:04Z","git_url":"git://github.com/pereorga/minimalist-web-notepad.git","ssh_url":"git@github.com:pereorga/minimalist-web-notepad.git","clone_url":"https://github.com/pereorga/minimalist-web-notepad.git","svn_url":"https://github.com/pereorga/minimalist-web-notepad","homepage":"https://notes.orga.cat","size":78,"stargazers_count":111,"watchers_count":111,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":38,"open_issues":2,"watchers":111,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls/17"},"html":{"href":"https://github.com/pereorga/minimalist-web-notepad/pull/17"},"issue":{"href":"https://api.github.com/repos/pereorga/minimalist-web-notepad/issues/17"},"comments":{"href":"https://api.github.com/repos/pereorga/minimalist-web-notepad/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pereorga/minimalist-web-notepad/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/pereorga/minimalist-web-notepad/statuses/c5d308ed2091069e012869c688f16e2e0016a2c5"}},"author_association":"NONE","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":7,"deletions":5,"changed_files":1}}
{"actor":{"display_login":"qex"}}