Skip to content

Extract inline GraphQL query in fetch-pr-comments.sh to a standalone file#3637

Draft
netrome with Copilot wants to merge 2 commits into
mainfrom
copilot/extract-inline-graphql-query
Draft

Extract inline GraphQL query in fetch-pr-comments.sh to a standalone file#3637
netrome with Copilot wants to merge 2 commits into
mainfrom
copilot/extract-inline-graphql-query

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

The GraphQL query in fetch-pr-comments.sh was inlined as a bash string, making it harder to syntax-highlight, test in GraphQL playgrounds, and maintain.

Changes

  • .github/scripts/pr-comments.graphql (new): Standalone GraphQL query file extracted from the shell script.
  • .github/scripts/fetch-pr-comments.sh: Replaced the inline QUERY='...' variable with a cat read from the .graphql file, using SCRIPT_DIR for a path that works regardless of invocation directory.

Copilot AI changed the title [WIP] Extract inline GraphQL query in fetch-pr-comments.sh to a standalone file Extract inline GraphQL query in fetch-pr-comments.sh to a standalone file Jun 22, 2026
Copilot AI requested a review from netrome June 22, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants