{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/119","repository_url":"https://api.github.com/repos/jenkinsci/warnings-plugin","labels_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/119/comments","events_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/119/events","html_url":"https://github.com/jenkinsci/warnings-plugin/pull/119","id":304756386,"number":119,"title":"Configuration as code compatitbility","user":{"login":"MadsNielsen","id":1484793,"avatar_url":"https://avatars1.githubusercontent.com/u/1484793?v=4","gravatar_id":"","url":"https://api.github.com/users/MadsNielsen","html_url":"https://github.com/MadsNielsen","followers_url":"https://api.github.com/users/MadsNielsen/followers","following_url":"https://api.github.com/users/MadsNielsen/following{/other_user}","gists_url":"https://api.github.com/users/MadsNielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MadsNielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadsNielsen/subscriptions","organizations_url":"https://api.github.com/users/MadsNielsen/orgs","repos_url":"https://api.github.com/users/MadsNielsen/repos","events_url":"https://api.github.com/users/MadsNielsen/events{/privacy}","received_events_url":"https://api.github.com/users/MadsNielsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-03-13T13:05:16Z","updated_at":"2018-03-14T10:59:34Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/119","html_url":"https://github.com/jenkinsci/warnings-plugin/pull/119","diff_url":"https://github.com/jenkinsci/warnings-plugin/pull/119.diff","patch_url":"https://github.com/jenkinsci/warnings-plugin/pull/119.patch"},"body":"Added compatibility for the warnings plugin with Configuration as code plugin. \r\nFirst time trying to do this. Please let me know if im totally off base here :)\r\n\r\nWith this you can configure it like so:\r\n\r\n```\r\n  warnings:\r\n    parsers:\r\n      - name: \"MyParser\"\r\n        linkName: \"MyParser\"\r\n        trendName: \"MyParser\"\r\n        regexp: \"\\\\s+\"\r\n        script: \"return []\"\r\n        example: \"and here for example message\"\r\n```\r\n\r\nMight be good for @uhafner to take a look here. "},"comment":{"url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/comments/372982119","html_url":"https://github.com/jenkinsci/warnings-plugin/pull/119#issuecomment-372982119","issue_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/119","id":372982119,"user":{"login":"MadsNielsen","id":1484793,"avatar_url":"https://avatars1.githubusercontent.com/u/1484793?v=4","gravatar_id":"","url":"https://api.github.com/users/MadsNielsen","html_url":"https://github.com/MadsNielsen","followers_url":"https://api.github.com/users/MadsNielsen/followers","following_url":"https://api.github.com/users/MadsNielsen/following{/other_user}","gists_url":"https://api.github.com/users/MadsNielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MadsNielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadsNielsen/subscriptions","organizations_url":"https://api.github.com/users/MadsNielsen/orgs","repos_url":"https://api.github.com/users/MadsNielsen/repos","events_url":"https://api.github.com/users/MadsNielsen/events{/privacy}","received_events_url":"https://api.github.com/users/MadsNielsen/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T10:59:34Z","updated_at":"2018-03-14T10:59:34Z","author_association":"MEMBER","body":"@uhafner Looks good. I've added a comment to the setter about configuration as code. "}}
{"actor":{"display_login":"MadsNielsen"}}