{"action":"created","issue":{"url":"https://api.github.com/repos/yegor256/rultor/issues/870","repository_url":"https://api.github.com/repos/yegor256/rultor","labels_url":"https://api.github.com/repos/yegor256/rultor/issues/870/labels{/name}","comments_url":"https://api.github.com/repos/yegor256/rultor/issues/870/comments","events_url":"https://api.github.com/repos/yegor256/rultor/issues/870/events","html_url":"https://github.com/yegor256/rultor/issues/870","id":89064622,"number":870,"title":"RFE: Custom commands","user":{"login":"sils1297","id":5716520,"avatar_url":"https://avatars.githubusercontent.com/u/5716520?v=3","gravatar_id":"","url":"https://api.github.com/users/sils1297","html_url":"https://github.com/sils1297","followers_url":"https://api.github.com/users/sils1297/followers","following_url":"https://api.github.com/users/sils1297/following{/other_user}","gists_url":"https://api.github.com/users/sils1297/gists{/gist_id}","starred_url":"https://api.github.com/users/sils1297/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sils1297/subscriptions","organizations_url":"https://api.github.com/users/sils1297/orgs","repos_url":"https://api.github.com/users/sils1297/repos","events_url":"https://api.github.com/users/sils1297/events{/privacy}","received_events_url":"https://api.github.com/users/sils1297/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-17T16:28:51Z","updated_at":"2016-02-22T21:33:00Z","closed_at":null,"body":"Effectively, merge and deploy are simple scriptable things. You probably do that already internally modular, i.e. have a single script or entry point for a command but that could be exposed to the user. What I'm thinking of is something like being able to place arbitrary things in the yml like:\r\n\r\n```\r\nrebase:\r\n  help: \"Rebases the branch of the current pull request onto master.\"\r\n  parameter: TARGET\r\n  merge-before: false\r\n  push-after: force\r\n  script:\r\n    - git rebase $(TARGET)\r\n```\r\n\r\nAnd something like `rultor help rebase` (omitting @ to not summon rultor) would show the specified help text and the parameters similar to a man page.\r\n\r\nJust a raw idea but I think it may add a lot of flexibility to rultor. Plus I'd love to have a rebase command so we can retrigger review and CI when master moved on the base of our PR in ff-based workflow ;)"},"comment":{"url":"https://api.github.com/repos/yegor256/rultor/issues/comments/187394925","html_url":"https://github.com/yegor256/rultor/issues/870#issuecomment-187394925","issue_url":"https://api.github.com/repos/yegor256/rultor/issues/870","id":187394925,"user":{"login":"sils1297","id":5716520,"avatar_url":"https://avatars.githubusercontent.com/u/5716520?v=3","gravatar_id":"","url":"https://api.github.com/users/sils1297","html_url":"https://github.com/sils1297","followers_url":"https://api.github.com/users/sils1297/followers","following_url":"https://api.github.com/users/sils1297/following{/other_user}","gists_url":"https://api.github.com/users/sils1297/gists{/gist_id}","starred_url":"https://api.github.com/users/sils1297/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sils1297/subscriptions","organizations_url":"https://api.github.com/users/sils1297/orgs","repos_url":"https://api.github.com/users/sils1297/repos","events_url":"https://api.github.com/users/sils1297/events{/privacy}","received_events_url":"https://api.github.com/users/sils1297/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T21:33:00Z","updated_at":"2016-02-22T21:33:00Z","body":"the rebase thing is actually more about https://github.com/yegor256/rultor/issues/877 , i.e. using rultor during PR review before merge"}}