{"action":"opened","issue":{"url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/5121","repository_url":"https://api.github.com/repos/postmanlabs/postman-app-support","labels_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/5121/labels{/name}","comments_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/5121/comments","events_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/5121/events","html_url":"https://github.com/postmanlabs/postman-app-support/issues/5121","id":356088585,"node_id":"MDU6SXNzdWUzNTYwODg1ODU=","number":5121,"title":"pm.isMonitor()","user":{"login":"stephanos","id":159852,"node_id":"MDQ6VXNlcjE1OTg1Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/159852?v=4","gravatar_id":"","url":"https://api.github.com/users/stephanos","html_url":"https://github.com/stephanos","followers_url":"https://api.github.com/users/stephanos/followers","following_url":"https://api.github.com/users/stephanos/following{/other_user}","gists_url":"https://api.github.com/users/stephanos/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanos/subscriptions","organizations_url":"https://api.github.com/users/stephanos/orgs","repos_url":"https://api.github.com/users/stephanos/repos","events_url":"https://api.github.com/users/stephanos/events{/privacy}","received_events_url":"https://api.github.com/users/stephanos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-31T18:50:22Z","updated_at":"2018-08-31T18:50:22Z","closed_at":null,"author_association":"NONE","body":"Please read through the [guidelines](https://github.com/postmanlabs/postman-app-support#guidelines-for-reporting-issues) before creating a new issue.\r\n\r\n**Is your feature request related to a problem? Please describe.**\r\n\r\nI want my collection to be executable locally _and_ from monitors. But since some stateful setup in the app is required for the tests, I want to avoid conflicts there. By knowing whether it's running on the monitor, I can separate the two.\r\n\r\n**Describe the solution you'd like**\r\nI'd like to have a `pm.isMonitor()` (or something along those lines) that would tell me whether the collection is being run on the monitor or not.\r\n\r\n**Describe alternatives you've considered**\r\nI could create a separate environment with a custom variable, but that would mean I need to create twice as many environments and there could be issues due to not being DRY (ie duplication free).\r\n"}}
{"actor":{"display_login":"stephanos"}}