Skip to content

Commit

Permalink
Merge pull request #12 from NathanBurkett/master
Browse files Browse the repository at this point in the history
Mend cURL Request for Non-Public Repositories
  • Loading branch information
yokawasa authored Mar 11, 2020
2 parents e6d08dc + 53c9ee6 commit c4ad949
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ get_pr_files(){
local postfixes=$1
pr_num=$(cat ${GITHUB_EVENT_PATH} | jq -r .pull_request.number)
request_url="https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/${pr_num}/files"
files=$(curl -s -X GET -G ${request_url} | jq -r '.[] | .filename')
auth_header="Authorization: token $GITHUB_TOKEN"
files=$(curl -s -H "$auth_header" -X GET -G ${request_url} | jq -r '.[] | .filename')
matched_files=""
for f in ${files}
do
Expand Down

0 comments on commit c4ad949

Please sign in to comment.