[CI/Build] Automate PR body text cleanup (#10082)

Signed-off-by: Russell Bryant <rbryant@redhat.com>
This commit is contained in:
Russell Bryant
2024-11-07 13:26:28 -05:00
committed by GitHub
parent 3be5b26a76
commit a2f1f3b089
2 changed files with 56 additions and 0 deletions

23
.github/workflows/cleanup_pr_body.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Cleanup PR Body
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
update-description:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.12'
- name: Update PR description
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: .github/scripts/cleanup_pr_body.sh "${{ github.event.number }}"