{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/spantaleev/suggestor.js/pulls/4","id":17201092,"html_url":"https://github.com/spantaleev/suggestor.js/pull/4","diff_url":"https://github.com/spantaleev/suggestor.js/pull/4.diff","patch_url":"https://github.com/spantaleev/suggestor.js/pull/4.patch","issue_url":"https://api.github.com/repos/spantaleev/suggestor.js/issues/4","number":4,"state":"closed","locked":false,"title":"Append/prepend options and utilize event triggering","user":{"login":"subvertallchris","id":4097271,"avatar_url":"https://avatars2.githubusercontent.com/u/4097271?v=4","gravatar_id":"","url":"https://api.github.com/users/subvertallchris","html_url":"https://github.com/subvertallchris","followers_url":"https://api.github.com/users/subvertallchris/followers","following_url":"https://api.github.com/users/subvertallchris/following{/other_user}","gists_url":"https://api.github.com/users/subvertallchris/gists{/gist_id}","starred_url":"https://api.github.com/users/subvertallchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subvertallchris/subscriptions","organizations_url":"https://api.github.com/users/subvertallchris/orgs","repos_url":"https://api.github.com/users/subvertallchris/repos","events_url":"https://api.github.com/users/subvertallchris/events{/privacy}","received_events_url":"https://api.github.com/users/subvertallchris/received_events","type":"User","site_admin":false},"body":"This does a couple things:\n\nFirst, it adds prepend and append options. This is useful if you want to have it insert a string wrapped in a certain way. In my case, I'm using some very basic, simple markup, and I want my users wrapped so they appear as \"[@username]\":\n\n``` javascript\n$(this).suggestor({\n  startDelimiter: \"@\",\n  insertKey: 'label',\n  insertPrepend: '[',\n  insertAppend: ']',\n  \"suggestionsTemplateHtml\": \"%label%\",\n  dataSource: dataSource\n});\n```\n\nThe other thing it does is trigger an event, \"utilize-mention,\" when something is selected and inserted into an input field.\n\n``` javascript\n#stupid basic example\n$('#input-field').on('utilize-mention', function(event, data) {\n  console.log(data);\n})\n```\n","created_at":"2014-06-16T20:36:07Z","updated_at":"2017-11-02T13:26:15Z","closed_at":"2017-11-02T13:26:15Z","merged_at":null,"merge_commit_sha":"eeb35e5c6e9a95bf909946718a44ed94e7a0cd54","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/spantaleev/suggestor.js/pulls/4/commits","review_comments_url":"https://api.github.com/repos/spantaleev/suggestor.js/pulls/4/comments","review_comment_url":"https://api.github.com/repos/spantaleev/suggestor.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spantaleev/suggestor.js/issues/4/comments","statuses_url":"https://api.github.com/repos/spantaleev/suggestor.js/statuses/311fb9931acdbf25e5db7a5852d5fc7109d6c919","head":{"label":"subvertallchris:master","ref":"master","sha":"311fb9931acdbf25e5db7a5852d5fc7109d6c919","user":{"login":"subvertallchris","id":4097271,"avatar_url":"https://avatars2.githubusercontent.com/u/4097271?v=4","gravatar_id":"","url":"https://api.github.com/users/subvertallchris","html_url":"https://github.com/subvertallchris","followers_url":"https://api.github.com/users/subvertallchris/followers","following_url":"https://api.github.com/users/subvertallchris/following{/other_user}","gists_url":"https://api.github.com/users/subvertallchris/gists{/gist_id}","starred_url":"https://api.github.com/users/subvertallchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subvertallchris/subscriptions","organizations_url":"https://api.github.com/users/subvertallchris/orgs","repos_url":"https://api.github.com/users/subvertallchris/repos","events_url":"https://api.github.com/users/subvertallchris/events{/privacy}","received_events_url":"https://api.github.com/users/subvertallchris/received_events","type":"User","site_admin":false},"repo":{"id":20899254,"name":"suggestor.js","full_name":"subvertallchris/suggestor.js","owner":{"login":"subvertallchris","id":4097271,"avatar_url":"https://avatars2.githubusercontent.com/u/4097271?v=4","gravatar_id":"","url":"https://api.github.com/users/subvertallchris","html_url":"https://github.com/subvertallchris","followers_url":"https://api.github.com/users/subvertallchris/followers","following_url":"https://api.github.com/users/subvertallchris/following{/other_user}","gists_url":"https://api.github.com/users/subvertallchris/gists{/gist_id}","starred_url":"https://api.github.com/users/subvertallchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subvertallchris/subscriptions","organizations_url":"https://api.github.com/users/subvertallchris/orgs","repos_url":"https://api.github.com/users/subvertallchris/repos","events_url":"https://api.github.com/users/subvertallchris/events{/privacy}","received_events_url":"https://api.github.com/users/subvertallchris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/subvertallchris/suggestor.js","description":"Suggestions-providing / @user mentions / #tagging / autocompletion library.","fork":true,"url":"https://api.github.com/repos/subvertallchris/suggestor.js","forks_url":"https://api.github.com/repos/subvertallchris/suggestor.js/forks","keys_url":"https://api.github.com/repos/subvertallchris/suggestor.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/subvertallchris/suggestor.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/subvertallchris/suggestor.js/teams","hooks_url":"https://api.github.com/repos/subvertallchris/suggestor.js/hooks","issue_events_url":"https://api.github.com/repos/subvertallchris/suggestor.js/issues/events{/number}","events_url":"https://api.github.com/repos/subvertallchris/suggestor.js/events","assignees_url":"https://api.github.com/repos/subvertallchris/suggestor.js/assignees{/user}","branches_url":"https://api.github.com/repos/subvertallchris/suggestor.js/branches{/branch}","tags_url":"https://api.github.com/repos/subvertallchris/suggestor.js/tags","blobs_url":"https://api.github.com/repos/subvertallchris/suggestor.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/subvertallchris/suggestor.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/subvertallchris/suggestor.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/subvertallchris/suggestor.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/subvertallchris/suggestor.js/statuses/{sha}","languages_url":"https://api.github.com/repos/subvertallchris/suggestor.js/languages","stargazers_url":"https://api.github.com/repos/subvertallchris/suggestor.js/stargazers","contributors_url":"https://api.github.com/repos/subvertallchris/suggestor.js/contributors","subscribers_url":"https://api.github.com/repos/subvertallchris/suggestor.js/subscribers","subscription_url":"https://api.github.com/repos/subvertallchris/suggestor.js/subscription","commits_url":"https://api.github.com/repos/subvertallchris/suggestor.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/subvertallchris/suggestor.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/subvertallchris/suggestor.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/subvertallchris/suggestor.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/subvertallchris/suggestor.js/contents/{+path}","compare_url":"https://api.github.com/repos/subvertallchris/suggestor.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/subvertallchris/suggestor.js/merges","archive_url":"https://api.github.com/repos/subvertallchris/suggestor.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/subvertallchris/suggestor.js/downloads","issues_url":"https://api.github.com/repos/subvertallchris/suggestor.js/issues{/number}","pulls_url":"https://api.github.com/repos/subvertallchris/suggestor.js/pulls{/number}","milestones_url":"https://api.github.com/repos/subvertallchris/suggestor.js/milestones{/number}","notifications_url":"https://api.github.com/repos/subvertallchris/suggestor.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/subvertallchris/suggestor.js/labels{/name}","releases_url":"https://api.github.com/repos/subvertallchris/suggestor.js/releases{/id}","deployments_url":"https://api.github.com/repos/subvertallchris/suggestor.js/deployments","created_at":"2014-06-16T20:17:29Z","updated_at":"2014-08-07T15:16:11Z","pushed_at":"2014-08-07T15:16:12Z","git_url":"git://github.com/subvertallchris/suggestor.js.git","ssh_url":"git@github.com:subvertallchris/suggestor.js.git","clone_url":"https://github.com/subvertallchris/suggestor.js.git","svn_url":"https://github.com/subvertallchris/suggestor.js","homepage":"http://devture.com/projects/suggestor.js","size":163,"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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spantaleev:master","ref":"master","sha":"1faa3881621fd58a4c3d16a5e0967e486edf8456","user":{"login":"spantaleev","id":388669,"avatar_url":"https://avatars3.githubusercontent.com/u/388669?v=4","gravatar_id":"","url":"https://api.github.com/users/spantaleev","html_url":"https://github.com/spantaleev","followers_url":"https://api.github.com/users/spantaleev/followers","following_url":"https://api.github.com/users/spantaleev/following{/other_user}","gists_url":"https://api.github.com/users/spantaleev/gists{/gist_id}","starred_url":"https://api.github.com/users/spantaleev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spantaleev/subscriptions","organizations_url":"https://api.github.com/users/spantaleev/orgs","repos_url":"https://api.github.com/users/spantaleev/repos","events_url":"https://api.github.com/users/spantaleev/events{/privacy}","received_events_url":"https://api.github.com/users/spantaleev/received_events","type":"User","site_admin":false},"repo":{"id":14253285,"name":"suggestor.js","full_name":"spantaleev/suggestor.js","owner":{"login":"spantaleev","id":388669,"avatar_url":"https://avatars3.githubusercontent.com/u/388669?v=4","gravatar_id":"","url":"https://api.github.com/users/spantaleev","html_url":"https://github.com/spantaleev","followers_url":"https://api.github.com/users/spantaleev/followers","following_url":"https://api.github.com/users/spantaleev/following{/other_user}","gists_url":"https://api.github.com/users/spantaleev/gists{/gist_id}","starred_url":"https://api.github.com/users/spantaleev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spantaleev/subscriptions","organizations_url":"https://api.github.com/users/spantaleev/orgs","repos_url":"https://api.github.com/users/spantaleev/repos","events_url":"https://api.github.com/users/spantaleev/events{/privacy}","received_events_url":"https://api.github.com/users/spantaleev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spantaleev/suggestor.js","description":"Suggestions-providing / @user mentions / #tagging / autocompletion library.","fork":false,"url":"https://api.github.com/repos/spantaleev/suggestor.js","forks_url":"https://api.github.com/repos/spantaleev/suggestor.js/forks","keys_url":"https://api.github.com/repos/spantaleev/suggestor.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spantaleev/suggestor.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spantaleev/suggestor.js/teams","hooks_url":"https://api.github.com/repos/spantaleev/suggestor.js/hooks","issue_events_url":"https://api.github.com/repos/spantaleev/suggestor.js/issues/events{/number}","events_url":"https://api.github.com/repos/spantaleev/suggestor.js/events","assignees_url":"https://api.github.com/repos/spantaleev/suggestor.js/assignees{/user}","branches_url":"https://api.github.com/repos/spantaleev/suggestor.js/branches{/branch}","tags_url":"https://api.github.com/repos/spantaleev/suggestor.js/tags","blobs_url":"https://api.github.com/repos/spantaleev/suggestor.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spantaleev/suggestor.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spantaleev/suggestor.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/spantaleev/suggestor.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spantaleev/suggestor.js/statuses/{sha}","languages_url":"https://api.github.com/repos/spantaleev/suggestor.js/languages","stargazers_url":"https://api.github.com/repos/spantaleev/suggestor.js/stargazers","contributors_url":"https://api.github.com/repos/spantaleev/suggestor.js/contributors","subscribers_url":"https://api.github.com/repos/spantaleev/suggestor.js/subscribers","subscription_url":"https://api.github.com/repos/spantaleev/suggestor.js/subscription","commits_url":"https://api.github.com/repos/spantaleev/suggestor.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/spantaleev/suggestor.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/spantaleev/suggestor.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/spantaleev/suggestor.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/spantaleev/suggestor.js/contents/{+path}","compare_url":"https://api.github.com/repos/spantaleev/suggestor.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spantaleev/suggestor.js/merges","archive_url":"https://api.github.com/repos/spantaleev/suggestor.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spantaleev/suggestor.js/downloads","issues_url":"https://api.github.com/repos/spantaleev/suggestor.js/issues{/number}","pulls_url":"https://api.github.com/repos/spantaleev/suggestor.js/pulls{/number}","milestones_url":"https://api.github.com/repos/spantaleev/suggestor.js/milestones{/number}","notifications_url":"https://api.github.com/repos/spantaleev/suggestor.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spantaleev/suggestor.js/labels{/name}","releases_url":"https://api.github.com/repos/spantaleev/suggestor.js/releases{/id}","deployments_url":"https://api.github.com/repos/spantaleev/suggestor.js/deployments","created_at":"2013-11-09T07:23:46Z","updated_at":"2016-09-08T09:23:35Z","pushed_at":"2014-06-14T12:25:55Z","git_url":"git://github.com/spantaleev/suggestor.js.git","ssh_url":"git@github.com:spantaleev/suggestor.js.git","clone_url":"https://github.com/spantaleev/suggestor.js.git","svn_url":"https://github.com/spantaleev/suggestor.js","homepage":"http://devture.com/projects/suggestor.js","size":264,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spantaleev/suggestor.js/pulls/4"},"html":{"href":"https://github.com/spantaleev/suggestor.js/pull/4"},"issue":{"href":"https://api.github.com/repos/spantaleev/suggestor.js/issues/4"},"comments":{"href":"https://api.github.com/repos/spantaleev/suggestor.js/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/spantaleev/suggestor.js/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/spantaleev/suggestor.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spantaleev/suggestor.js/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/spantaleev/suggestor.js/statuses/311fb9931acdbf25e5db7a5852d5fc7109d6c919"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":false,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":18,"deletions":5,"changed_files":2}}
{"actor":{"display_login":"subvertallchris"}}