diff --git a/list-repository-teams.sh b/list-repository-teams.sh new file mode 100755 index 00000000..ace5f156 --- /dev/null +++ b/list-repository-teams.sh @@ -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" + diff --git a/create-commit-status-app.sh b/tiny-app-create-check-run.sh similarity index 100% rename from create-commit-status-app.sh rename to tiny-app-create-check-run.sh