Skip to content

💫 Toolkit to help you get started with SDD or any other process!

fix(workflows): exempt catalog automation from PR-count confirmation (#4607)

WOLIKIMCHENGfcfc7e883b5c
diff --git a/.github/workflows/add-community-bundle.md b/.github/workflows/add-community-bundle.md
index 1f6d68c60..4ef48ed57 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-id>-bundle`
- Update branch:
diff --git a/.github/workflows/add-community-extension.md b/.github/workflows/add-community-extension.md
index c59f20dda..eb09c6647 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-id>-extension`
- **Update:** `update-<extension-id>-extension`
diff --git a/.github/workflows/add-community-preset.md b/.github/workflows/add-community-preset.md
index f93dbef0f..2bcc3f518 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-id>-preset`
- **Update:** `update-<preset-id>-preset`
diff --git a/tests/test_github_workflows.py b/tests/test_github_workflows.py
index 43c4a6120..9525c60d4 100644
--- a/tests/test_github_workflows.py
+++ b/tests/test_github_workflows.py
@@ -56,6 +56,12 @@ COMMUNITY_SUBMISSION_WORKFLOWS = (
"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",