fix: use /pulls instead of /pulls/pinned #4

Merged
lyn merged 10 commits from fix/pr-list-endpoint into main 2026-04-01 17:09:04 +00:00
Showing only changes of commit b85d40f587 - Show all commits

View File

@@ -252,6 +252,11 @@ cmd_merge() {
;;
405)
echo "merge failed check the pr status"
# Fetch PR details to show merge status
PR_INFO=$(curl -s -X GET "https://git.hangman-lab.top/api/v1/repos/${OWNER}/${REPO_NAME}/pulls/${pr_index}" \
-H 'accept: application/json' \
-H "Authorization: token ${token}")
echo "$PR_INFO" | jq '{mergeable: .mergeable, head_sha: .head.sha, base_ref: .base.ref, head_ref: .head.ref}'
exit 1
;;
*)