Skip to content

Commit

Permalink
github: remove checks for signoff and author name
Browse files Browse the repository at this point in the history
  • Loading branch information
pktpls committed May 28, 2024
1 parent fa4f029 commit 57c8314
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/formal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,13 @@ jobs:
RET=1
fi
author="$(git show -s --format=%aN "$commit")"
if echo "$author" | grep -q '\S\+\s\+\S\+'; then
success "Author name ($author) seems ok"
else
err "Author name ($author) need to be your real name 'firstname lastname'"
RET=1
fi
subject="$(git show -s --format=%s "$commit")"
if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert '; then
success "Commit subject line seems ok ($subject)"
else
err "Commit subject line MUST start with '<package name>: ' ($subject)"
RET=1
fi
body="$(git show -s --format=%b "$commit")"
sob="$(git show -s --format='Signed-off-by: %aN <%aE>' "$commit")"
if echo "$body" | grep -qF "$sob"; then
success "Signed-off-by match author"
else
err "Signed-off-by is missing or doesn't match author (should be '$sob')"
RET=1
fi
done
exit $RET

0 comments on commit 57c8314

Please sign in to comment.