From 6217e5acc27518629002dd3284101474558b59f0 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Wed, 8 Apr 2026 16:02:50 +1000 Subject: [PATCH] chore(deps): truncate Dependabot PR bodies to the Signed-off-by line only and skip the remainder --- .github/workflows/dependabot-automerge.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-automerge.yaml b/.github/workflows/dependabot-automerge.yaml index cfdaf37d..aef76783 100644 --- a/.github/workflows/dependabot-automerge.yaml +++ b/.github/workflows/dependabot-automerge.yaml @@ -14,7 +14,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Merge Dependabot PR - run: gh pr merge --squash --delete-branch "$PR_URL" + run: | + BODY=$(gh pr view --json commits --jq .commits[0].messageBody "$PR_URL" | grep Signed-off-by) + gh pr merge --squash --delete-branch --body "$BODY" "$PR_URL" env: PR_URL: ${{ github.event.pull_request.html_url }} GITHUB_TOKEN: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}