mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
Add github action that validates all changes have a formal description (#7340)
This commit is contained in:
committed by
GitHub
parent
2cebe5a88e
commit
4ab9e27a56
23
.github/workflows/pr_description.yml
vendored
Normal file
23
.github/workflows/pr_description.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: PR Description Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, edited, reopened, synchronize, ready_for_review]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
pr-description:
|
||||
name: Ensure PR description is present
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check PR description
|
||||
shell: bash
|
||||
run: |
|
||||
body="${{ github.event.pull_request.body }}"
|
||||
if [ -z "$(echo "$body" | tr -d '[:space:]')" ]; then
|
||||
echo "::error::PR description is empty. Please provide a description of the change."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user