We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c19ded commit 4a07d80Copy full SHA for 4a07d80
1 file changed
entrypoint.sh
@@ -37,7 +37,8 @@ fi
37
echo
38
echo -e "\e[0;34mGet the list of commits included in the PR($GITHUB_REF).\e[0m"
39
PR=${GITHUB_REF#"refs/pull/"}
40
-PRNUM=${PR%"/merge"}
+PRNUM=${PR%"/merge"} # GitHub
41
+PRNUM=${PR%"/head"} # Forgejo
42
URL=${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/pulls/${PRNUM}/commits
43
echo " - API endpoint: $URL"
44
0 commit comments