Skip to content

Commit

Permalink
I understand more about the queries
Browse files Browse the repository at this point in the history
  • Loading branch information
appatalks committed Nov 5, 2023
1 parent 4ec828c commit 96b3515
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 14 deletions.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion json/00_u_login_check.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions json/04_u_add_reaction_issueId.json

This file was deleted.

File renamed without changes.
2 changes: 0 additions & 2 deletions json/05_u_add_comment_issueId.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 6 additions & 9 deletions run_interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,22 @@ log_file="/tmp/graphql_interactive-$(date +'%Y%m%d-%H%M%S').json"
export log_file=$log_file

# Define an array with available top-level choices
top_level_choices=("Owner Query" "Organization Query")
top_level_choices=("GraphQL Query" "Organization Query")

# Define sub-queries for each category
owner_queries=(
graphql_queries=(
"Login Check"
"Review Closed Issues"
"Get ID of Repo"
"Find Issue ID"
"Review Closed Issues"
"Add Reaction to Issue"
"Add Comment to Issue"
"Check User Rate Limits"
"Review Branch Protection Rules"
"Review Branch Protection Rules for Pull Request"
"Check Repo Disk Usage"
)
organization_queries=(
"Login Check"
"Add Reaction to Issue"
"Add Comment to Issue"
organization_queries=(
"List Organization Members"
"Get Repository IDs"
"List Repository Languages"
Expand All @@ -47,8 +44,8 @@ while true; do
if [[ "$top_level_choice" =~ ^[0-9]+$ ]] && [ "$top_level_choice" -ge 0 ] && [ "$top_level_choice" -lt ${#top_level_choices[@]} ]; then
# Depending on the top-level choice, set the prefix for query_file
if [ "$top_level_choice" -eq 0 ]; then
query_file_prefix="u"
sub_queries=("${owner_queries[@]}")
query_file_prefix="g"
sub_queries=("${graphql_queries[@]}")
else
query_file_prefix="o"
sub_queries=("${organization_queries[@]}")
Expand Down

0 comments on commit 96b3515

Please sign in to comment.