{"action":"created","issue":{"url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/2","labels_url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/2/comments","events_url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/2/events","html_url":"https://github.com/nemccarthy/stash-pullrequest-builder-plugin/issues/2","id":65085624,"number":2,"title":"Parameterize build","user":{"login":"tomasbjerre","id":439571,"avatar_url":"https://avatars.githubusercontent.com/u/439571?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasbjerre","html_url":"https://github.com/tomasbjerre","followers_url":"https://api.github.com/users/tomasbjerre/followers","following_url":"https://api.github.com/users/tomasbjerre/following{/other_user}","gists_url":"https://api.github.com/users/tomasbjerre/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasbjerre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasbjerre/subscriptions","organizations_url":"https://api.github.com/users/tomasbjerre/orgs","repos_url":"https://api.github.com/users/tomasbjerre/repos","events_url":"https://api.github.com/users/tomasbjerre/events{/privacy}","received_events_url":"https://api.github.com/users/tomasbjerre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-29T19:06:41Z","updated_at":"2015-04-01T00:22:07Z","closed_at":null,"body":"I created a Stash plugin that can trigger this plugin, so that polling can be avoided:\r\nhttps://github.com/tomasbjerre/pull-request-notifier-for-stash\r\nIt has an admin GUI where checkboxes for different events can be enabled. And a custom URL, supporting variables, is added. Then when any of the events are triggered, the URL is rendered and invoked.\r\n\r\nFor example when a pull request is OPENED, or REOPENED, the plugin can invoke a URL that includes, from repo, from hash, to repo and to hash.\r\n\r\nBut then this plugin will need to enable parameters the build.\r\n\r\nBy the way, my plugin will be available in Atlassian Marketplace within a few days."},"comment":{"url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/comments/88292179","html_url":"https://github.com/nemccarthy/stash-pullrequest-builder-plugin/issues/2#issuecomment-88292179","issue_url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/2","id":88292179,"user":{"login":"nemccarthy","id":8044836,"avatar_url":"https://avatars.githubusercontent.com/u/8044836?v=3","gravatar_id":"","url":"https://api.github.com/users/nemccarthy","html_url":"https://github.com/nemccarthy","followers_url":"https://api.github.com/users/nemccarthy/followers","following_url":"https://api.github.com/users/nemccarthy/following{/other_user}","gists_url":"https://api.github.com/users/nemccarthy/gists{/gist_id}","starred_url":"https://api.github.com/users/nemccarthy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemccarthy/subscriptions","organizations_url":"https://api.github.com/users/nemccarthy/orgs","repos_url":"https://api.github.com/users/nemccarthy/repos","events_url":"https://api.github.com/users/nemccarthy/events{/privacy}","received_events_url":"https://api.github.com/users/nemccarthy/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T00:22:07Z","updated_at":"2015-04-01T00:22:07Z","body":"Yeah that sounds like an interesting idea, I'm assuming that this trigger should pick up the parametrized request. \r\n\r\nIs there a reason polling the Stash PR list via their rest api every minute doesnt work for you? I understand this doesn't scale if you have 100s of repos to watch but it seems like a corner case. Do we just need to add some other states to support (i.e. re-opened) are there any bugs that this plugin could fix? \r\n\r\nHappy to take a PR on this one. :)"}}