{"action":"closed","number":1630,"pull_request":{"url":"https://api.github.com/repos/wekan/wekan/pulls/1630","id":186327169,"html_url":"https://github.com/wekan/wekan/pull/1630","diff_url":"https://github.com/wekan/wekan/pull/1630.diff","patch_url":"https://github.com/wekan/wekan/pull/1630.patch","issue_url":"https://api.github.com/repos/wekan/wekan/issues/1630","number":1630,"state":"closed","locked":false,"title":"Add a new API route to create a new label in a given board","user":{"login":"ThisNeko","id":6942041,"avatar_url":"https://avatars1.githubusercontent.com/u/6942041?v=4","gravatar_id":"","url":"https://api.github.com/users/ThisNeko","html_url":"https://github.com/ThisNeko","followers_url":"https://api.github.com/users/ThisNeko/followers","following_url":"https://api.github.com/users/ThisNeko/following{/other_user}","gists_url":"https://api.github.com/users/ThisNeko/gists{/gist_id}","starred_url":"https://api.github.com/users/ThisNeko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThisNeko/subscriptions","organizations_url":"https://api.github.com/users/ThisNeko/orgs","repos_url":"https://api.github.com/users/ThisNeko/repos","events_url":"https://api.github.com/users/ThisNeko/events{/privacy}","received_events_url":"https://api.github.com/users/ThisNeko/received_events","type":"User","site_admin":false},"body":"I decided to refuse to create the label if an other label with the same name already exist. I don't know if it's a good idea to check here but it can be easily removed.\r\n\r\nSo if I create a new label, i return the label id, if not I return nothing without error (can be changed too).\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/wekan/wekan/1630)\n<!-- Reviewable:end -->\n","created_at":"2018-05-07T11:40:02Z","updated_at":"2018-05-07T22:27:10Z","closed_at":"2018-05-07T22:27:10Z","merged_at":"2018-05-07T22:27:09Z","merge_commit_sha":"da180472c16ca4504ca9a1cab2a8553050a45d55","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wekan/wekan/pulls/1630/commits","review_comments_url":"https://api.github.com/repos/wekan/wekan/pulls/1630/comments","review_comment_url":"https://api.github.com/repos/wekan/wekan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wekan/wekan/issues/1630/comments","statuses_url":"https://api.github.com/repos/wekan/wekan/statuses/6b2d022a93114e39b26396aeb21b68a51551da84","head":{"label":"ThisNeko:devel","ref":"devel","sha":"6b2d022a93114e39b26396aeb21b68a51551da84","user":{"login":"ThisNeko","id":6942041,"avatar_url":"https://avatars1.githubusercontent.com/u/6942041?v=4","gravatar_id":"","url":"https://api.github.com/users/ThisNeko","html_url":"https://github.com/ThisNeko","followers_url":"https://api.github.com/users/ThisNeko/followers","following_url":"https://api.github.com/users/ThisNeko/following{/other_user}","gists_url":"https://api.github.com/users/ThisNeko/gists{/gist_id}","starred_url":"https://api.github.com/users/ThisNeko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThisNeko/subscriptions","organizations_url":"https://api.github.com/users/ThisNeko/orgs","repos_url":"https://api.github.com/users/ThisNeko/repos","events_url":"https://api.github.com/users/ThisNeko/events{/privacy}","received_events_url":"https://api.github.com/users/ThisNeko/received_events","type":"User","site_admin":false},"repo":{"id":132133940,"name":"wekan","full_name":"ThisNeko/wekan","owner":{"login":"ThisNeko","id":6942041,"avatar_url":"https://avatars1.githubusercontent.com/u/6942041?v=4","gravatar_id":"","url":"https://api.github.com/users/ThisNeko","html_url":"https://github.com/ThisNeko","followers_url":"https://api.github.com/users/ThisNeko/followers","following_url":"https://api.github.com/users/ThisNeko/following{/other_user}","gists_url":"https://api.github.com/users/ThisNeko/gists{/gist_id}","starred_url":"https://api.github.com/users/ThisNeko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThisNeko/subscriptions","organizations_url":"https://api.github.com/users/ThisNeko/orgs","repos_url":"https://api.github.com/users/ThisNeko/repos","events_url":"https://api.github.com/users/ThisNeko/events{/privacy}","received_events_url":"https://api.github.com/users/ThisNeko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThisNeko/wekan","description":"The open-source Trello-like kanban (built with Meteor)","fork":true,"url":"https://api.github.com/repos/ThisNeko/wekan","forks_url":"https://api.github.com/repos/ThisNeko/wekan/forks","keys_url":"https://api.github.com/repos/ThisNeko/wekan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThisNeko/wekan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThisNeko/wekan/teams","hooks_url":"https://api.github.com/repos/ThisNeko/wekan/hooks","issue_events_url":"https://api.github.com/repos/ThisNeko/wekan/issues/events{/number}","events_url":"https://api.github.com/repos/ThisNeko/wekan/events","assignees_url":"https://api.github.com/repos/ThisNeko/wekan/assignees{/user}","branches_url":"https://api.github.com/repos/ThisNeko/wekan/branches{/branch}","tags_url":"https://api.github.com/repos/ThisNeko/wekan/tags","blobs_url":"https://api.github.com/repos/ThisNeko/wekan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThisNeko/wekan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThisNeko/wekan/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThisNeko/wekan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThisNeko/wekan/statuses/{sha}","languages_url":"https://api.github.com/repos/ThisNeko/wekan/languages","stargazers_url":"https://api.github.com/repos/ThisNeko/wekan/stargazers","contributors_url":"https://api.github.com/repos/ThisNeko/wekan/contributors","subscribers_url":"https://api.github.com/repos/ThisNeko/wekan/subscribers","subscription_url":"https://api.github.com/repos/ThisNeko/wekan/subscription","commits_url":"https://api.github.com/repos/ThisNeko/wekan/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThisNeko/wekan/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThisNeko/wekan/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThisNeko/wekan/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThisNeko/wekan/contents/{+path}","compare_url":"https://api.github.com/repos/ThisNeko/wekan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThisNeko/wekan/merges","archive_url":"https://api.github.com/repos/ThisNeko/wekan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThisNeko/wekan/downloads","issues_url":"https://api.github.com/repos/ThisNeko/wekan/issues{/number}","pulls_url":"https://api.github.com/repos/ThisNeko/wekan/pulls{/number}","milestones_url":"https://api.github.com/repos/ThisNeko/wekan/milestones{/number}","notifications_url":"https://api.github.com/repos/ThisNeko/wekan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThisNeko/wekan/labels{/name}","releases_url":"https://api.github.com/repos/ThisNeko/wekan/releases{/id}","deployments_url":"https://api.github.com/repos/ThisNeko/wekan/deployments","created_at":"2018-05-04T11:53:39Z","updated_at":"2018-05-07T12:27:20Z","pushed_at":"2018-05-07T12:27:16Z","git_url":"git://github.com/ThisNeko/wekan.git","ssh_url":"git@github.com:ThisNeko/wekan.git","clone_url":"https://github.com/ThisNeko/wekan.git","svn_url":"https://github.com/ThisNeko/wekan","homepage":"https://wekan.github.io","size":5945,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"wekan:devel","ref":"devel","sha":"5e109de8d5bf9d9d274cda031618b11d01937e9c","user":{"login":"wekan","id":11725037,"avatar_url":"https://avatars2.githubusercontent.com/u/11725037?v=4","gravatar_id":"","url":"https://api.github.com/users/wekan","html_url":"https://github.com/wekan","followers_url":"https://api.github.com/users/wekan/followers","following_url":"https://api.github.com/users/wekan/following{/other_user}","gists_url":"https://api.github.com/users/wekan/gists{/gist_id}","starred_url":"https://api.github.com/users/wekan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wekan/subscriptions","organizations_url":"https://api.github.com/users/wekan/orgs","repos_url":"https://api.github.com/users/wekan/repos","events_url":"https://api.github.com/users/wekan/events{/privacy}","received_events_url":"https://api.github.com/users/wekan/received_events","type":"Organization","site_admin":false},"repo":{"id":16089035,"name":"wekan","full_name":"wekan/wekan","owner":{"login":"wekan","id":11725037,"avatar_url":"https://avatars2.githubusercontent.com/u/11725037?v=4","gravatar_id":"","url":"https://api.github.com/users/wekan","html_url":"https://github.com/wekan","followers_url":"https://api.github.com/users/wekan/followers","following_url":"https://api.github.com/users/wekan/following{/other_user}","gists_url":"https://api.github.com/users/wekan/gists{/gist_id}","starred_url":"https://api.github.com/users/wekan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wekan/subscriptions","organizations_url":"https://api.github.com/users/wekan/orgs","repos_url":"https://api.github.com/users/wekan/repos","events_url":"https://api.github.com/users/wekan/events{/privacy}","received_events_url":"https://api.github.com/users/wekan/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wekan/wekan","description":"The open-source Trello-like kanban (built with Meteor)","fork":false,"url":"https://api.github.com/repos/wekan/wekan","forks_url":"https://api.github.com/repos/wekan/wekan/forks","keys_url":"https://api.github.com/repos/wekan/wekan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wekan/wekan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wekan/wekan/teams","hooks_url":"https://api.github.com/repos/wekan/wekan/hooks","issue_events_url":"https://api.github.com/repos/wekan/wekan/issues/events{/number}","events_url":"https://api.github.com/repos/wekan/wekan/events","assignees_url":"https://api.github.com/repos/wekan/wekan/assignees{/user}","branches_url":"https://api.github.com/repos/wekan/wekan/branches{/branch}","tags_url":"https://api.github.com/repos/wekan/wekan/tags","blobs_url":"https://api.github.com/repos/wekan/wekan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wekan/wekan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wekan/wekan/git/refs{/sha}","trees_url":"https://api.github.com/repos/wekan/wekan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wekan/wekan/statuses/{sha}","languages_url":"https://api.github.com/repos/wekan/wekan/languages","stargazers_url":"https://api.github.com/repos/wekan/wekan/stargazers","contributors_url":"https://api.github.com/repos/wekan/wekan/contributors","subscribers_url":"https://api.github.com/repos/wekan/wekan/subscribers","subscription_url":"https://api.github.com/repos/wekan/wekan/subscription","commits_url":"https://api.github.com/repos/wekan/wekan/commits{/sha}","git_commits_url":"https://api.github.com/repos/wekan/wekan/git/commits{/sha}","comments_url":"https://api.github.com/repos/wekan/wekan/comments{/number}","issue_comment_url":"https://api.github.com/repos/wekan/wekan/issues/comments{/number}","contents_url":"https://api.github.com/repos/wekan/wekan/contents/{+path}","compare_url":"https://api.github.com/repos/wekan/wekan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wekan/wekan/merges","archive_url":"https://api.github.com/repos/wekan/wekan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wekan/wekan/downloads","issues_url":"https://api.github.com/repos/wekan/wekan/issues{/number}","pulls_url":"https://api.github.com/repos/wekan/wekan/pulls{/number}","milestones_url":"https://api.github.com/repos/wekan/wekan/milestones{/number}","notifications_url":"https://api.github.com/repos/wekan/wekan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wekan/wekan/labels{/name}","releases_url":"https://api.github.com/repos/wekan/wekan/releases{/id}","deployments_url":"https://api.github.com/repos/wekan/wekan/deployments","created_at":"2014-01-21T01:26:28Z","updated_at":"2018-05-07T22:25:58Z","pushed_at":"2018-05-07T22:27:09Z","git_url":"git://github.com/wekan/wekan.git","ssh_url":"git@github.com:wekan/wekan.git","clone_url":"https://github.com/wekan/wekan.git","svn_url":"https://github.com/wekan/wekan","homepage":"https://wekan.github.io","size":6957,"stargazers_count":12741,"watchers_count":12741,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1781,"mirror_url":null,"archived":false,"open_issues_count":276,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1781,"open_issues":276,"watchers":12741,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/wekan/wekan/pulls/1630"},"html":{"href":"https://github.com/wekan/wekan/pull/1630"},"issue":{"href":"https://api.github.com/repos/wekan/wekan/issues/1630"},"comments":{"href":"https://api.github.com/repos/wekan/wekan/issues/1630/comments"},"review_comments":{"href":"https://api.github.com/repos/wekan/wekan/pulls/1630/comments"},"review_comment":{"href":"https://api.github.com/repos/wekan/wekan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wekan/wekan/pulls/1630/commits"},"statuses":{"href":"https://api.github.com/repos/wekan/wekan/statuses/6b2d022a93114e39b26396aeb21b68a51551da84"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"xet7","id":15545,"avatar_url":"https://avatars0.githubusercontent.com/u/15545?v=4","gravatar_id":"","url":"https://api.github.com/users/xet7","html_url":"https://github.com/xet7","followers_url":"https://api.github.com/users/xet7/followers","following_url":"https://api.github.com/users/xet7/following{/other_user}","gists_url":"https://api.github.com/users/xet7/gists{/gist_id}","starred_url":"https://api.github.com/users/xet7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xet7/subscriptions","organizations_url":"https://api.github.com/users/xet7/orgs","repos_url":"https://api.github.com/users/xet7/repos","events_url":"https://api.github.com/users/xet7/events{/privacy}","received_events_url":"https://api.github.com/users/xet7/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":29,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"xet7"}}