From d8c844aeed4e4501f894b3a24c4d96b72c5bf23b Mon Sep 17 00:00:00 2001 From: Mo King Date: Tue, 28 Apr 2026 09:36:29 -0700 Subject: [PATCH] chore: prefix sync PR title with DX-548 perpetual tracker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Linear PR Checker requires every PR to a Linear issue. Each openapi.yaml change opens or refreshes a sync PR in mintlify-docs, so we reference DX-548 — a perpetual auto-tracking issue — as a plain mention (no Resolves/Closes/Fixes), letting Linear auto-attach each sync PR to it without closing the issue on merge. Mirrors the DX-546 pattern used by the daily serverless model drift sync workflow in mintlify-docs. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/sync-openapi-spec-to-docs.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-openapi-spec-to-docs.yml b/.github/workflows/sync-openapi-spec-to-docs.yml index 9e35803..da08b6b 100644 --- a/.github/workflows/sync-openapi-spec-to-docs.yml +++ b/.github/workflows/sync-openapi-spec-to-docs.yml @@ -51,12 +51,22 @@ jobs: EXISTING_PR=$(gh pr list --state open --head "$BRANCH_NAME" --json number --jq '.[0].number') + # Perpetual Linear tracker issue. The bare key (no Resolves/Closes/Fixes) + # auto-attaches each sync PR to the issue without closing it on merge. + # See https://linear.app/together-ai/issue/DX-548 — do not close it. + TRACKER_KEY="DX-548" + PR_TITLE="$TRACKER_KEY: Sync OpenAPI spec" + PR_BODY="This PR syncs the openapi.yaml from the togethercomputer/openapi repository. + + Tracked in $TRACKER_KEY (auto-attached perpetual tracker — do not close)." + if [ -n "$EXISTING_PR" ]; then + gh pr edit "$EXISTING_PR" --title "$PR_TITLE" --body "$PR_BODY" echo "Updated existing PR #$EXISTING_PR" else gh pr create \ - --title "Sync OpenAPI spec" \ - --body "This PR syncs the openapi.yaml from the togethercomputer/openapi repository." \ + --title "$PR_TITLE" \ + --body "$PR_BODY" \ --base main \ --head "$BRANCH_NAME" \ --assignee ryanto,zainhas,Nutlope,muhsinking