diff --git a/.github/workflows/upstreaming-controller.yml b/.github/workflows/upstreaming-controller.yml index 867db6845a4..aeac177aad5 100644 --- a/.github/workflows/upstreaming-controller.yml +++ b/.github/workflows/upstreaming-controller.yml @@ -86,7 +86,7 @@ jobs: (github.event_name == 'issues' && (contains(github.event.issue.labels.*.name, 'upstreaming-request') || (github.event.action == 'unlabeled' && github.event.label.name == 'upstreaming-request'))) || - (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/upstreaming ')) + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/upstreaming ')) steps: - run: echo "event accepted for reconciliation" diff --git a/SESSIONLOG.md b/SESSIONLOG.md index b45419257af..646b94e45d7 100644 --- a/SESSIONLOG.md +++ b/SESSIONLOG.md @@ -27,3 +27,4 @@ - Added an exact-path repair compatibility flag for live contributions whose dossiers predate mandatory path coverage; new dossiers are marked coverage-complete and cannot use the legacy allowance. - Added trusted post-publication review acknowledgements: every addressed feedback item gets a short App-authored response, inline review threads are resolved after replying, and marker/readback checks make retries idempotent. - Added a fast ungrouped controller job that idempotently reacts `+1` to visible `/upstreaming` tracking-issue comments while leaving all parsing, authorization and command effects in serialized reconciliation. +- Aligned the controller's cheap comment filter with first-nonblank-line command parsing so blank-line-prefixed commands are both acknowledged and reconciled. diff --git a/upstreaming/tests/test_workflow_contracts.py b/upstreaming/tests/test_workflow_contracts.py index e1a4a999e38..3b6f315cecb 100644 --- a/upstreaming/tests/test_workflow_contracts.py +++ b/upstreaming/tests/test_workflow_contracts.py @@ -174,6 +174,8 @@ def test_controller_chains_every_pipeline_completion_and_has_schedule_fallback(s self.assertIn("github.event.action == 'unlabeled'", filter_if) self.assertIn("github.event.label.name == 'upstreaming-request'", filter_if) self.assertIn("created", triggers["issue_comment"]["types"]) + self.assertIn("contains(github.event.comment.body, '/upstreaming ')", filter_if) + self.assertNotIn("startsWith(github.event.comment.body", filter_if) self.assertIn("github.event_name == 'workflow_run'", controller["jobs"]["filter"]["if"]) def test_command_acknowledgement_is_fast_idempotent_and_not_serialized(self):