graphql-hive / graphql-hive/console
show metadata for schema change approvals from pull requests in history
- Dominant language
- TypeScript
- Stars
- 483
- Forks
- 145
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 65
Description
Currently, the history (schema version) schema changes and schema check schema changes are completely separate and have no relation to each other.
Starting with [https://github.com/kamilkisiela/graphql-hive/pull/3359](), we store approval metadata on the approved schema changes within a pull request. The `schema_change_approval` table contains these changes that have been approved.

It would be cool if when a schema version is published, we also include the approval metadata within the changes that are linked to the schema version.
There is, however, one big issue:
We don't know whether a branch/pull request that contains approved schema changes has been merged into the branch from which publishes are run.
This could lead to false information, e.g. a schema change could have been introduced and approved within two separate branches. How do we know which approval made it into the branch from which the schema is published?
For GitHub, we could leverage the GitHub API to check which changes were introduced in which pull request ([GitHub Docs: List pull requests associated with a commit]())
For other providers, we would require manual actions from users.
For the first iteration, we could only ship this feature for GitHub.
Contributor guide
Assessment
This issue has not been assessed yet.