Commit 5f9fbcc9 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Only check signed-off-by in PRs

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 6da40d07
Loading
Loading
Loading
Loading
+4
Changes for scripts/check-signed-off-by.sh: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -14,6 +14,10 @@

# this retrieves the merge commit created by GH
parents=(`git log -n 1 --format=%p HEAD`)
branch=(`git rev-parse --abbrev-ref HEAD`)

# Should only run in PR branches
[[ ${branch} == "master" ]] && exit 0

if [[ "${#parents[@]}" -ne 2 ]]; then
  echo "This PR's merge commit is missing a parent!"