Skip to content

Conversation

@philipkocanda
Copy link
Collaborator

No description provided.

@philipkocanda philipkocanda requested a review from Copilot June 17, 2025 14:52
@philipkocanda philipkocanda self-assigned this Jun 17, 2025
@github-actions
Copy link

🔄 GraphQL Schema Updated

The GraphQL schema has been automatically updated from HackerOne's latest schema. Please review the changes before merging.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a GitHub Actions workflow that automatically fetches the latest GraphQL schema from HackerOne, compares it against the existing graphql/schema.graphql file, and commits & comments on the PR if an update is needed.

  • Introduces .github/workflows/update-schema.yml to trigger on PRs targeting main.
  • Downloads and diffs the remote schema, updates the file, commits & pushes changes.
  • Posts a PR comment summarizing the update when the schema has changed.
Comments suppressed due to low confidence (2)

.github/workflows/update-schema.yml:11

  • To allow the workflow to post comments via github.rest.issues.createComment, add issues: write under permissions so that it has the proper scope to create issue/PR comments.
    permissions:

.github/workflows/update-schema.yml:24

  • Consider adding the -f (or --fail) flag to the curl command (e.g., curl -sf) so the step fails on HTTP errors and prevents an empty or incomplete schema from being used.
        curl -s https://hackerone.com/schema.graphql -o /tmp/new_schema.graphql

@reppiee reppiee merged commit 6a47c12 into main Jun 17, 2025
@reppiee reppiee deleted the auto-update-schema branch June 17, 2025 16:07
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.

3 participants