You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge OpenAPI PRs via the merge API instead of pushing to main
Replace the local git merge + direct push to the protected default branch
with `gh pr merge` on each of the two latest PRs. Merging a PR is the
compliant path through the "require a pull request" branch rule, so the job
no longer needs a protected-branch push or any ruleset/branch-protection
bypass — OPENAPI_MERGE_TOKEN only needs pull-requests:write + contents:write.
The synchronous merge call can gateway-timeout (502/504) on these ~250K-line
diffs, so merge_pr retries and polls the PR's merged state after each failure
(the merge usually completes server-side despite the timeout). Drops the
actions/checkout-with-token step. Recompiled the lock with gh aw.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: dcc1f083-b349-4398-ae7e-e2b90b1924b7
{"create_report_incomplete_issue":{},"merge-openapi-prs":{"description":"Merge the latest OpenAPI 3.0 and 3.1 description PRs into the default branch, close the older superseded PRs, and notify Slack. Call this ONLY when no breaking changes were found. Provide the two latest PR numbers and the list of older PR numbers.\n","inputs":{"older_prs":{"default":null,"description":"Comma-separated PR numbers of older superseded PRs to close (may be empty).","required":false,"type":"string"},"pr_30":{"default":null,"description":"PR number of the latest 'Update OpenAPI 3.0 Descriptions' PR.","required":true,"type":"number"},"pr_31":{"default":null,"description":"PR number of the latest 'Update OpenAPI 3.1 Descriptions' PR.","required":true,"type":"number"},"summary":{"default":null,"description":"One-line summary of the merged changes for the Slack notification.","required":true,"type":"string"}},"output":"OpenAPI PRs merged, older PRs closed, Slack notified."},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"post-to-chatterbox":{"description":"Post a message to the #api-platform Slack channel via chatterbox. Message must be 200 characters or less. Supports Slack markdown (*bold*, _italic_, `code`, \u003curl|text\u003e). Requires the CHATTERBOX_URL and CHATTERBOX_TOKEN secrets to be configured.\n","inputs":{"message":{"default":null,"description":"The message to post (max 200 characters, Slack markdown).","required":true,"type":"string"}},"output":"Message posted to chatterbox."},"report_incomplete":{}}
{"create_report_incomplete_issue":{},"merge-openapi-prs":{"description":"Merge the latest OpenAPI 3.0 and 3.1 description PRs into the default branch, close the older superseded PRs, and notify chatterbox. Call this ONLY when no breaking changes were found. Provide the two latest PR numbers and the list of older PR numbers.\n","inputs":{"older_prs":{"default":null,"description":"Comma-separated PR numbers of older superseded PRs to close (may be empty).","required":false,"type":"string"},"pr_30":{"default":null,"description":"PR number of the latest 'Update OpenAPI 3.0 Descriptions' PR.","required":true,"type":"number"},"pr_31":{"default":null,"description":"PR number of the latest 'Update OpenAPI 3.1 Descriptions' PR.","required":true,"type":"number"},"summary":{"default":null,"description":"One-line summary of the merged changes for the chatterbox notification.","required":true,"type":"string"}},"output":"OpenAPI PRs merged, older PRs closed, chatterbox notified."},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"post-to-chatterbox":{"description":"Post a message to the #api-platform Slack channel via chatterbox. Message must be 200 characters or less. Supports Slack markdown (*bold*, _italic_, `code`, \u003curl|text\u003e). Requires the CHATTERBOX_URL and CHATTERBOX_TOKEN secrets to be configured.\n","inputs":{"message":{"default":null,"description":"The message to post (max 200 characters, Slack markdown).","required":true,"type":"string"}},"output":"Message posted to chatterbox."},"report_incomplete":{}}
481
+
GH_AW_SAFE_OUTPUTS_CONFIG_b02c1f8e9d0c4506_EOF
483
482
- name: Generate Safe Outputs Tools
484
483
env:
485
484
GH_AW_TOOLS_META_JSON: |
@@ -488,7 +487,7 @@ jobs:
488
487
"repo_params": {},
489
488
"dynamic_tools": [
490
489
{
491
-
"description": "Merge the latest OpenAPI 3.0 and 3.1 description PRs into the default branch, close the older superseded PRs, and notify Slack. Call this ONLY when no breaking changes were found. Provide the two latest PR numbers and the list of older PR numbers.\n",
490
+
"description": "Merge the latest OpenAPI 3.0 and 3.1 description PRs into the default branch, close the older superseded PRs, and notify chatterbox. Call this ONLY when no breaking changes were found. Provide the two latest PR numbers and the list of older PR numbers.\n",
492
491
"inputSchema": {
493
492
"additionalProperties": false,
494
493
"properties": {
@@ -505,7 +504,7 @@ jobs:
505
504
"type": "number"
506
505
},
507
506
"summary": {
508
-
"description": "One-line summary of the merged changes for the Slack notification.",
507
+
"description": "One-line summary of the merged changes for the chatterbox notification.",
0 commit comments