Check diff to parent commit for non-merge commits
This commit is contained in:
parent
bb6ed04bf5
commit
642c363d8d
1 changed files with 5 additions and 0 deletions
5
.github/changed_templates.sh
vendored
5
.github/changed_templates.sh
vendored
|
@ -35,6 +35,11 @@ esac
|
||||||
|
|
||||||
base="$(git merge-base origin/HEAD "$tip")"
|
base="$(git merge-base origin/HEAD "$tip")"
|
||||||
|
|
||||||
|
# simply get parent for direct master-commits
|
||||||
|
if [ "$base" = "$tip" ]; then
|
||||||
|
base="$(git rev-list -1 "$tip"~1)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "$base $tip" >/tmp/revisions
|
echo "$base $tip" >/tmp/revisions
|
||||||
|
|
||||||
/bin/echo -e '\x1b[32mChanged packages:\x1b[0m'
|
/bin/echo -e '\x1b[32mChanged packages:\x1b[0m'
|
||||||
|
|
Loading…
Reference in a new issue