Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit fad3e74

Browse files
committed
Check commits against the PRs base branch instead of repo default
These might not always be the same if one is targeting e.g. a longish living development branch instead of master.
1 parent 22b09e3 commit fad3e74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/check_commits.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
head="$(git remote show origin | awk '/HEAD branch/ {print $NF}')"
3+
head="$GITHUB_BASE_REF"
44
current="$(git rev-parse HEAD)"
55

66
if ! git merge-base --is-ancestor "origin/${head}" "$current"; then

0 commit comments

Comments
 (0)