Skip to content

Commit

Permalink
Adding new url to comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
gm3dmo committed Feb 24, 2023
1 parent 0d9897d commit 1b6d798
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions list-repository-license.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
. .gh-api-examples.conf

# https://docs.github.com/en/enterprise-[email protected]/rest/reference/licenses#get-the-license-for-a-repository
# https://docs.github.com/en/enterprise-cloud@latest/rest/licenses?apiVersion=2022-11-28#get-a-license
# GET /repos/{owner}/{repo}/license

# If the script is passed an argument $1 use that as the name
# If the script is passed an argument $1 use that as the repo
if [ -z "$1" ]
then
repo=$repo
else
repo=$1
fi

set -x

curl ${curl_custom_flags} \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GITHUB_TOKEN}" \
Expand Down

0 comments on commit 1b6d798

Please sign in to comment.