-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Using the GitHub CLI instead of making curl API requests should simplify the code and will be the more reliable and error-prone approach.
Code:
Line 93 in c953b17
auth_status=$(curl -sL --write-out '%{http_code}' --output /dev/null -H "${AUTH_HEADER}" -H "${HEADER}" "${PULLS_URL}") Line 115 in c953b17
PULL_REQUESTS=$(echo "$(curl -sSL -H "${AUTH_HEADER}" -H "${HEADER}" -X GET "${PULLS_URL}${PULL_REQUESTS_QUERY_PARAMS}")" | jq --raw-output '.[] | .head.ref ') Line 133 in c953b17
PULL_RESPONSE=$(curl -sSL -H "${AUTH_HEADER}" -H "${HEADER}" -X POST --data "${PULL_RESPONSE_DATA}" "${PULLS_URL}") Line 166 in c953b17
curl -sSL -H "${AUTH_HEADER}" -H "${HEADER}" -X PATCH --data "${LABELS_DATA}" "${ISSUE_URL}" Line 183 in c953b17
curl -sSL -H "${AUTH_HEADER}" -H "${HEADER}" -X POST --data "${ASSIGNEES_DATA}" "${ASSIGNEES_URL}" Line 213 in c953b17
curl -sSL -H "${AUTH_HEADER}" -H "${HEADER}" -X POST --data "${REVIEWERS_DATA}" "${REVIEWERS_URL}"
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed