{"action":"created","issue":{"url":"https://api.github.com/repos/JabRef/jabref/issues/782","repository_url":"https://api.github.com/repos/JabRef/jabref","labels_url":"https://api.github.com/repos/JabRef/jabref/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/782/comments","events_url":"https://api.github.com/repos/JabRef/jabref/issues/782/events","html_url":"https://github.com/JabRef/jabref/pull/782","id":132214612,"number":782,"title":"Fix a small bug in citekey generator","user":{"login":"tobiasdiez","id":5037600,"avatar_url":"https://avatars.githubusercontent.com/u/5037600?v=3","gravatar_id":"","url":"https://api.github.com/users/tobiasdiez","html_url":"https://github.com/tobiasdiez","followers_url":"https://api.github.com/users/tobiasdiez/followers","following_url":"https://api.github.com/users/tobiasdiez/following{/other_user}","gists_url":"https://api.github.com/users/tobiasdiez/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiasdiez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiasdiez/subscriptions","organizations_url":"https://api.github.com/users/tobiasdiez/orgs","repos_url":"https://api.github.com/users/tobiasdiez/repos","events_url":"https://api.github.com/users/tobiasdiez/events{/privacy}","received_events_url":"https://api.github.com/users/tobiasdiez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JabRef/jabref/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/JabRef/jabref/labels/ready-for-review","name":"ready-for-review","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-08T17:57:05Z","updated_at":"2016-02-09T11:33:46Z","closed_at":"2016-02-09T07:59:21Z","pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/782","html_url":"https://github.com/JabRef/jabref/pull/782","diff_url":"https://github.com/JabRef/jabref/pull/782.diff","patch_url":"https://github.com/JabRef/jabref/pull/782.patch"},"body":"Generating a new key would prepend the pattern which resulted for example in `[author]Weinstein` instead of the expected `Weinstein`. The reason for the bug was that the list returned by\r\n`getLabelPattern().getValue(entryType)` contains as the first item the complete pattern.\r\n\r\nThis bug was introduced in https://github.com/oscargus/jabref/commit/81f2a687010c4da31f1808133ae03fb3ef8cd0b9."},"comment":{"url":"https://api.github.com/repos/JabRef/jabref/issues/comments/181826543","html_url":"https://github.com/JabRef/jabref/pull/782#issuecomment-181826543","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/782","id":181826543,"user":{"login":"koppor","id":1366654,"avatar_url":"https://avatars.githubusercontent.com/u/1366654?v=3","gravatar_id":"","url":"https://api.github.com/users/koppor","html_url":"https://github.com/koppor","followers_url":"https://api.github.com/users/koppor/followers","following_url":"https://api.github.com/users/koppor/following{/other_user}","gists_url":"https://api.github.com/users/koppor/gists{/gist_id}","starred_url":"https://api.github.com/users/koppor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koppor/subscriptions","organizations_url":"https://api.github.com/users/koppor/orgs","repos_url":"https://api.github.com/users/koppor/repos","events_url":"https://api.github.com/users/koppor/events{/privacy}","received_events_url":"https://api.github.com/users/koppor/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T11:33:46Z","updated_at":"2016-02-09T11:33:46Z","body":"Where is the test case? :innocent: "}}