Skip to content

Commit 4fad2ce

Browse files
authored
Merge pull request #424 from gm3dmo/issue422
custom properties
2 parents a0066b1 + a632f5e commit 4fad2ce

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
. ./.gh-api-examples.conf
2+
3+
# https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/custom-properties?apiVersion=2022-11-28#get-all-custom-properties-for-an-organization
4+
# GET /orgs/{org}/properties/schema
5+
6+
7+
8+
# If the script is passed an argument $1 use that as the name
9+
if [ -z "$1" ]
10+
then
11+
org=$org
12+
else
13+
org=$1
14+
fi
15+
16+
17+
curl ${curl_custom_flags} \
18+
-H "X-GitHub-Api-Version: ${github_api_version}" \
19+
-H "Accept: application/vnd.github.v3+json" \
20+
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
21+
"${GITHUB_API_BASE_URL}/orgs/${org}/properties/schema"
22+

0 commit comments

Comments
 (0)