-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding lost organization issues script for #253
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
list-organization-issues-assigned-to-the-authenticated-user.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|