Skip to content

Commit

Permalink
Adding lost organization issues script for #253
Browse files Browse the repository at this point in the history
  • Loading branch information
gm3dmo committed Jan 24, 2025
1 parent 20fb5c0 commit ec7b5bd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions list-organization-issues-assigned-to-the-authenticated-user.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
. ./.gh-api-examples.conf

# https://docs.github.com/en/enterprise-cloud@latest/rest/issues/issues?apiVersion=2022-11-28#list-organization-issues-assigned-to-the-authenticated-user
# GET /orgs/{org}/issues


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


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}/orgs/${org}/issues"

0 comments on commit ec7b5bd

Please sign in to comment.