Skip to content

Commit

Permalink
Adding a new script for list organization events
Browse files Browse the repository at this point in the history
  • Loading branch information
gm3dmo committed Nov 15, 2023
1 parent 819e327 commit 620ae69
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions list-organization-events-for-the-authenticated-user.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
. ./.gh-api-examples.conf

# https://docs.github.com/en/free-pro-team@latest/rest/activity/events?apiVersion=2022-11-28#list-organization-events-for-the-authenticated-user
# GET /users/{username}/events/orgs/{org}


if [ -z "$1" ]
then
repo=$repo
else
repo=$1
fi

username=$2

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}/users/${username}/events/orgs/${org}"

0 comments on commit 620ae69

Please sign in to comment.