{"action":"opened","number":915,"pull_request":{"url":"https://api.github.com/repos/SirCmpwn/sway/pulls/915","id":86607940,"html_url":"https://github.com/SirCmpwn/sway/pull/915","diff_url":"https://github.com/SirCmpwn/sway/pull/915.diff","patch_url":"https://github.com/SirCmpwn/sway/pull/915.patch","issue_url":"https://api.github.com/repos/SirCmpwn/sway/issues/915","number":915,"state":"open","locked":false,"title":"Implement default name for workspace command","user":{"login":"RyanDwyer","id":2436833,"avatar_url":"https://avatars.githubusercontent.com/u/2436833?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanDwyer","html_url":"https://github.com/RyanDwyer","followers_url":"https://api.github.com/users/RyanDwyer/followers","following_url":"https://api.github.com/users/RyanDwyer/following{/other_user}","gists_url":"https://api.github.com/users/RyanDwyer/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanDwyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanDwyer/subscriptions","organizations_url":"https://api.github.com/users/RyanDwyer/orgs","repos_url":"https://api.github.com/users/RyanDwyer/repos","events_url":"https://api.github.com/users/RyanDwyer/events{/privacy}","received_events_url":"https://api.github.com/users/RyanDwyer/received_events","type":"User","site_admin":false},"body":"This implements commands such as:\r\n\r\n    workspace number 9: test\r\n\r\nIf a workspace with the given number exists then it will be focused,\r\notherwise a new workspace with the given name will be created.\r\n\r\nThis functionality is as per i3's.\r\n\r\nI'm not an expert at C, so if there's an easier way to get argv[1] onwards as a string then let me know and I'll amend.","created_at":"2016-09-24T05:37:07Z","updated_at":"2016-09-24T05:37:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/915/commits","review_comments_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/915/comments","review_comment_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/issues/915/comments","statuses_url":"https://api.github.com/repos/SirCmpwn/sway/statuses/148fe08c8d238df86bd45a654fbf35ea7e93698d","head":{"label":"RyanDwyer:implement-workspace-number-default","ref":"implement-workspace-number-default","sha":"148fe08c8d238df86bd45a654fbf35ea7e93698d","user":{"login":"RyanDwyer","id":2436833,"avatar_url":"https://avatars.githubusercontent.com/u/2436833?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanDwyer","html_url":"https://github.com/RyanDwyer","followers_url":"https://api.github.com/users/RyanDwyer/followers","following_url":"https://api.github.com/users/RyanDwyer/following{/other_user}","gists_url":"https://api.github.com/users/RyanDwyer/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanDwyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanDwyer/subscriptions","organizations_url":"https://api.github.com/users/RyanDwyer/orgs","repos_url":"https://api.github.com/users/RyanDwyer/repos","events_url":"https://api.github.com/users/RyanDwyer/events{/privacy}","received_events_url":"https://api.github.com/users/RyanDwyer/received_events","type":"User","site_admin":false},"repo":{"id":68437977,"name":"sway","full_name":"RyanDwyer/sway","owner":{"login":"RyanDwyer","id":2436833,"avatar_url":"https://avatars.githubusercontent.com/u/2436833?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanDwyer","html_url":"https://github.com/RyanDwyer","followers_url":"https://api.github.com/users/RyanDwyer/followers","following_url":"https://api.github.com/users/RyanDwyer/following{/other_user}","gists_url":"https://api.github.com/users/RyanDwyer/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanDwyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanDwyer/subscriptions","organizations_url":"https://api.github.com/users/RyanDwyer/orgs","repos_url":"https://api.github.com/users/RyanDwyer/repos","events_url":"https://api.github.com/users/RyanDwyer/events{/privacy}","received_events_url":"https://api.github.com/users/RyanDwyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RyanDwyer/sway","description":"i3-compatible Wayland compositor","fork":true,"url":"https://api.github.com/repos/RyanDwyer/sway","forks_url":"https://api.github.com/repos/RyanDwyer/sway/forks","keys_url":"https://api.github.com/repos/RyanDwyer/sway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RyanDwyer/sway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RyanDwyer/sway/teams","hooks_url":"https://api.github.com/repos/RyanDwyer/sway/hooks","issue_events_url":"https://api.github.com/repos/RyanDwyer/sway/issues/events{/number}","events_url":"https://api.github.com/repos/RyanDwyer/sway/events","assignees_url":"https://api.github.com/repos/RyanDwyer/sway/assignees{/user}","branches_url":"https://api.github.com/repos/RyanDwyer/sway/branches{/branch}","tags_url":"https://api.github.com/repos/RyanDwyer/sway/tags","blobs_url":"https://api.github.com/repos/RyanDwyer/sway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RyanDwyer/sway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RyanDwyer/sway/git/refs{/sha}","trees_url":"https://api.github.com/repos/RyanDwyer/sway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RyanDwyer/sway/statuses/{sha}","languages_url":"https://api.github.com/repos/RyanDwyer/sway/languages","stargazers_url":"https://api.github.com/repos/RyanDwyer/sway/stargazers","contributors_url":"https://api.github.com/repos/RyanDwyer/sway/contributors","subscribers_url":"https://api.github.com/repos/RyanDwyer/sway/subscribers","subscription_url":"https://api.github.com/repos/RyanDwyer/sway/subscription","commits_url":"https://api.github.com/repos/RyanDwyer/sway/commits{/sha}","git_commits_url":"https://api.github.com/repos/RyanDwyer/sway/git/commits{/sha}","comments_url":"https://api.github.com/repos/RyanDwyer/sway/comments{/number}","issue_comment_url":"https://api.github.com/repos/RyanDwyer/sway/issues/comments{/number}","contents_url":"https://api.github.com/repos/RyanDwyer/sway/contents/{+path}","compare_url":"https://api.github.com/repos/RyanDwyer/sway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RyanDwyer/sway/merges","archive_url":"https://api.github.com/repos/RyanDwyer/sway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RyanDwyer/sway/downloads","issues_url":"https://api.github.com/repos/RyanDwyer/sway/issues{/number}","pulls_url":"https://api.github.com/repos/RyanDwyer/sway/pulls{/number}","milestones_url":"https://api.github.com/repos/RyanDwyer/sway/milestones{/number}","notifications_url":"https://api.github.com/repos/RyanDwyer/sway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RyanDwyer/sway/labels{/name}","releases_url":"https://api.github.com/repos/RyanDwyer/sway/releases{/id}","deployments_url":"https://api.github.com/repos/RyanDwyer/sway/deployments","created_at":"2016-09-17T07:19:41Z","updated_at":"2016-09-17T07:19:43Z","pushed_at":"2016-09-24T05:34:05Z","git_url":"git://github.com/RyanDwyer/sway.git","ssh_url":"git@github.com:RyanDwyer/sway.git","clone_url":"https://github.com/RyanDwyer/sway.git","svn_url":"https://github.com/RyanDwyer/sway","homepage":"http://swaywm.org/","size":15624,"stargazers_count":0,"watchers_count":0,"language":"C","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":"SirCmpwn:master","ref":"master","sha":"d98c26d0edbab66042ff3da0348d339fd857f99d","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"repo":{"id":40217904,"name":"sway","full_name":"SirCmpwn/sway","owner":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SirCmpwn/sway","description":"i3-compatible Wayland compositor","fork":false,"url":"https://api.github.com/repos/SirCmpwn/sway","forks_url":"https://api.github.com/repos/SirCmpwn/sway/forks","keys_url":"https://api.github.com/repos/SirCmpwn/sway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SirCmpwn/sway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SirCmpwn/sway/teams","hooks_url":"https://api.github.com/repos/SirCmpwn/sway/hooks","issue_events_url":"https://api.github.com/repos/SirCmpwn/sway/issues/events{/number}","events_url":"https://api.github.com/repos/SirCmpwn/sway/events","assignees_url":"https://api.github.com/repos/SirCmpwn/sway/assignees{/user}","branches_url":"https://api.github.com/repos/SirCmpwn/sway/branches{/branch}","tags_url":"https://api.github.com/repos/SirCmpwn/sway/tags","blobs_url":"https://api.github.com/repos/SirCmpwn/sway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SirCmpwn/sway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SirCmpwn/sway/git/refs{/sha}","trees_url":"https://api.github.com/repos/SirCmpwn/sway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SirCmpwn/sway/statuses/{sha}","languages_url":"https://api.github.com/repos/SirCmpwn/sway/languages","stargazers_url":"https://api.github.com/repos/SirCmpwn/sway/stargazers","contributors_url":"https://api.github.com/repos/SirCmpwn/sway/contributors","subscribers_url":"https://api.github.com/repos/SirCmpwn/sway/subscribers","subscription_url":"https://api.github.com/repos/SirCmpwn/sway/subscription","commits_url":"https://api.github.com/repos/SirCmpwn/sway/commits{/sha}","git_commits_url":"https://api.github.com/repos/SirCmpwn/sway/git/commits{/sha}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/comments{/number}","issue_comment_url":"https://api.github.com/repos/SirCmpwn/sway/issues/comments{/number}","contents_url":"https://api.github.com/repos/SirCmpwn/sway/contents/{+path}","compare_url":"https://api.github.com/repos/SirCmpwn/sway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SirCmpwn/sway/merges","archive_url":"https://api.github.com/repos/SirCmpwn/sway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SirCmpwn/sway/downloads","issues_url":"https://api.github.com/repos/SirCmpwn/sway/issues{/number}","pulls_url":"https://api.github.com/repos/SirCmpwn/sway/pulls{/number}","milestones_url":"https://api.github.com/repos/SirCmpwn/sway/milestones{/number}","notifications_url":"https://api.github.com/repos/SirCmpwn/sway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SirCmpwn/sway/labels{/name}","releases_url":"https://api.github.com/repos/SirCmpwn/sway/releases{/id}","deployments_url":"https://api.github.com/repos/SirCmpwn/sway/deployments","created_at":"2015-08-05T01:31:45Z","updated_at":"2016-09-23T20:13:38Z","pushed_at":"2016-09-24T05:37:07Z","git_url":"git://github.com/SirCmpwn/sway.git","ssh_url":"git@github.com:SirCmpwn/sway.git","clone_url":"https://github.com/SirCmpwn/sway.git","svn_url":"https://github.com/SirCmpwn/sway","homepage":"http://swaywm.org/","size":15796,"stargazers_count":1652,"watchers_count":1652,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":108,"mirror_url":null,"open_issues_count":96,"forks":108,"open_issues":96,"watchers":1652,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/915"},"html":{"href":"https://github.com/SirCmpwn/sway/pull/915"},"issue":{"href":"https://api.github.com/repos/SirCmpwn/sway/issues/915"},"comments":{"href":"https://api.github.com/repos/SirCmpwn/sway/issues/915/comments"},"review_comments":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/915/comments"},"review_comment":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/915/commits"},"statuses":{"href":"https://api.github.com/repos/SirCmpwn/sway/statuses/148fe08c8d238df86bd45a654fbf35ea7e93698d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"RyanDwyer"}}