Skip to content

Commit 14d6315

Browse files
authored
chore(deps): truncate Dependabot PR bodies to the Signed-off-by line only and skip the remainder (#1120)
1 parent d2f3c7e commit 14d6315

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/dependabot-automerge.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Merge Dependabot PR
17-
run: gh pr merge --squash --delete-branch "$PR_URL"
17+
run: |
18+
BODY=$(gh pr view --json commits --jq .commits[0].messageBody "$PR_URL" | grep Signed-off-by)
19+
gh pr merge --squash --delete-branch --body "$BODY" "$PR_URL"
1820
env:
1921
PR_URL: ${{ github.event.pull_request.html_url }}
2022
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}

0 commit comments

Comments
 (0)