Skip to content

Commit

Permalink
Adding list repository teams
Browse files Browse the repository at this point in the history
  • Loading branch information
gm3dmo committed Nov 14, 2023
1 parent 0cf1768 commit a225662
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions list-repository-teams.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
. ./.gh-api-examples.conf

# https://docs.github.com/rest/repos/repos#list-repository-teams
# GET /repos/{owner}/{repo}/teams


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


json_file=tmp/list-repository-teams.json

curl ${curl_custom_flags} \
-H "X-GitHub-Api-Version: ${github_api_version}" \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
"${GITHUB_API_BASE_URL}/repos/${owner}/${repo}/teams"

File renamed without changes.

0 comments on commit a225662

Please sign in to comment.