Skip to content

Commit d508a7b

Browse files
authored
Support Gitea by using github.event.pull_request.head.sha (#37)
2 parents 5434828 + 36a7a29 commit d508a7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858
echo "$1" | sed -E 's/\[([^\]]+)\]\(([^)]+)\)/\2/g'
5959
}
6060
61-
MERGE_COMMITS=$(git log --merges --format=%H origin/${{github.base_ref}}..refs/remotes/pull/${{github.event.pull_request.number}}/merge^2 --)
61+
MERGE_COMMITS=$(git log --merges --format=%H origin/${{github.base_ref}}..${{github.event.pull_request.head.sha}} --)
6262
if [ -n "$MERGE_COMMITS" ]; then
6363
ANNOTATION_LEVEL=$([ "$FAIL_ON_MERGE_COMMITS" = "true" ] && echo "error" || echo "warning")
6464
CONSOLE_FAIL_NOTICE=$(unwrap_markdown_urls "$FAIL_NOTICE")

0 commit comments

Comments
 (0)