Skip to content

Commit d4229c0

Browse files
KSchlobohmCopilot
andauthored
fix(workflows): exempt bug-fix from PR-count confirmation (#4636)
* chore: upgrade community workflows to gh-aw v0.88.7 (#18) Regenerate the three community submission locks with Copilot CLI 1.0.80 and the compiler defaults. Preserve submission instructions and file allowlists, and cover runtime compatibility and output guards. Assisted-by: GitHub Copilot (model: GPT-6 Astra, autonomous) Co-authored-by: Copilot App <[email protected]> * fix(workflows): exempt bug-fix from PR-count confirmation Apply the community maintenance-workflow exemption to bug-fix while preserving assessment gates and harness-managed draft publication. Add static exemption and runtime-import coverage. Assisted-by: GitHub Copilot (model: GPT-6 Astra, autonomous) Co-authored-by: Copilot App <[email protected]> * chore(workflows): refresh maintenance workflow body hashes Regenerate bug-fix and the three community workflow lockfiles with gh-aw v0.88.7 after the PR-count exemption changes. Only body_hash metadata changes; executable YAML is unchanged. Assisted-by: GitHub Copilot (model: GPT-6 Astra, autonomous) Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]>
1 parent 130480b commit d4229c0

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

‎.github/workflows/bug-fix.lock.yml‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/bug-fix.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ are already present, `cargo test` when crates are already present), run the
206206

207207
## Step 6 — Open a Draft Pull Request
208208

209+
This repository-owned gh-aw maintenance workflow does not perform the contributor
210+
open-PR count check or request confirmation. After completing the assessment-scoped
211+
remediation and local checks above, emit the configured draft `create_pull_request`
212+
safe output regardless of the submitter's or filing account's open PR count.
213+
209214
Use the `create-pull-request` safe output to open a **draft** PR with your
210215
changes. The harness handles branching, committing, and pushing from the working
211216
tree you edited — you do not run `git` yourself.

‎tests/test_github_workflows.py‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,20 @@ def test_bug_workflow_upgrade_preserves_runtime_and_negative_guards(name):
950950
} == expected_actions
951951

952952

953+
def test_bug_fix_exempts_maintenance_from_pr_count_confirmation():
954+
source_text, compiled_text, _, _ = _agentic_workflow("bug-fix")
955+
publication = source_text.split("## Step 6", 1)[1].split("## Step 7", 1)[0]
956+
exemption = (
957+
"This repository-owned gh-aw maintenance workflow does not perform the "
958+
"contributor open-PR count check or request confirmation. After completing "
959+
"the assessment-scoped remediation and local checks above, emit the "
960+
"configured draft `create_pull_request` safe output regardless of the "
961+
"submitter's or filing account's open PR count."
962+
)
963+
assert exemption in " ".join(publication.split())
964+
assert "{{#runtime-import .github/workflows/bug-fix.md}}" in compiled_text
965+
966+
953967
def test_bug_fix_upgrade_preserves_scoped_draft_pr_contract():
954968
source_text, _, source, compiled = _agentic_workflow("bug-fix")
955969
create_pr = _safe_output_config(compiled)["create_pull_request"]
@@ -996,6 +1010,10 @@ def test_bug_fix_upgrade_preserves_scoped_draft_pr_contract():
9961010
"**Stay within the files the assessment named**",
9971011
"record it explicitly in the PR body under **Deviations from Assessment**",
9981012
"Use the `create-pull-request` safe output to open a **draft** PR",
1013+
(
1014+
"The harness handles branching, committing, and pushing from the "
1015+
"working tree you edited — you do not run `git` yourself."
1016+
),
9991017
"Use `Refs` (not `Closes`)",
10001018
"Add **exactly one** status label per run when the label exists",
10011019
):

0 commit comments

Comments
 (0)