From 6ecd7e961dd6399f61b47e97b64c7f757750b33a Mon Sep 17 00:00:00 2001 From: dinashan Date: Sat, 21 Mar 2026 15:52:45 +0000 Subject: [PATCH 1/2] added comment of functions request --- github-api-integration-module.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-api-integration-module.sh b/github-api-integration-module.sh index d94d2951..847caf23 100644 --- a/github-api-integration-module.sh +++ b/github-api-integration-module.sh @@ -25,7 +25,7 @@ GITHUB_API_HEADER_ACCEPT="Accept: application/vnd.github.v3+json" temp=`basename $0` TMPFILE=`mktemp /tmp/${temp}.XXXXXX` || exit 1 - +# function to make rest call and save the result in a temp file function rest_call { curl -s $1 -H "${GITHUB_API_HEADER_ACCEPT}" -H "Authorization: token $GITHUB_TOKEN" >> $TMPFILE } From c4c3d416d0e0ad55cc158dc491e2aef90cf67285 Mon Sep 17 00:00:00 2001 From: dinashan Date: Sat, 21 Mar 2026 16:33:17 +0000 Subject: [PATCH 2/2] added comment explain cat command --- github-api-integration-module.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-api-integration-module.sh b/github-api-integration-module.sh index 847caf23..441b17f1 100644 --- a/github-api-integration-module.sh +++ b/github-api-integration-module.sh @@ -44,5 +44,5 @@ else rest_call "https://api.github.com${GITHUB_API_REST}?page=$p" done fi - +# display the contents of the temporary file cat $TMPFILE