Event rules: start workflows from GitHub issues

Two new event kinds, issue_labeled and issue_commented, let a workflow develop an issue and pick it up again when a human answers.


Event rules now see GitHub issues. issue_labeled fires when a label is added to an issue, issue_commented when a comment is created on one. A new label condition matches the label that was just added, and the existing repositories, labels, opened_by and triggered_by conditions apply to the issue and its author.

A rule for an issue starts a workflow, and a step with capability: ticket_implementation gets the repository, a fresh branch and a token that can push. When the agent asks a question and stops, the human's answer in a comment starts the workflow again, and the agent reads the whole thread. Bot comments, comments on pull requests and comments from people without write access are ignored, and only one run is active per issue at a time.

Rules take precedence over the agent-ready label, which still starts the bound ticket agent when no rule matches. See the event rules documentation for the conditions and the run input.