@@ -0,0 +1,22 @@
|
||||
name: CLA
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, edited, reopened, synchronize]
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
acceptance:
|
||||
name: Verify CLA acceptance
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check pull request declaration
|
||||
env:
|
||||
PR_BODY: ${{ github.event.pull_request.body }}
|
||||
run: |
|
||||
declaration='^- \[[xX]\] \*\*I have read and agree to the Gardomatic Contributor License Agreement,'
|
||||
if ! grep -Eq "$declaration" <<< "$PR_BODY"; then
|
||||
echo "The pull request author must accept CLA.md using the checkbox in the pull request template."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user