From 2fe8c86f2c5717644f60ac32b354254bf29b35e9 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Wed, 29 Jul 2026 12:44:26 -0700 Subject: [PATCH] fix(changelog): Fix broken workflow that never successfully created a PR Two bugs prevented the changelog automation from ever working (all 118 runs since April 2026 have failed): 1. --label 'Type: Maintenance' referenced a label that doesn't exist in the repo, causing gh pr create to exit with code 1. 2. gh pr merge was called without a PR reference, so it couldn't determine which PR to merge. Also adds set -euxo pipefail for better diagnostics on future failures, and deletes 118 orphaned bot/update-docs-changelog-* branches. --- .github/workflows/update-docs-changelog.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-docs-changelog.yml b/.github/workflows/update-docs-changelog.yml index 02544e8632b1c6..659d2ab5687204 100644 --- a/.github/workflows/update-docs-changelog.yml +++ b/.github/workflows/update-docs-changelog.yml @@ -48,6 +48,8 @@ jobs: env: GITHUB_TOKEN: ${{ steps.token.outputs.token }} run: | + set -euxo pipefail + git config user.email "bot@getsentry.com" git config user.name "getsentry-bot" @@ -64,7 +66,6 @@ jobs: else gh pr create \ --title "chore: Update docs changelog" \ - --body "Automated update of the docs changelog from recent merged PRs." \ - --label "Type: Maintenance" - gh pr merge --squash --auto + --body "Automated update of the docs changelog from recent merged PRs." + gh pr merge "$branch" --squash --auto fi