Skip to content

build(deps): Bump softprops/action-gh-release from 2.3.4 to 2.4.1 #58

build(deps): Bump softprops/action-gh-release from 2.3.4 to 2.4.1

build(deps): Bump softprops/action-gh-release from 2.3.4 to 2.4.1 #58

name: Edit dependabot PR body for merge
on:
pull_request_target:
types:
- opened
permissions:
pull-requests: write
jobs:
edit:
if: github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Edit PR body
run: |
# Modifies the PR body to prepend a horizontal ruler.
# This makes sure /merge trims the entire PR body, preventing
# dependabot fancy formatting from littering the commit message
gh pr view "$PR_URL" --json body --jq '"---\n\n" + .body' \
| gh pr edit "$PR_URL" --body-file -
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ github.token }}