{"action":"closed","number":1852,"pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/1852","id":49075587,"html_url":"https://github.com/gogits/gogs/pull/1852","diff_url":"https://github.com/gogits/gogs/pull/1852.diff","patch_url":"https://github.com/gogits/gogs/pull/1852.patch","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1852","number":1852,"state":"closed","locked":false,"title":"Adding simple script to install Gogs as a Windows service.","user":{"login":"andreynering","id":7011819,"avatar_url":"https://avatars.githubusercontent.com/u/7011819?v=3","gravatar_id":"","url":"https://api.github.com/users/andreynering","html_url":"https://github.com/andreynering","followers_url":"https://api.github.com/users/andreynering/followers","following_url":"https://api.github.com/users/andreynering/following{/other_user}","gists_url":"https://api.github.com/users/andreynering/gists{/gist_id}","starred_url":"https://api.github.com/users/andreynering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreynering/subscriptions","organizations_url":"https://api.github.com/users/andreynering/orgs","repos_url":"https://api.github.com/users/andreynering/repos","events_url":"https://api.github.com/users/andreynering/events{/privacy}","received_events_url":"https://api.github.com/users/andreynering/received_events","type":"User","site_admin":false},"body":"The [Install as service](http://gogs.io/docs/installation/install_gogs_on_windows#run-gogs-as-a-service) section is kind of manual.\r\n\r\nSince NSSM can be used by command line, I think is a good idea to automate it.","created_at":"2015-10-28T22:23:28Z","updated_at":"2015-10-29T10:04:53Z","closed_at":"2015-10-29T10:04:53Z","merged_at":null,"merge_commit_sha":"7dd80e680d06afba78c266823899ee4680726719","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gogits/gogs/pulls/1852/commits","review_comments_url":"https://api.github.com/repos/gogits/gogs/pulls/1852/comments","review_comment_url":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1852/comments","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/e27486ed6c0e70ca0bd2a952ecc14af0108ec002","head":{"label":"andreynering:windows-service","ref":"windows-service","sha":"e27486ed6c0e70ca0bd2a952ecc14af0108ec002","user":{"login":"andreynering","id":7011819,"avatar_url":"https://avatars.githubusercontent.com/u/7011819?v=3","gravatar_id":"","url":"https://api.github.com/users/andreynering","html_url":"https://github.com/andreynering","followers_url":"https://api.github.com/users/andreynering/followers","following_url":"https://api.github.com/users/andreynering/following{/other_user}","gists_url":"https://api.github.com/users/andreynering/gists{/gist_id}","starred_url":"https://api.github.com/users/andreynering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreynering/subscriptions","organizations_url":"https://api.github.com/users/andreynering/orgs","repos_url":"https://api.github.com/users/andreynering/repos","events_url":"https://api.github.com/users/andreynering/events{/privacy}","received_events_url":"https://api.github.com/users/andreynering/received_events","type":"User","site_admin":false},"repo":{"id":43975307,"name":"gogs","full_name":"andreynering/gogs","owner":{"login":"andreynering","id":7011819,"avatar_url":"https://avatars.githubusercontent.com/u/7011819?v=3","gravatar_id":"","url":"https://api.github.com/users/andreynering","html_url":"https://github.com/andreynering","followers_url":"https://api.github.com/users/andreynering/followers","following_url":"https://api.github.com/users/andreynering/following{/other_user}","gists_url":"https://api.github.com/users/andreynering/gists{/gist_id}","starred_url":"https://api.github.com/users/andreynering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreynering/subscriptions","organizations_url":"https://api.github.com/users/andreynering/orgs","repos_url":"https://api.github.com/users/andreynering/repos","events_url":"https://api.github.com/users/andreynering/events{/privacy}","received_events_url":"https://api.github.com/users/andreynering/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreynering/gogs","description":"Gogs(Go Git Service) is a painless self-hosted Git Service.","fork":true,"url":"https://api.github.com/repos/andreynering/gogs","forks_url":"https://api.github.com/repos/andreynering/gogs/forks","keys_url":"https://api.github.com/repos/andreynering/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreynering/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreynering/gogs/teams","hooks_url":"https://api.github.com/repos/andreynering/gogs/hooks","issue_events_url":"https://api.github.com/repos/andreynering/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/andreynering/gogs/events","assignees_url":"https://api.github.com/repos/andreynering/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/andreynering/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/andreynering/gogs/tags","blobs_url":"https://api.github.com/repos/andreynering/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreynering/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreynering/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreynering/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreynering/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/andreynering/gogs/languages","stargazers_url":"https://api.github.com/repos/andreynering/gogs/stargazers","contributors_url":"https://api.github.com/repos/andreynering/gogs/contributors","subscribers_url":"https://api.github.com/repos/andreynering/gogs/subscribers","subscription_url":"https://api.github.com/repos/andreynering/gogs/subscription","commits_url":"https://api.github.com/repos/andreynering/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreynering/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreynering/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreynering/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreynering/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/andreynering/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreynering/gogs/merges","archive_url":"https://api.github.com/repos/andreynering/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreynering/gogs/downloads","issues_url":"https://api.github.com/repos/andreynering/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/andreynering/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/andreynering/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/andreynering/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreynering/gogs/labels{/name}","releases_url":"https://api.github.com/repos/andreynering/gogs/releases{/id}","created_at":"2015-10-09T19:16:11Z","updated_at":"2015-10-09T19:16:16Z","pushed_at":"2015-10-28T22:16:21Z","git_url":"git://github.com/andreynering/gogs.git","ssh_url":"git@github.com:andreynering/gogs.git","clone_url":"https://github.com/andreynering/gogs.git","svn_url":"https://github.com/andreynering/gogs","homepage":"http://gogs.io","size":27210,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"gogits:master","ref":"master","sha":"b9f5def5dc177e683c6c2946498bd2eabb82d16a","user":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"repo":{"id":16752620,"name":"gogs","full_name":"gogits/gogs","owner":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gogits/gogs","description":"Gogs (Go Git Service) is a painless self-hosted Git Service.","fork":false,"url":"https://api.github.com/repos/gogits/gogs","forks_url":"https://api.github.com/repos/gogits/gogs/forks","keys_url":"https://api.github.com/repos/gogits/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gogits/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gogits/gogs/teams","hooks_url":"https://api.github.com/repos/gogits/gogs/hooks","issue_events_url":"https://api.github.com/repos/gogits/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/gogits/gogs/events","assignees_url":"https://api.github.com/repos/gogits/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/gogits/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/gogits/gogs/tags","blobs_url":"https://api.github.com/repos/gogits/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gogits/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gogits/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gogits/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/gogits/gogs/languages","stargazers_url":"https://api.github.com/repos/gogits/gogs/stargazers","contributors_url":"https://api.github.com/repos/gogits/gogs/contributors","subscribers_url":"https://api.github.com/repos/gogits/gogs/subscribers","subscription_url":"https://api.github.com/repos/gogits/gogs/subscription","commits_url":"https://api.github.com/repos/gogits/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gogits/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gogits/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gogits/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gogits/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/gogits/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gogits/gogs/merges","archive_url":"https://api.github.com/repos/gogits/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gogits/gogs/downloads","issues_url":"https://api.github.com/repos/gogits/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/gogits/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/gogits/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/gogits/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gogits/gogs/labels{/name}","releases_url":"https://api.github.com/repos/gogits/gogs/releases{/id}","created_at":"2014-02-12T01:57:08Z","updated_at":"2015-10-29T09:31:09Z","pushed_at":"2015-10-29T07:22:03Z","git_url":"git://github.com/gogits/gogs.git","ssh_url":"git@github.com:gogits/gogs.git","clone_url":"https://github.com/gogits/gogs.git","svn_url":"https://github.com/gogits/gogs","homepage":"http://gogs.io","size":38492,"stargazers_count":9055,"watchers_count":9055,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":843,"mirror_url":null,"open_issues_count":288,"forks":843,"open_issues":288,"watchers":9055,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gogits/gogs/pulls/1852"},"html":{"href":"https://github.com/gogits/gogs/pull/1852"},"issue":{"href":"https://api.github.com/repos/gogits/gogs/issues/1852"},"comments":{"href":"https://api.github.com/repos/gogits/gogs/issues/1852/comments"},"review_comments":{"href":"https://api.github.com/repos/gogits/gogs/pulls/1852/comments"},"review_comment":{"href":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gogits/gogs/pulls/1852/commits"},"statuses":{"href":"https://api.github.com/repos/gogits/gogs/statuses/e27486ed6c0e70ca0bd2a952ecc14af0108ec002"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":25,"deletions":0,"changed_files":1}}