diff --git a/.github/workflows/add-community-bundle.md b/.github/workflows/add-community-bundle.md index 1f6d68c605..4ef48ed57f 100644 --- a/.github/workflows/add-community-bundle.md +++ b/.github/workflows/add-community-bundle.md @@ -276,6 +276,11 @@ repository README remains the source for the actual URLs. Create one draft pull request. +This repository-owned gh-aw maintenance workflow does not perform the contributor +open-PR count check or request confirmation. After successful validation and +allowed catalog/docs file updates, emit the configured draft `create_pull_request` +safe output regardless of the submitter's or filing account's open PR count. + - New entry branch: `community/${{ github.event.issue.number }}-add--bundle` - Update branch: diff --git a/.github/workflows/add-community-extension.md b/.github/workflows/add-community-extension.md index c59f20ddac..eb09c66475 100644 --- a/.github/workflows/add-community-extension.md +++ b/.github/workflows/add-community-extension.md @@ -257,6 +257,11 @@ Find the existing row and update any changed fields in-place. Create a pull request with the changes. Use this branch naming convention: +This repository-owned gh-aw maintenance workflow does not perform the contributor +open-PR count check or request confirmation. After successful validation and +allowed catalog/docs file updates, emit the configured draft `create_pull_request` +safe output regardless of the submitter's or filing account's open PR count. + - **New extension:** `add--extension` - **Update:** `update--extension` diff --git a/.github/workflows/add-community-preset.md b/.github/workflows/add-community-preset.md index f93dbef0f6..2bcc3f518c 100644 --- a/.github/workflows/add-community-preset.md +++ b/.github/workflows/add-community-preset.md @@ -310,6 +310,11 @@ Find the existing row and update any changed fields in-place. Create a pull request with the changes. Use this branch naming convention: +This repository-owned gh-aw maintenance workflow does not perform the contributor +open-PR count check or request confirmation. After successful validation and +allowed catalog/docs file updates, emit the configured draft `create_pull_request` +safe output regardless of the submitter's or filing account's open PR count. + - **New preset:** `add--preset` - **Update:** `update--preset` diff --git a/tests/test_github_workflows.py b/tests/test_github_workflows.py index 43c4a61204..9525c60d4b 100644 --- a/tests/test_github_workflows.py +++ b/tests/test_github_workflows.py @@ -56,6 +56,12 @@ "Do not modify any other files", ), ) +REPOSITORY_OWNED_DRAFT_PR_EXEMPTION = ( + "This repository-owned gh-aw maintenance workflow does not perform the contributor " + "open-PR count check or request confirmation. After successful validation and " + "allowed catalog/docs file updates, emit the configured draft `create_pull_request` " + "safe output regardless of the submitter's or filing account's open PR count." +) def _publish_workflow_steps() -> dict[str, dict[str, object]]: @@ -440,8 +446,15 @@ def test_community_upgrade_preserves_activation_and_permission_guards(kind): def test_community_upgrade_preserves_scoped_draft_pr_contract( kind, label, catalog_file, docs_file, instruction ): - source_text, _, source, compiled = _agentic_workflow(f"add-community-{kind}") + source_text, compiled_text, source, compiled = _agentic_workflow( + f"add-community-{kind}" + ) assert instruction in source_text + assert REPOSITORY_OWNED_DRAFT_PR_EXEMPTION in " ".join(source_text.split()) + assert ( + f"{{{{#runtime-import .github/workflows/add-community-{kind}.md}}}}" + in compiled_text + ) outputs = _safe_output_config(compiled) expected_outputs = { "add_comment", "add_labels", "create_pull_request", "noop",