{"action":"created","issue":{"url":"https://api.github.com/repos/target/flottbot/issues/107","repository_url":"https://api.github.com/repos/target/flottbot","labels_url":"https://api.github.com/repos/target/flottbot/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/target/flottbot/issues/107/comments","events_url":"https://api.github.com/repos/target/flottbot/issues/107/events","html_url":"https://github.com/target/flottbot/issues/107","id":487970279,"node_id":"MDU6SXNzdWU0ODc5NzAyNzk=","number":107,"title":"Variable for all remaining args in rule","user":{"login":"johnrengelman","id":1012772,"node_id":"MDQ6VXNlcjEwMTI3NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/1012772?v=4","gravatar_id":"","url":"https://api.github.com/users/johnrengelman","html_url":"https://github.com/johnrengelman","followers_url":"https://api.github.com/users/johnrengelman/followers","following_url":"https://api.github.com/users/johnrengelman/following{/other_user}","gists_url":"https://api.github.com/users/johnrengelman/gists{/gist_id}","starred_url":"https://api.github.com/users/johnrengelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnrengelman/subscriptions","organizations_url":"https://api.github.com/users/johnrengelman/orgs","repos_url":"https://api.github.com/users/johnrengelman/repos","events_url":"https://api.github.com/users/johnrengelman/events{/privacy}","received_events_url":"https://api.github.com/users/johnrengelman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-02T02:53:11Z","updated_at":"2019-09-02T03:20:26Z","closed_at":null,"author_association":"NONE","body":"The arg matching for a rule only allows for extracting an explicit list of values.\r\nHowever, some rules might have variable argument lists. For example, `command <command name> <args>`.\r\nIt would be helpful, if I could specify a matcher to the remaining arg values:\r\n```\r\nargs:\r\n  - cmd\r\n  - cmdArgs+\r\n```\r\nwith `cmdArgs` being set to the remaining line after the matches are extracted.\r\nFor example, `command nc google.com 443`, would resolve to:\r\n`cmd=nc` and `cmdArgs=\"google.com 443\"`"},"comment":{"url":"https://api.github.com/repos/target/flottbot/issues/comments/526987641","html_url":"https://github.com/target/flottbot/issues/107#issuecomment-526987641","issue_url":"https://api.github.com/repos/target/flottbot/issues/107","id":526987641,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNjk4NzY0MQ==","user":{"login":"JordanSussman","id":8935518,"node_id":"MDQ6VXNlcjg5MzU1MTg=","avatar_url":"https://avatars2.githubusercontent.com/u/8935518?v=4","gravatar_id":"","url":"https://api.github.com/users/JordanSussman","html_url":"https://github.com/JordanSussman","followers_url":"https://api.github.com/users/JordanSussman/followers","following_url":"https://api.github.com/users/JordanSussman/following{/other_user}","gists_url":"https://api.github.com/users/JordanSussman/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanSussman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanSussman/subscriptions","organizations_url":"https://api.github.com/users/JordanSussman/orgs","repos_url":"https://api.github.com/users/JordanSussman/repos","events_url":"https://api.github.com/users/JordanSussman/events{/privacy}","received_events_url":"https://api.github.com/users/JordanSussman/received_events","type":"User","site_admin":false},"created_at":"2019-09-02T03:20:26Z","updated_at":"2019-09-02T03:20:26Z","author_association":"COLLABORATOR","body":" I agree that this type of functionality would be useful. Until someone has the opportunity to implement this, you could potentially use [optional arguments](https://github.com/target/flottbot/pull/86) that is documented [here](https://github.com/target/flottbot-docs/pull/29) until this type of functionality is added. The aforementioned recommendation wouldn't solve all scenarios but could solve common permutations."}}
{"actor":{"display_login":"JordanSussman"}}